|
43 | 43 | // }] |
44 | 44 | // } |
45 | 45 | // }; |
| 46 | + |
| 47 | +module.exports = { |
| 48 | + env: { |
| 49 | + es6: true, |
| 50 | + jest: true, |
| 51 | + node: true, |
| 52 | + }, |
| 53 | + extends: [ |
| 54 | + "airbnb", |
| 55 | + "prettier", |
| 56 | + "prettier/@typescript-eslint", |
| 57 | + "prettier/react", |
| 58 | + // "plugin:@typescript-eslint/eslint-recommended", |
| 59 | + // "plugin:@typescript-eslint/recommended", |
| 60 | + ], |
| 61 | + globals: { |
| 62 | + Atomics: "readonly", |
| 63 | + SharedArrayBuffer: "readonly", |
| 64 | + }, |
| 65 | + parser: "babel-eslint", |
| 66 | + // parser: "@typescript-eslint/parser", |
| 67 | + parserOptions: { |
| 68 | + ecmaVersion: 2020, |
| 69 | + ecmaFeatures: { |
| 70 | + jsx: true, |
| 71 | + classes: true, |
| 72 | + }, |
| 73 | + }, |
| 74 | + plugins: [ |
| 75 | + // "@typescript-eslint", |
| 76 | + "react", |
| 77 | + "jsx-a11y", |
| 78 | + "import", |
| 79 | + "jest", |
| 80 | + "react-hooks", |
| 81 | + ], |
| 82 | + rules: { |
| 83 | + "arrow-body-style": 0, |
| 84 | + camelcase: 0, |
| 85 | + "class-methods-use-this": 0, |
| 86 | + "consistent-return": 0, |
| 87 | + "comma-dangle": 0, |
| 88 | + "dot-notation": 0, |
| 89 | + "func-names": 0, |
| 90 | + "guard-for-in": 0, |
| 91 | + "import/extensions": 0, |
| 92 | + "import/no-extraneous-dependencies": 0, |
| 93 | + "import/no-unresolved": 0, |
| 94 | + "import/prefer-default-export": 0, |
| 95 | + "max-len": 0, |
| 96 | + "no-alert": 0, |
| 97 | + "no-console": 0, |
| 98 | + "no-param-reassign": 0, |
| 99 | + "no-plusplus": 0, |
| 100 | + "no-restricted-globals": 1, |
| 101 | + "no-restricted-syntax": 0, |
| 102 | + "no-shadow": 0, |
| 103 | + "no-undef": 0, |
| 104 | + "no-unused-vars": 0, |
| 105 | + "no-use-before-define": 0, |
| 106 | + "no-useless-constructor": 0, |
| 107 | + "no-underscore-dangle": 0, |
| 108 | + "no-unused-expressions": 0, |
| 109 | + "no-return-assign": 0, |
| 110 | + quotes: 0, |
| 111 | + "prefer-const": 1, |
| 112 | + "prefer-destructuring": 0, |
| 113 | + "prefer-template": 0, |
| 114 | + "react/button-has-type": 0, |
| 115 | + "react/destructuring-assignment": 0, |
| 116 | + "react/forbid-prop-types": 0, |
| 117 | + "react/jsx-filename-extension": 0, |
| 118 | + "react/jsx-no-duplicate-props": 0, |
| 119 | + "react/no-access-state-in-setstate": 0, |
| 120 | + "react/no-array-index-key": 0, |
| 121 | + "react/no-did-update-set-state": 0, |
| 122 | + "react/no-unused-state": 0, |
| 123 | + "react/prefer-stateless-function": 0, |
| 124 | + "react/sort-comp": [ |
| 125 | + 2, |
| 126 | + { |
| 127 | + order: ["lifecycle", "everything-else", "rendering"], |
| 128 | + }, |
| 129 | + ], |
| 130 | + "react/prop-types": 0, |
| 131 | + "spaced-comment": 0, |
| 132 | + strict: 0, |
| 133 | + }, |
| 134 | + // setting: { |
| 135 | + // "import/parsers": { |
| 136 | + // "@typescript-eslint/parser": [".ts", ".tsx"], |
| 137 | + // }, |
| 138 | + // "import/resolver": { |
| 139 | + // typescript: { |
| 140 | + // alwaysTryTypes: true, |
| 141 | + // }, |
| 142 | + // }, |
| 143 | + // }, |
| 144 | +}; |
0 commit comments