forked from cloudinary/js-transformation-builder-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
46 lines (46 loc) · 1.18 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"ignorePatterns": ["dist", "docs", "node_modules", "dev/*.esm*", "src/backwards"],
"env": {
"browser": true,
"jest": true
},
"rules": {
"require-jsdoc": "error",
"no-unused-vars": "warn",
"indent" : ["error", 2, { "SwitchCase": 1 }],
"dot-notation" : "error",
"no-param-reassign" : "error",
"no-unreachable" : "error",
"arrow-parens" : "error",
"one-var-declaration-per-line" : "error",
"curly": "error",
"semi": "error",
"prefer-const": "error",
"vars-on-top" : "error",
"no-cond-assign": "error",
"@typescript-eslint/ban-ts-comment" : "warn",
"comma-spacing" : "error",
"no-multi-spaces" : "error",
"prefer-template" : "error",
"import/extensions": [2, "ignorePackages"],
"max-nested-callbacks" : ["error",{
"max": 3
}],
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-empty-function": 0
}
}