|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "airbnb", |
| 4 | + "plugin:@typescript-eslint/recommended", |
| 5 | + "prettier", |
| 6 | + "prettier/@typescript-eslint" |
| 7 | + ], |
| 8 | + "parser": "@typescript-eslint/parser", |
| 9 | + "plugins": [ |
| 10 | + "babel", |
| 11 | + "import", |
| 12 | + "react", |
| 13 | + "compat", |
| 14 | + "promise", |
| 15 | + "prettier", |
| 16 | + "@typescript-eslint" |
| 17 | + ], |
| 18 | + "env": { |
| 19 | + "node": false, |
| 20 | + "browser": true |
| 21 | + }, |
| 22 | + "parserOptions": { |
| 23 | + "ecmaVersion": 2017, |
| 24 | + "sourceType": "module", |
| 25 | + "jsx": true |
| 26 | + }, |
| 27 | + "settings": { |
| 28 | + "react": { |
| 29 | + "pragma": "React", |
| 30 | + "version": "16.8" |
| 31 | + }, |
| 32 | + "import/resolver": { |
| 33 | + "node": { |
| 34 | + "paths": ["."], |
| 35 | + "extensions": [".js", ".ts", ".tsx"] |
| 36 | + } |
| 37 | + } |
| 38 | + }, |
| 39 | + "rules": { |
| 40 | + "curly": [2, "all"], |
| 41 | + "indent": ["error", 2, { "SwitchCase": 1 }], |
| 42 | + "arrow-body-style": ["error", "as-needed"], |
| 43 | + "arrow-parens": 0, |
| 44 | + "no-underscore-dangle": 0, |
| 45 | + "comma-dangle": ["error", "never"], |
| 46 | + "no-use-before-define": "error", |
| 47 | + "no-console": "error", |
| 48 | + "no-plusplus": 0, |
| 49 | + "no-minusminus": 0, |
| 50 | + "no-unused-expressions": 0, |
| 51 | + "no-unused-vars": ["error", { "ignoreRestSiblings": true }], |
| 52 | + "object-curly-newline": 0, |
| 53 | + "function-paren-newline": 0, |
| 54 | + "no-return-await": 0, |
| 55 | + "max-params": ["error", 5], |
| 56 | + "max-depth": ["error", 3], |
| 57 | + "promise/always-return": "error", |
| 58 | + "promise/catch-or-return": "error", |
| 59 | + "promise/param-names": "error", |
| 60 | + "promise/no-return-wrap": "error", |
| 61 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 62 | + "@typescript-eslint/explicit-member-accessibility": "off", |
| 63 | + "@typescript-eslint/no-explicit-any": 0, |
| 64 | + "@typescript-eslint/no-unused-vars": [ |
| 65 | + "error", |
| 66 | + { "ignoreRestSiblings": true } |
| 67 | + ], |
| 68 | + "prettier/prettier": ["error"], |
| 69 | + "react/prop-types": "off", |
| 70 | + "react/jsx-filename-extension": "off" |
| 71 | + } |
| 72 | +} |
0 commit comments