96 lines
2.6 KiB
JSON
96 lines
2.6 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"airbnb",
|
|
"airbnb-typescript",
|
|
"plugin:prettier/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"prettier"
|
|
],
|
|
"overrides": [],
|
|
"parserOptions": {
|
|
"project": "./tsconfig.json",
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["react", "prettier"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"rules": {
|
|
"class-methods-use-this": "off",
|
|
"import/extensions": "off",
|
|
"import/no-extraneous-dependencies": [
|
|
"error",
|
|
{
|
|
"devDependencies": ["./scripts/*.js"]
|
|
}
|
|
],
|
|
"import/no-named-as-default": "off",
|
|
"import/prefer-default-export": "off",
|
|
"jsx-a11y/anchor-is-valid": "off",
|
|
"jsx-a11y/click-events-have-key-events": "off",
|
|
"no-continue": "off",
|
|
"no-console": ["error"],
|
|
"no-lonely-if": "off",
|
|
"no-multi-assign": "off",
|
|
"no-nested-ternary": "off",
|
|
"no-param-reassign": ["error", { "props": false }],
|
|
"no-return-assign": "off",
|
|
"no-return-await": "off",
|
|
"no-underscore-dangle": "off",
|
|
"no-use-before-define": "off",
|
|
"prefer-destructuring": "off",
|
|
"prettier/prettier": "error",
|
|
"react/forbid-prop-types": "off",
|
|
"react/function-component-definition": [
|
|
"error",
|
|
{ "namedComponents": "arrow-function", "unnamedComponents": "arrow-function" }
|
|
],
|
|
"react/jsx-curly-newline": "off",
|
|
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
|
|
"react/jsx-fragments": "off",
|
|
"react/jsx-one-expression-per-line": "off",
|
|
"react/jsx-props-no-spreading": "off",
|
|
"react/jsx-wrap-multilines": "off",
|
|
"react/jsx-indent": "off",
|
|
"react/no-danger": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/require-default-props": "off",
|
|
"react/sort-comp": "off",
|
|
"@typescript-eslint/no-use-before-define": "off",
|
|
"@typescript-eslint/comma-dangle": "off",
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/member-delimiter-style": [
|
|
"error",
|
|
{
|
|
"multiline": {
|
|
"delimiter": "semi",
|
|
"requireLast": true
|
|
},
|
|
"singleline": {
|
|
"delimiter": "semi",
|
|
"requireLast": false
|
|
},
|
|
"multilineDetection": "brackets"
|
|
}
|
|
],
|
|
"@typescript-eslint/semi": "off"
|
|
},
|
|
"globals": {
|
|
"fetch": true,
|
|
"window": true,
|
|
"document": true,
|
|
"globalThis": true
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"typescript": {
|
|
"project": "./tsconfig.json"
|
|
}
|
|
}
|
|
}
|
|
}
|