-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy path.eslintrc.json
More file actions
55 lines (55 loc) · 2.05 KB
/
.eslintrc.json
File metadata and controls
55 lines (55 loc) · 2.05 KB
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
{
"extends": "airbnb-base",
"env": { "node": true },
"parserOptions": { "ecmaVersion": 2022 },
"plugins": [
"no-only-tests"
],
"rules": {
"array-bracket-spacing": "off",
"arrow-parens": "off",
"class-methods-use-this": "off",
"camelcase": [ "error", { "ignoreDestructuring": true, "properties": "never" } ],
"comma-dangle": "off",
"consistent-return": "off",
"curly": "off",
"default-param-last": "off", // TODO enable this and refactor the code
"function-call-argument-newline": "off",
"function-paren-newline": "off",
"global-require": "off",
"implicit-arrow-linebreak": "off",
"import/newline-after-import": "off",
"import/no-unresolved": ["error", { "ignore": ["^uuid$"] }], // uuid v9+ uses ES modules; eslint-plugin-import has trouble resolving it but it works fine at runtime
"import/order": "off",
"lines-between-class-members": "off",
"max-classes-per-file": "off",
"max-len": "off",
"no-continue": "off",
"no-debugger": "off",
"no-else-return": "off",
"no-multiple-empty-lines": "off",
"no-nested-ternary": "off",
"no-only-tests/no-only-tests": [ "error", { "block": [ "describe", "it", "describeMigration" ] } ],
"no-restricted-syntax": [ "error",
{
"message": "Do not use async functions in .forEach()",
"selector": "CallExpression[callee.property.name='forEach'] > :matches(ArrowFunctionExpression, FunctionExpression)[async=true].arguments"
}
],
"no-underscore-dangle": "off",
"nonblock-statement-body-position": "off",
"object-curly-newline": [ "error", {
"ObjectExpression": { "consistent": true },
"ObjectPattern": { "minProperties": 0 }
} ],
"object-property-newline": "off",
"operator-linebreak": "off",
"padded-blocks": "off",
"prefer-object-has-own": "error",
"prefer-object-spread": "off",
"prefer-template": "off",
"quotes": [ "error", "single", { "allowTemplateLiterals": true, "avoidEscape": true } ],
"space-infix-ops": "off",
"spaced-comment": "off"
}
}