|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es6": true, |
| 5 | + "node": true |
| 6 | + }, |
| 7 | + "root": true, |
| 8 | + "extends": ["airbnb", "prettier", "plugin:prettier/recommended"], |
| 9 | + "globals": { |
| 10 | + "Atomics": "readonly", |
| 11 | + "SharedArrayBuffer": "readonly" |
| 12 | + }, |
| 13 | + "settings": { |
| 14 | + "import/resolver": { |
| 15 | + "alias": { |
| 16 | + "map": [ |
| 17 | + ["^ui$", "./src/ui"], |
| 18 | + ["app", "./src/app/"], |
| 19 | + ["common", "./src/common"] |
| 20 | + ], |
| 21 | + "extensions": [".js", ".jsx", ".json", ".svg", ".png", ".jpg"] |
| 22 | + } |
| 23 | + } |
| 24 | + }, |
| 25 | + "parser": "babel-eslint", |
| 26 | + "plugins": [ |
| 27 | + "react", |
| 28 | + "prettier", |
| 29 | + "compat", |
| 30 | + "import", |
| 31 | + "jsx-a11y", |
| 32 | + "promise", |
| 33 | + "react-hooks" |
| 34 | + ], |
| 35 | + "rules": { |
| 36 | + "prettier/prettier": "error", |
| 37 | + "jsx-a11y/aria-role": "off", |
| 38 | + "no-restricted-syntax": "off", |
| 39 | + "no-unused-vars": "error", |
| 40 | + "no-unused-expressions": "error", |
| 41 | + "consistent-return": "off", |
| 42 | + "jsx-a11y/no-static-element-interactions": "off", |
| 43 | + "jsx-a11y/click-events-have-key-events": "off", |
| 44 | + "no-underscore-dangle": "off", |
| 45 | + "no-console": "off", |
| 46 | + "no-continue": "off", |
| 47 | + "no-use-before-define": "off", |
| 48 | + "no-await-in-loop": "off", |
| 49 | + "default-param-last": "off", |
| 50 | + "no-promise-executor-return": "off", |
| 51 | + "import/no-import-module-exports": "off", |
| 52 | + "react/destructuring-assignment": "off", |
| 53 | + "promise/param-names": "error", |
| 54 | + "promise/always-return": "error", |
| 55 | + "promise/catch-or-return": "error", |
| 56 | + "promise/no-native": "off", |
| 57 | + "react/sort-comp": [ |
| 58 | + "error", |
| 59 | + { |
| 60 | + "order": [ |
| 61 | + "type-annotations", |
| 62 | + "static-methods", |
| 63 | + "lifecycle", |
| 64 | + "everything-else", |
| 65 | + "render" |
| 66 | + ] |
| 67 | + } |
| 68 | + ], |
| 69 | + "react/jsx-no-bind": "off", |
| 70 | + "react/jsx-filename-extension": "off", |
| 71 | + "react/prop-types": "off", |
| 72 | + "react/function-component-definition": "off", |
| 73 | + "react/forbid-dom-props": [2, { "forbid": ["style"] }], |
| 74 | + "import/no-anonymous-default-export": [ |
| 75 | + "error", |
| 76 | + { |
| 77 | + "allowArray": false, |
| 78 | + "allowArrowFunction": false, |
| 79 | + "allowAnonymousClass": false, |
| 80 | + "allowAnonymousFunction": false, |
| 81 | + "allowCallExpression": true, |
| 82 | + "allowLiteral": false, |
| 83 | + "allowObject": true |
| 84 | + } |
| 85 | + ], |
| 86 | + "react/jsx-pascal-case": [2, { "allowAllCaps": false }], |
| 87 | + "react/prefer-stateless-function": "off", |
| 88 | + "import/no-unresolved": "off", |
| 89 | + "import/no-extraneous-dependencies": ["error", { "devDependencies": true }], |
| 90 | + "jsx-a11y/anchor-is-valid": "off" |
| 91 | + } |
| 92 | +} |
0 commit comments