|
| 1 | +/* eslint-disable no-undef */ |
| 2 | +module.exports = { |
| 3 | + root: true, |
| 4 | + ignorePatterns: ["dist", "build", "docs", "*.md"], |
| 5 | + parser: "@typescript-eslint/parser", |
| 6 | + parserOptions: { |
| 7 | + ecmaVersion: 2018, |
| 8 | + sourceType: "module" |
| 9 | + }, |
| 10 | + settings: { |
| 11 | + "import/parsers": { |
| 12 | + "@typescript-eslint/parser": [".ts", ".tsx"] |
| 13 | + }, |
| 14 | + "import/resolver": { |
| 15 | + typescript: { |
| 16 | + alwaysTryTypes: true |
| 17 | + } |
| 18 | + } |
| 19 | + }, |
| 20 | + extends: [ |
| 21 | + "eslint:recommended", |
| 22 | + "plugin:@typescript-eslint/eslint-recommended", |
| 23 | + "plugin:@typescript-eslint/recommended", |
| 24 | + "plugin:@effect/recommended" |
| 25 | + ], |
| 26 | + plugins: [ |
| 27 | + "deprecation", |
| 28 | + "import", |
| 29 | + "sort-destructure-keys", |
| 30 | + "simple-import-sort", |
| 31 | + "codegen" |
| 32 | + ], |
| 33 | + rules: { |
| 34 | + "codegen/codegen": "error", |
| 35 | + "no-fallthrough": "off", |
| 36 | + "no-irregular-whitespace": "off", |
| 37 | + "object-shorthand": "error", |
| 38 | + "prefer-destructuring": "off", |
| 39 | + "sort-imports": "off", |
| 40 | + "no-unused-vars": "off", |
| 41 | + "prefer-rest-params": "off", |
| 42 | + "prefer-spread": "off", |
| 43 | + "import/first": "error", |
| 44 | + "import/no-cycle": "error", |
| 45 | + "import/newline-after-import": "error", |
| 46 | + "import/no-duplicates": "error", |
| 47 | + "import/no-unresolved": "off", |
| 48 | + "import/order": "off", |
| 49 | + "simple-import-sort/imports": "off", |
| 50 | + "sort-destructure-keys/sort-destructure-keys": "error", |
| 51 | + "deprecation/deprecation": "off", |
| 52 | + "@typescript-eslint/array-type": [ |
| 53 | + "warn", |
| 54 | + { default: "generic", readonly: "generic" } |
| 55 | + ], |
| 56 | + "@typescript-eslint/member-delimiter-style": 0, |
| 57 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 58 | + "@typescript-eslint/ban-types": "off", |
| 59 | + "@typescript-eslint/no-explicit-any": "off", |
| 60 | + "@typescript-eslint/no-empty-interface": "off", |
| 61 | + "@typescript-eslint/consistent-type-imports": "warn", |
| 62 | + "@typescript-eslint/no-unused-vars": [ |
| 63 | + "error", |
| 64 | + { |
| 65 | + argsIgnorePattern: "^_", |
| 66 | + varsIgnorePattern: "^_" |
| 67 | + } |
| 68 | + ], |
| 69 | + "@typescript-eslint/ban-ts-comment": "off", |
| 70 | + "@typescript-eslint/camelcase": "off", |
| 71 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 72 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 73 | + "@typescript-eslint/interface-name-prefix": "off", |
| 74 | + "@typescript-eslint/no-array-constructor": "off", |
| 75 | + "@typescript-eslint/no-use-before-define": "off", |
| 76 | + "@typescript-eslint/no-namespace": "off", |
| 77 | + "@effect/dprint": [ |
| 78 | + "error", |
| 79 | + { |
| 80 | + config: { |
| 81 | + indentWidth: 2, |
| 82 | + lineWidth: 120, |
| 83 | + semiColons: "asi", |
| 84 | + quoteStyle: "alwaysDouble", |
| 85 | + trailingCommas: "never", |
| 86 | + operatorPosition: "maintain", |
| 87 | + "arrowFunction.useParentheses": "force" |
| 88 | + } |
| 89 | + } |
| 90 | + ] |
| 91 | + } |
| 92 | +} |
0 commit comments