|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "parserOptions": { |
| 5 | + "sourceType": "module", |
| 6 | + "project": "tsconfig.json", |
| 7 | + "ecmaVersion": 2019 |
| 8 | + }, |
| 9 | + "plugins": ["functional", "@typescript-eslint"], |
| 10 | + "extends": [ |
| 11 | + "prettier", |
| 12 | + "plugin:import/errors", |
| 13 | + "plugin:import/typescript", |
| 14 | + "plugin:@typescript-eslint/recommended-requiring-type-checking" |
| 15 | + ], |
| 16 | + "rules": { |
| 17 | + "no-const-assign": "error", |
| 18 | + "no-param-reassign": "error", |
| 19 | + "prefer-const": "error", |
| 20 | + "no-var": "error", |
| 21 | + "require-await": "error", |
| 22 | + "import/no-anonymous-default-export": "error", |
| 23 | + "import/no-default-export": "error", |
| 24 | + "import/dynamic-import-chunkname": "error", |
| 25 | + "import/order": ["error", { "newlines-between": "always", "alphabetize": { "order": "asc" } }], |
| 26 | + "import/no-duplicates": "error", |
| 27 | + "import/no-cycle": "error", |
| 28 | + "@typescript-eslint/no-unused-vars": "off", |
| 29 | + "@typescript-eslint/no-unsafe-return": "off", |
| 30 | + "@typescript-eslint/consistent-type-imports": "error", |
| 31 | + "@typescript-eslint/no-misused-promises": "off", |
| 32 | + "functional/no-let": [ |
| 33 | + "error", |
| 34 | + { |
| 35 | + "allowLocalMutation": true, |
| 36 | + "ignorePattern": "^mutable" |
| 37 | + } |
| 38 | + ], |
| 39 | + "functional/prefer-readonly-type": "error", |
| 40 | + "functional/no-this-expression": "error", |
| 41 | + "functional/no-loop-statement": "error" |
| 42 | + }, |
| 43 | + "overrides": [ |
| 44 | + { |
| 45 | + "files": ["src/commands/**.ts"], |
| 46 | + "rules": { |
| 47 | + "import/no-default-export": 0 |
| 48 | + } |
| 49 | + } |
| 50 | + ] |
| 51 | +} |
0 commit comments