|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es6": true |
| 5 | + }, |
| 6 | + "parserOptions": { |
| 7 | + "ecmaFeatures": { |
| 8 | + "jsx": true |
| 9 | + }, |
| 10 | + "ecmaVersion": 2019, |
| 11 | + "sourceType": "module" |
| 12 | + }, |
| 13 | + "globals": { |
| 14 | + "Atomics": "readonly", |
| 15 | + "SharedArrayBuffer": "readonly" |
| 16 | + }, |
| 17 | + "plugins": ["import", "jsx-a11y", "react", "react-hooks", "prettier"], |
| 18 | + "extends": ["airbnb", "eslint-config-prettier", "prettier/react"], |
| 19 | + "rules": { |
| 20 | + "prettier/prettier": "error", |
| 21 | + "camelcase": "off", |
| 22 | + "import/prefer-default-export": "off", |
| 23 | + "react/prop-types": "off", |
| 24 | + "react/jsx-filename-extension": "off", |
| 25 | + "react/jsx-props-no-spreading": "off", |
| 26 | + "react/no-unused-prop-types": "off", |
| 27 | + "react/react-in-jsx-scope": "off", |
| 28 | + "react/require-default-props": "off", |
| 29 | + "import/extensions": [ |
| 30 | + "error", |
| 31 | + "ignorePackages", |
| 32 | + { |
| 33 | + "ts": "never", |
| 34 | + "tsx": "never", |
| 35 | + "js": "never", |
| 36 | + "jsx": "never" |
| 37 | + } |
| 38 | + ], |
| 39 | + "quotes": "off", |
| 40 | + "jsx-a11y/anchor-is-valid": [ |
| 41 | + "error", |
| 42 | + { |
| 43 | + "components": ["Link"], |
| 44 | + "specialLink": ["hrefLeft", "hrefRight"], |
| 45 | + "aspects": ["invalidHref", "preferButton"] |
| 46 | + } |
| 47 | + ] |
| 48 | + }, |
| 49 | + "overrides": [ |
| 50 | + { |
| 51 | + "files": "**/*.+(ts|tsx)", |
| 52 | + "parser": "@typescript-eslint/parser", |
| 53 | + "plugins": ["@typescript-eslint/eslint-plugin"], |
| 54 | + "extends": [ |
| 55 | + "plugin:@typescript-eslint/recommended", |
| 56 | + "eslint-config-prettier/@typescript-eslint" |
| 57 | + ], |
| 58 | + "rules": { |
| 59 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 60 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 61 | + "no-use-before-define": [0], |
| 62 | + "@typescript-eslint/no-use-before-define": [1], |
| 63 | + "@typescript-eslint/no-explicit-any": "off", |
| 64 | + "@typescript-eslint/no-var-requires": "off", |
| 65 | + "max-len": ["error", {"code": 120, "ignoreUrls": true}], |
| 66 | + "react/jsx-first-prop-new-line": [2, "multiline"], |
| 67 | + "react/jsx-max-props-per-line": [ |
| 68 | + 2, |
| 69 | + { "maximum": 1, "when": "multiline" } |
| 70 | + ], |
| 71 | + "@typescript-eslint/quotes": [ |
| 72 | + 2, |
| 73 | + "backtick", |
| 74 | + { |
| 75 | + "avoidEscape": true |
| 76 | + } |
| 77 | + ] |
| 78 | + } |
| 79 | + } |
| 80 | + ], |
| 81 | + "settings": { |
| 82 | + "import/resolver": { |
| 83 | + "typescript": { |
| 84 | + "project": "." |
| 85 | + } |
| 86 | + }, |
| 87 | + "react": { |
| 88 | + "version": "detect" |
| 89 | + } |
| 90 | + } |
| 91 | +} |
0 commit comments