-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (46 loc) · 1.25 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
{
"env": {
"node": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"google"
],
"ignorePatterns": "*.js",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"vars": "all",
"varsIgnorePattern": "^_"
}
],
"semi": ["error", "always"],
"no-tabs": 0,
"linebreak-style": 0,
"indent": ["error", "tab", { "VariableDeclarator": 0 }],
"no-multiple-empty-lines": ["error", { "max": 3, "maxEOF": 0, "maxBOF": 1 }],
"brace-style": ["error", "stroustrup"],
"max-len": ["error", { "code": 100, "comments": 120, "tabWidth": 2 }],
"camelcase": "off",
"comma-dangle": "off",
"arrow-parens": "off",
"object-curly-spacing": ["error", "always"],
"require-jsdoc": "off",
"valid-jsdoc": "off",
"operator-linebreak": ["error", "after"],
"padded-blocks": "off",
"no-invalid-this": 0 // TODO: estudar isso
}
}