Skip to content
Permalink
Newer
Older
100644 59 lines (58 sloc) 2.34 KB
1
2
{
3
"parser": "@typescript-eslint/parser",
4
"parserOptions": {
5
"project": "./tsconfig.json"
6
},
7
"plugins": ["@typescript-eslint", "filenames", "github", "import", "no-async-foreach"],
8
"extends": [
9
"eslint:recommended",
10
"plugin:@typescript-eslint/recommended",
11
"plugin:@typescript-eslint/recommended-requiring-type-checking",
12
"plugin:github/recommended",
February 1, 2022 18:01
13
"plugin:github/typescript",
14
"plugin:import/typescript"
15
],
16
"rules": {
17
"filenames/match-regex": ["error", "^[a-z0-9-]+(\\.test)?$"],
18
"i18n-text/no-en": "off",
19
"import/extensions": "error",
20
"import/no-amd": "error",
21
"import/no-commonjs": "error",
22
"import/no-dynamic-require": "error",
23
// Disable the rule that checks that devDependencies aren't imported since we use a single
24
// linting configuration file for both source and test code.
25
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
26
"import/no-namespace": "off",
27
"import/no-unresolved": "error",
28
"import/no-webpack-loader-syntax": "error",
29
"import/order": ["error", {
30
"alphabetize": {"order": "asc"},
31
"newlines-between": "always"
32
}],
33
"no-async-foreach/no-async-foreach": "error",
34
"no-console": "off",
35
"no-sequences": "error",
November 19, 2020 22:38
36
"no-shadow": "off",
37
"@typescript-eslint/no-shadow": ["error"],
38
"one-var": ["error", "never"]
39
},
40
"overrides": [{
41
// "temporarily downgraded during transition to eslint
42
"files": "**",
43
"rules": {
44
"@typescript-eslint/ban-types": "off",
45
"@typescript-eslint/explicit-module-boundary-types": "off",
46
"@typescript-eslint/no-explicit-any": "off",
47
"@typescript-eslint/no-unsafe-assignment": "off",
48
"@typescript-eslint/no-unsafe-call": "off",
49
"@typescript-eslint/no-unsafe-member-access": "off",
50
"@typescript-eslint/no-unsafe-return": "off",
51
"@typescript-eslint/no-var-requires": "off",
52
"@typescript-eslint/prefer-regexp-exec": "off",
53
"@typescript-eslint/require-await": "off",
54
"@typescript-eslint/restrict-template-expressions": "off",
55
"func-style": "off",
56
"sort-imports": "off"
57
}
58
}]
59
}