-
Notifications
You must be signed in to change notification settings - Fork 80
/
.eslintrc.js
45 lines (45 loc) · 1.56 KB
/
.eslintrc.js
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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.eslint.json"],
},
extends: [
"eslint:recommended",
"standard",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:workspaces/recommended",
],
plugins: ["@typescript-eslint", "unused-imports", "workspaces", "notice"],
env: {
es6: true,
node: true,
},
ignorePatterns: [".eslintrc.js", "dist", "node_modules", "/examples", "bin", "*.js"],
rules: {
"notice/notice": [
"error",
{
mustMatch: "Copyright \\(c\\) [0-9]{0,4} Contributors to the Eclipse Foundation",
templateFile: __dirname + "/license.template.txt",
onNonMatchingHeader: "replace",
},
],
"@typescript-eslint/no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/prefer-nullish-coalescing": "error",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/strict-boolean-expressions": "error",
"import/no-extraneous-dependencies": "error",
"guard-for-in": "error",
"unused-imports/no-unused-vars": [
"warn",
{
args: "none",
varsIgnorePattern: "Test", // Ignore test suites from unused-imports
},
],
},
};