forked from openplayerjs/openplayerjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (57 loc) · 1.32 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"airbnb-base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"ignorePatterns": ["types/**/*.ts", "src/css/*", "dist/**/*.js", "webpack.config.js", "postcss.config.js"],
"env": {
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
},
"rules": {
"no-undef" : 0,
"no-bitwise": 0,
"no-param-reassign": 0,
"no-underscore-dangle": 0,
"no-plusplus": 0,
"no-case-declarations": 0,
"no-console": [2, { "allow": ["warn", "error"] }],
"class-methods-use-this": 0,
"import/extensions": [
2,
"ignorePackages",
{
"js": "never",
"ts": "never"
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": 2,
"prettier/prettier": 2,
"semi": 0,
"newline-per-chained-call": 2,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-extra-semi": 2,
"@typescript-eslint/explicit-function-return-type": 2
}
}