Skip to content
Permalink
Newer
Older
100644 77 lines (76 sloc) 2.81 KB
Ignoring revisions in .git-blame-ignore-revs.
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",
January 18, 2023 20:50
19
"import/extensions": ["error", {
20
// Allow importing JSON files
21
"json": {}
22
}],
23
"import/no-amd": "error",
24
"import/no-commonjs": "error",
25
"import/no-cycle": "error",
26
"import/no-dynamic-require": "error",
27
// Disable the rule that checks that devDependencies aren't imported since we use a single
28
// linting configuration file for both source and test code.
29
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
30
"import/no-namespace": "off",
31
"import/no-unresolved": "error",
32
"import/no-webpack-loader-syntax": "error",
33
"import/order": ["error", {
34
"alphabetize": {"order": "asc"},
35
"newlines-between": "always"
36
}],
37
"max-len": ["error", {
38
"code": 120,
39
"ignoreUrls": true,
40
"ignoreStrings": true,
41
"ignoreTemplateLiterals": true
42
}],
43
"no-async-foreach/no-async-foreach": "error",
44
"no-console": "off",
45
"no-sequences": "error",
November 19, 2020 22:38
46
"no-shadow": "off",
47
"@typescript-eslint/no-shadow": ["error"],
48
"one-var": ["error", "never"]
49
},
50
"overrides": [{
51
// "temporarily downgraded during transition to eslint
52
"files": "**",
53
"rules": {
54
"@typescript-eslint/ban-types": "off",
55
"@typescript-eslint/explicit-module-boundary-types": "off",
56
"@typescript-eslint/no-explicit-any": "off",
57
"@typescript-eslint/no-unsafe-assignment": "off",
58
"@typescript-eslint/no-unsafe-call": "off",
59
"@typescript-eslint/no-unsafe-member-access": "off",
60
"@typescript-eslint/no-unsafe-return": "off",
61
"@typescript-eslint/no-var-requires": "off",
62
"@typescript-eslint/prefer-regexp-exec": "off",
63
"@typescript-eslint/require-await": "off",
64
"@typescript-eslint/restrict-template-expressions": "off",
65
"func-style": "off",
66
"sort-imports": "off"
67
}
January 18, 2023 20:50
68
}],
69
"settings": {
70
"import/resolver": {
71
"node": {
72
"moduleDirectory": ["node_modules", "src"]
73
},
74
"typescript": {}
75
}
76
}
77
}