55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true,
|
|
"node": true
|
|
},
|
|
"extends": ["next", "prettier", "airbnb", "airbnb-typescript"],
|
|
"parserOptions": {
|
|
"project": "./tsconfig.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"],
|
|
"react/jsx-no-bind": [
|
|
"error",
|
|
{
|
|
"ignoreDOMComponents": false,
|
|
"ignoreRefs": false,
|
|
"allowArrowFunctions": false,
|
|
"allowFunctions": true,
|
|
"allowBind": false
|
|
}
|
|
],
|
|
"newline-before-return": "warn",
|
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
"react/prop-types": "off"
|
|
}
|
|
}
|