forked from eclipse-thingweb/node-wot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
36 lines (36 loc) · 1.31 KB
/
.eslintrc.js
File metadata and controls
36 lines (36 loc) · 1.31 KB
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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.eslint.json"],
},
extends: ["eslint:recommended", "standard", "prettier", "plugin:@typescript-eslint/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",
},
],
"workspaces/no-relative-imports": "error",
"@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"],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
args: "none",
varsIgnorePattern: "Test", // Ignore test suites from unused-imports
},
],
},
};