| 1 | module.exports = { |
| 2 | root: true, |
| 3 | env: { |
| 4 | es2021: true, |
| 5 | }, |
| 6 | extends: [ |
| 7 | "airbnb/base", |
| 8 | "eslint:recommended", |
| 9 | "plugin:@typescript-eslint/recommended", |
| 10 | "plugin:import/typescript", |
| 11 | "prettier", |
| 12 | ], |
| 13 | parser: "@typescript-eslint/parser", |
| 14 | parserOptions: { |
| 15 | ecmaVersion: 12, |
| 16 | sourceType: "module", |
| 17 | }, |
| 18 | plugins: ["@typescript-eslint", "prettier"], |
| 19 | rules: { |
| 20 | "prettier/prettier": "error", |
| 21 | "no-restricted-syntax": "off", |
| 22 | "no-continue": "off", |
| 23 | "no-shadow": "off", |
| 24 | "@typescript-eslint/no-shadow": ["error"], |
| 25 | "no-console": "off", |
| 26 | "no-use-before-define": "off", |
| 27 | "@typescript-eslint/no-use-before-define": ["error"], |
| 28 | "@typescript-eslint/ban-ts-comment": "off", |
| 29 | "import/extensions": "off", |
| 30 | "import/prefer-default-export": "off", |
| 31 | "import/no-extraneous-dependencies": ["error", { devDependencies: ["**/test/*"] }], |
| 32 | "no-nested-ternary": "off", |
| 33 | }, |
| 34 | }; |