-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
47 lines (46 loc) · 1.36 KB
/
.eslintrc.json
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
{
"env": {
"browser": false,
"es2022": true,
"mocha": true,
"node": true
},
"plugins": ["@typescript-eslint", "import"],
"extends": ["standard-with-typescript", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"project": "./lint.tsconfig.json"
},
"ignorePatterns": [
"**/dist/",
"**/coverage/",
"**/docs/",
"packages/sdk/src/validator/client/*",
"packages/local/registry/*",
"*.d.ts"
],
"globals": {
// mocha
"before": true,
"after": true,
"beforeEach": true,
"afterEach": true,
"describe": true,
"it": true
},
"rules": {
"import/order": "warn",
"@typescript-eslint/no-confusing-void-expression": "off",
"node/no-unpublished-import": "off",
"node/no-missing-import": "off", // TODO: If available, find solution to turn this lint rule back on
"node/shebang": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
// We use currently all `== null` as a way to check for undefined or null, might as well turn this check off
"@typescript-eslint/no-non-null-assertion": "off",
// TODO: these two "off" rules should be removed once we fully transition to the monorepo
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/restrict-template-expressions": "off"
}
}