forked from APIDevTools/json-schema-ref-parser
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
56 lines (56 loc) · 1.74 KB
/
.eslintrc
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
{
"root": true,
"extends": [
"@readme/eslint-config",
"@readme/eslint-config/typescript"
],
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"node": true,
"browser": true
},
"rules": {
"consistent-return": "off",
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"node/no-deprecated-api": "off", // `url.parse` has been deprecated but `url.URL` isn't a good replacement yet.
"prefer-rest-params": "off"
},
"overrides": [
{
// The typings in this file are pretty bad right now, when we have native types we can
// remove this.
"files": ["lib/index.d.ts"],
"rules": {
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/sort-type-constituents": "off",
"eslint-comments/no-unused-disable": "off",
"lines-between-class-members": "off",
"max-classes-per-file": "off",
"typescript-sort-keys/interface": "off",
"unicorn/custom-error-definition": "off"
}
},
{
// These can all get removed when the library is moved over to native TS.
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"func-names": "off",
"no-unused-expressions": "off"
}
}
],
}