code-style: new eslint rules
prettier script
This commit is contained in:
parent
ae2c969860
commit
840eea78fd
@ -15,10 +15,7 @@
|
|||||||
"@typescript-eslint/comma-dangle": ["off"],
|
"@typescript-eslint/comma-dangle": ["off"],
|
||||||
"react/react-in-jsx-scope": "off",
|
"react/react-in-jsx-scope": "off",
|
||||||
"react/jsx-props-no-spreading": "off",
|
"react/jsx-props-no-spreading": "off",
|
||||||
"react/jsx-filename-extension": [
|
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
|
||||||
2,
|
|
||||||
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
|
|
||||||
],
|
|
||||||
"react/forbid-prop-types": "off",
|
"react/forbid-prop-types": "off",
|
||||||
"react/require-default-props": [
|
"react/require-default-props": [
|
||||||
"error",
|
"error",
|
||||||
@ -35,6 +32,10 @@
|
|||||||
"ImportDeclaration": "never",
|
"ImportDeclaration": "never",
|
||||||
"ExportDeclaration": { "multiline": true, "minProperties": 3 }
|
"ExportDeclaration": { "multiline": true, "minProperties": 3 }
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"lines-between-class-members": "off",
|
||||||
|
"@typescript-eslint/lines-between-class-members": ["off"],
|
||||||
|
"indent": "off",
|
||||||
|
"@typescript-eslint/indent": ["off"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1
.prettierignore
Normal file
1
.prettierignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
.next
|
||||||
32
.prettierrc
32
.prettierrc
@ -1,18 +1,18 @@
|
|||||||
{
|
{
|
||||||
"endOfLine": "auto",
|
"endOfLine": "auto",
|
||||||
"arrowParens": "always",
|
"arrowParens": "always",
|
||||||
"bracketSpacing": true,
|
"bracketSpacing": true,
|
||||||
"htmlWhitespaceSensitivity": "ignore",
|
"htmlWhitespaceSensitivity": "ignore",
|
||||||
"insertPragma": false,
|
"insertPragma": false,
|
||||||
"jsxBracketSameLine": false,
|
"jsxBracketSameLine": false,
|
||||||
"jsxSingleQuote": false,
|
"jsxSingleQuote": false,
|
||||||
"printWidth": 80,
|
"printWidth": 100,
|
||||||
"proseWrap": "preserve",
|
"proseWrap": "preserve",
|
||||||
"quoteProps": "as-needed",
|
"quoteProps": "as-needed",
|
||||||
"requirePragma": false,
|
"requirePragma": false,
|
||||||
"semi": true,
|
"semi": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"useTabs": false
|
"useTabs": false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"lint:fix": "next lint -- --fix",
|
"lint:fix": "next lint -- --fix",
|
||||||
|
"prettier": "prettier --write .",
|
||||||
"graphql:codegen": "apollo client:codegen --target typescript",
|
"graphql:codegen": "apollo client:codegen --target typescript",
|
||||||
"graphql:schema": "apollo client:download-schema services/crm/graphql/schema.graphql"
|
"graphql:schema": "apollo client:download-schema services/crm/graphql/schema.graphql"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user