|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "react-app", |
| 4 | + "plugin:teactn/recommended", |
| 5 | + "airbnb-typescript" |
| 6 | + ], |
| 7 | + "plugins": [ |
| 8 | + "no-async-without-await", |
| 9 | + "teactn", |
| 10 | + "no-null" |
| 11 | + ], |
| 12 | + "rules": { |
| 13 | + "indent": [ |
| 14 | + "error", |
| 15 | + 2, |
| 16 | + { |
| 17 | + "SwitchCase": 1 |
| 18 | + } |
| 19 | + ], |
| 20 | + "max-len": [ |
| 21 | + "error", |
| 22 | + 120 |
| 23 | + ], |
| 24 | + "array-bracket-newline": [ |
| 25 | + 2, |
| 26 | + "consistent" |
| 27 | + ], |
| 28 | + "no-null/no-null": 2, |
| 29 | + "no-console": "error", |
| 30 | + "semi": "error", |
| 31 | + "no-implicit-coercion": "error", |
| 32 | + "react-hooks/exhaustive-deps": "error", |
| 33 | + "arrow-body-style": "off", |
| 34 | + "no-else-return": "off", |
| 35 | + "no-plusplus": "off", |
| 36 | + "no-void": "off", |
| 37 | + "default-case": "off", |
| 38 | + "no-param-reassign": "off", |
| 39 | + "no-prototype-builtins": "off", |
| 40 | + "no-await-in-loop": "off", |
| 41 | + "no-nested-ternary": "off", |
| 42 | + "import/no-extraneous-dependencies": "off", |
| 43 | + "import/prefer-default-export": "off", |
| 44 | + "import/named": "off", |
| 45 | + "import/no-webpack-loader-syntax": "off", |
| 46 | + "react/prop-types": "off", |
| 47 | + "react/jsx-one-expression-per-line": "off", |
| 48 | + "react/button-has-type": "off", |
| 49 | + "react/require-default-props": "off", |
| 50 | + // Teact feature |
| 51 | + "react/style-prop-object": "off", |
| 52 | + "jsx-a11y/click-events-have-key-events": "off", |
| 53 | + "jsx-a11y/no-static-element-interactions": "off", |
| 54 | + "jsx-a11y/label-has-associated-control": "off", |
| 55 | + "jsx-a11y/anchor-is-valid": "off", |
| 56 | + "jsx-a11y/no-noninteractive-element-to-interactive-role": "off", |
| 57 | + "no-async-without-await/no-async-without-await": 1, |
| 58 | + "@typescript-eslint/no-use-before-define": [ |
| 59 | + "error", |
| 60 | + { |
| 61 | + "functions": false |
| 62 | + } |
| 63 | + ], |
| 64 | + "@typescript-eslint/camelcase": "off", |
| 65 | + "@typescript-eslint/member-delimiter-style": "error", |
| 66 | + "teactn/prefer-separate-component-file": "off" |
| 67 | + }, |
| 68 | + "settings": { |
| 69 | + "import/resolver": "webpack" |
| 70 | + }, |
| 71 | + "parserOptions": { |
| 72 | + "project": "./tsconfig.json" |
| 73 | + }, |
| 74 | + "ignorePatterns": [ |
| 75 | + "webpack.config.js", |
| 76 | + "jest.config.js", |
| 77 | + "src/lib/secret-sauce" |
| 78 | + ] |
| 79 | +} |
0 commit comments