-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
35 lines (35 loc) · 1.46 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
{
"extends": [
"plugin:adonis/typescriptApp"
],
"rules": {
"no-unexpected-multiline": "error",
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"block-spacing": ["error", "always"],
"camelcase": ["error", { "ignoreImports": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"curly": ["error", "all"],
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"func-call-spacing": "error",
"indent": "off",
"@typescript-eslint/indent": ["error", "tab"],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"max-len": ["error", { "code": 120 }],
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"quote-props": ["error", "consistent-as-needed", { "keywords": true }],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"space-before-blocks": "error",
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
"space-in-parens": ["error", "never"],
"spaced-comment": ["error", "always", { "block": { "balanced": true, "exceptions": ["*"] } }],
"switch-colon-spacing": "error"
}
}