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"],
|
||||
"react/react-in-jsx-scope": "off",
|
||||
"react/jsx-props-no-spreading": "off",
|
||||
"react/jsx-filename-extension": [
|
||||
2,
|
||||
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
|
||||
],
|
||||
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
|
||||
"react/forbid-prop-types": "off",
|
||||
"react/require-default-props": [
|
||||
"error",
|
||||
@ -35,6 +32,10 @@
|
||||
"ImportDeclaration": "never",
|
||||
"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",
|
||||
"arrowParens": "always",
|
||||
"bracketSpacing": true,
|
||||
"htmlWhitespaceSensitivity": "ignore",
|
||||
"insertPragma": false,
|
||||
"jsxBracketSameLine": false,
|
||||
"jsxSingleQuote": false,
|
||||
"printWidth": 80,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "as-needed",
|
||||
"requirePragma": false,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "es5",
|
||||
"useTabs": false
|
||||
"endOfLine": "auto",
|
||||
"arrowParens": "always",
|
||||
"bracketSpacing": true,
|
||||
"htmlWhitespaceSensitivity": "ignore",
|
||||
"insertPragma": false,
|
||||
"jsxBracketSameLine": false,
|
||||
"jsxSingleQuote": false,
|
||||
"printWidth": 100,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "as-needed",
|
||||
"requirePragma": false,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "es5",
|
||||
"useTabs": false
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"lint:fix": "next lint -- --fix",
|
||||
"prettier": "prettier --write .",
|
||||
"graphql:codegen": "apollo client:codegen --target typescript",
|
||||
"graphql:schema": "apollo client:download-schema services/crm/graphql/schema.graphql"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user