103 lines
3.3 KiB
JSON
103 lines
3.3 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended"
|
|
],
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module",
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"@typescript-eslint"
|
|
],
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"rules": {
|
|
"arrow-parens": ["off", "always"],
|
|
"comma-dangle": [
|
|
"error",
|
|
{
|
|
"arrays": "ignore",
|
|
"objects": "ignore",
|
|
"imports": "ignore",
|
|
"exports": "ignore",
|
|
"functions": "ignore"
|
|
}
|
|
],
|
|
"consistent-return": "warn",
|
|
"global-require": "warn",
|
|
"linebreak-style": "off",
|
|
"max-len": [
|
|
"off",
|
|
160
|
|
],
|
|
"no-console": "warn",
|
|
"no-extra-boolean-cast": "warn",
|
|
"no-param-reassign": "error",
|
|
"no-shadow": "warn",
|
|
"no-unused-vars": "off",
|
|
"no-useless-constructor": "warn",
|
|
"object-curly-newline": "error",
|
|
"prefer-destructuring": "warn",
|
|
"prefer-template": "error",
|
|
"quote-props": ["error", "consistent"],
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"import/no-unresolved": "off",
|
|
"import/first": "off",
|
|
"import/order": "off",
|
|
"import/no-extraneous-dependencies": "off",
|
|
"import/newline-after-import": "off",
|
|
"import/prefer-default-export": "off",
|
|
"jsx-a11y/anchor-is-valid": "off",
|
|
"jsx-a11y/alt-text": "off",
|
|
"jsx-a11y/click-events-have-key-events": "off",
|
|
"jsx-a11y/iframe-has-title": "off",
|
|
"jsx-a11y/no-static-element-interactions": "off",
|
|
"jsx-a11y/label-has-associated-control": "off",
|
|
"jsx-a11y/label-has-for": "off",
|
|
"react/display-name": "off",
|
|
"react/destructuring-assignment": "off",
|
|
"react/jsx-closing-bracket-location": "off",
|
|
"react/jsx-closing-tag-location": "off",
|
|
"react/jsx-curly-brace-presence": "off",
|
|
"react/jsx-first-prop-new-line": "off",
|
|
"react/jsx-filename-extension": "off",
|
|
"react/jsx-indent-props": "off",
|
|
"react/jsx-one-expression-per-line": "off",
|
|
"react/jsx-wrap-multilines": "off",
|
|
"react/no-access-state-in-setstate": "warn",
|
|
"react/prop-types": "off",
|
|
"react/prefer-stateless-function": "off",
|
|
"react/self-closing-comp": "off",
|
|
"@typescript-eslint/camelcase": "off",
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
"@typescript-eslint/indent": "off",
|
|
"@typescript-eslint/interface-name-prefix": "off",
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": "warn"
|
|
}
|
|
} |