forked from curvefi/curve-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
40 lines (40 loc) · 1.15 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
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module",
"allowImportExportEverywhere": false
},
"rules": {
"func-names": 0,
"no-nested-ternary": 0,
"max-len": 0,
"arrow-parens": ["error", "always"],
"no-underscore-dangle": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-use-before-define": ["error", "nofunc"],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"indent": ["error", 4, { "flatTernaryExpressions": true, "SwitchCase": 1 }]
},
"overrides": [{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off"
}
}]
}