UNPKG

1.15 kBJSONView Raw
1{
2 "extends": [
3 "eslint:recommended",
4 "plugin:@typescript-eslint/eslint-recommended",
5 "plugin:@typescript-eslint/recommended",
6 "standard"
7 ],
8 "parser": "@typescript-eslint/parser",
9 "plugins": ["@typescript-eslint"],
10 "env": { "node": true },
11 "parserOptions": {
12 "ecmaVersion": 6,
13 "sourceType": "module",
14 "project": "./types/tsconfig.json",
15 "createDefaultProgram": true
16 },
17 "rules": {
18 "no-console": "off",
19 "@typescript-eslint/indent": ["error", 2],
20 "semi": ["error", "never"],
21 "import/export": "off" // this errors on multiple exports (overload interfaces)
22 },
23 "overrides": [
24 {
25 "files": ["*.d.ts","*.test-d.ts"],
26 "rules": {
27 "@typescript-eslint/no-explicit-any": "off"
28 }
29 },
30 {
31 "files": ["*.test-d.ts"],
32 "rules": {
33 "no-unused-vars": "off",
34 "handle-callback-err": "off",
35 "@typescript-eslint/no-empty-function": "off",
36 "@typescript-eslint/explicit-function-return-type": "off",
37 "@typescript-eslint/no-unused-vars": "off",
38 "@typescript-eslint/no-non-null-assertion": "off"
39 }
40 }
41 ]
42}