EvoCalculator.Client2/.eslintrc.json
Chika 840eea78fd code-style: new eslint rules
prettier script
2022-05-08 20:53:27 +03:00

42 lines
1.1 KiB
JSON

{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["next", "prettier", "airbnb", "airbnb-typescript"],
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"plugins": ["react", "prettier"],
"rules": {
"linebreak-style": ["error", "windows"],
"comma-dangle": "off",
"@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/forbid-prop-types": "off",
"react/require-default-props": [
"error",
{
"ignoreFunctionalComponents": true
}
],
"import/extensions": "off",
"object-curly-newline": [
"error",
{
"ObjectExpression": "always",
"ObjectPattern": { "multiline": true },
"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"]
}
}