forked from openwhyd/openwhyd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
55 lines (55 loc) · 1.34 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended" // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
"plugins": ["prettier", "@typescript-eslint", "deprecation"],
"parserOptions": {
"project": "tsconfig.json",
"ecmaVersion": 2019
},
"ignorePatterns": [
"public/press/js/jquery-1.10.2.min.js",
"public/press/js/sliderz.v1.js"
],
"rules": {
"deprecation/deprecation": "warn",
"prettier/prettier": "error",
"no-inner-declarations": ["warn", "functions"]
},
"overrides": [
{
"files": [
"config/**/*.js",
"misc/**/*.js",
"public/**/*.js",
"scripts/**/*.js",
"test/**/*.js"
],
"rules": {
"no-undef": "warn",
"no-redeclare": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-this-alias": "warn"
}
},
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-var-requires": "off"
}
}
],
"env": {
"browser": true,
"mocha": true,
"jest": true,
"node": true,
"es6": true
}
}