forked from sogebot/sogeBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
109 lines (108 loc) · 2.88 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"plugins": [
"@typescript-eslint",
"import",
"require-extensions"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:import/typescript", "plugin:require-extensions/recommended"
],
"rules": {
"indent": "off",
"@typescript-eslint/indent": [ "error", 2 ],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
"align": "value"
}],
"object-curly-spacing": ["error", "always"],
"object-curly-newline": ["error", {
"consistent": true
}],
"@typescript-eslint/no-unused-vars": ["warn", {
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxEOF": 0,
"maxBOF": 0
}],
"import/order": ["warn", {
"groups": ["builtin", "external", ["internal"],
["parent", "sibling"], "index"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"pathGroups": [{
"pattern": "src/**",
"group": "internal",
"position": "after"
}]
}],
"import/no-cycle": [2, {
"maxDepth": 1
}],
"import/newline-after-import": ["error", {
"count": 1
}],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/explicit-member-accessibility": "off",
"quotes": ["error", "single", {
"allowTemplateLiterals": true
}],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/class-name-casing": 0,
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/no-namespace": 0,
"interface-over-type-literal": 0,
"@typescript-eslint/no-var-requires": 1,
"@typescript-eslint/no-inferrable-types": 0,
"semi": "off",
"@typescript-eslint/semi": ["error"],
"curly": ["error"],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": false
}],
"no-var": 2,
"prefer-spread": "error",
"comma-dangle": [2, "always-multiline"],
"dot-notation": 2,
"operator-linebreak": ["error", "before"],
"brace-style": "error",
"no-useless-call": "error"
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion":"latest",
"sourceType": "module",
"useJSXTextNode": true,
"project": ["./tsconfig.eslint.json"],
"tsconfigRootDir": "./",
"extraFileExtensions": [".vue"]
},
"env": {
"node": true,
"mocha": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src/"]
}
},
"import/internal-regex": "^src/"
}
}