-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
40 lines (40 loc) · 1.13 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended", "plugin:promise/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"env": { "browser": true },
"plugins": ["@typescript-eslint", "promise", "prettier", "@glimmerx"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^__" }],
"prefer-const": "error",
"@glimmerx/template-vars": "error"
},
"globals": {"haltBoot": "writable"},
"ignorePatterns": ["dist/**/*", "**/*.d.ts"],
"overrides": [
{
"files": ["webpack.config.js", "demo-pages/*"],
"env": { "node": true }
},
{
"files": ["tests/**/*"],
"env": { "browser": true, "qunit": true }
},
{
"files": ["tests/types/**/*"],
"env": { "browser": true },
"rules": { "no-unused-vars": 0 }
},
{
"files": ["src/**/*"],
"env": { "browser": true, "webextensions": true }
},
{
"files": ["content/**/*", "background/**/*", "lib/**/*"],
"env": { "browser": true, "webextensions": true }
}
]
}