-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
94 lines (94 loc) · 2.4 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"env": {
"node": true,
"commonjs": true,
"es2020": true
},
"extends": [
"airbnb-base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"plugins": [
// "@typescript-eslint",
"import"
],
"ignorePatterns": [
"cdk.out/",
"coverage/",
"node_modules/",
"**/node_modules/*",
"**/dist/*",
"**/dist-ssr/*"
],
"rules": {
// "semi": ["error", "never"],
// "quotes": ["error", "double"],
"semi": "off",
"quotes": "off",
"no-underscore-dangle": "off",
"linebreak-style": 0,
"max-len": ["error", 120],
"arrow-parens": "off",
"object-curly-newline": "off",
"function-paren-newline": "off",
"function-call-argument-newline": "off",
"default-case": "off",
"no-return-assign": "off",
"object-property-newline": "off",
"import/no-extraneous-dependencies": "off",
"import/no-relative-packages": "off",
"import/prefer-default-export": "off",
"import/extensions": ["error", "ignorePackages", { "js": "never", "jsx": "never", "ts": "never", "tsx": "never" }],
"no-use-before-define": ["error", { "functions": false }],
"no-else-return": "off",
"lines-between-class-members": "off",
"array-bracket-spacing": ["error", "always"],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}]
},
"overrides": [
{
"files": ["cdk.ts", "**/cdk.ts"],
"rules": {
"require-jsdoc": "off"
}
},
{
"files": ["test/**", "**/*.test.js", "**/*.test.ts", "**/test/**"],
"env": { "mocha": true },
"plugins": ["mocha"],
"rules": {
"global-require": "off",
"padded-blocks": "off",
"prefer-arrow-callback": "off",
"func-names": "off",
"no-param-reassign": "off",
"require-jsdoc": "off",
"mocha/no-exclusive-tests": "error",
"mocha/no-identical-title": "error"
}
}
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"paths": ["."],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": {}
}
}
}