1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| { "root": true,
"env": { "browser": true, "node": true, "es2021": true },
"extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", "plugin:prettier/recommended" ],
"parser": "@typescript-eslint/parser",
"parserOptions": { "ecmaVersion": "latest", "sourceType": "module", "project": "./tsconfig.json" },
"plugins": ["@typescript-eslint", "prettier"],
"rules": { "quotes": ["error", "double", { "avoidEscape": true }], "@typescript-eslint/quotes": ["error", "double"], "@typescript-eslint/indent": ["error", 4], "@typescript-eslint/semi": ["error", "always"], "@typescript-eslint/comma-dangle": ["error", "never"],
"@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/explicit-function-return-type": [ "error", { "allowExpressions": true, "allowTypedFunctionExpressions": true } ], "@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }],
"@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/no-misused-promises": "error", "@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unused-vars": [ "error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" } ], "import/no-cycle": "error", "no-console": "off", "@typescript-eslint/no-non-null-assertion": "error", "@typescript-eslint/restrict-template-expressions": "off",
"prettier/prettier": "error" },
"ignorePatterns": [ "node_modules/**", "dist/**", "build/**", "coverage/**", "*.config.js", "*.config.ts" ] }
|