-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.json
48 lines (40 loc) · 1.19 KB
/
.eslintrc.json
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
46
47
48
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
// Allow shadow declarations
"@typescript-eslint/no-shadow": "off",
// Require spacing in object literals
"@typescript-eslint/object-curly-spacing": ["error", "always"],
// Allow class methods that dont use 'this'
"class-methods-use-this": "off",
// Allow console log messages
"no-console": "off",
// Allow extraneous dependencies
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
// Allow named default exports
"import/no-named-as-default": "off",
// Allow files with no default export
"import/prefer-default-export": "off",
// Allowing cyclic dependencies
"import/no-cycle": "off"
},
"ignorePatterns": ["**/*.spec.ts"],
"env": {
"browser": false,
"es2021": true,
"mocha": true
}
}