@robot-inventor/eslint-config 4.0.7 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +0 -33
- package/dist/cjs/package.json +1 -1
- package/dist/esm/index.js +0 -33
- package/dist/esm/package.json +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -12,23 +12,7 @@ const eslint_plugin_import_x_1 = __importDefault(require("eslint-plugin-import-x
|
|
|
12
12
|
const eslint_plugin_jsdoc_1 = __importDefault(require("eslint-plugin-jsdoc"));
|
|
13
13
|
const compat = new eslintrc_1.FlatCompat();
|
|
14
14
|
const eslintRules = {
|
|
15
|
-
"array-element-newline": ["error", "consistent"],
|
|
16
15
|
curly: ["error", "multi-line"],
|
|
17
|
-
"function-call-argument-newline": ["error", "consistent"],
|
|
18
|
-
"lines-between-class-members": [
|
|
19
|
-
"error",
|
|
20
|
-
"always",
|
|
21
|
-
{
|
|
22
|
-
exceptAfterSingleLine: true
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"max-len": [
|
|
26
|
-
"error",
|
|
27
|
-
{
|
|
28
|
-
code: 120
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"multiline-ternary": ["error", "always-multiline"],
|
|
32
16
|
"no-magic-numbers": [
|
|
33
17
|
"error",
|
|
34
18
|
{
|
|
@@ -43,25 +27,8 @@ const eslintRules = {
|
|
|
43
27
|
allowAsStatement: true
|
|
44
28
|
}
|
|
45
29
|
],
|
|
46
|
-
"object-curly-spacing": ["error", "always"],
|
|
47
30
|
"one-var": ["error", "never"],
|
|
48
|
-
"padded-blocks": ["error", "never"],
|
|
49
|
-
"space-before-function-paren": [
|
|
50
|
-
"error",
|
|
51
|
-
{
|
|
52
|
-
anonymous: "always",
|
|
53
|
-
asyncArrow: "always",
|
|
54
|
-
named: "never"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
31
|
"no-plusplus": "off",
|
|
58
|
-
"no-extra-parens": [
|
|
59
|
-
"error",
|
|
60
|
-
"all",
|
|
61
|
-
{
|
|
62
|
-
nestedBinaryExpressions: false
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
32
|
"no-new": "off"
|
|
66
33
|
};
|
|
67
34
|
const tseslintRules = {
|
package/dist/cjs/package.json
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -6,23 +6,7 @@ import importX from "eslint-plugin-import-x";
|
|
|
6
6
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
7
7
|
const compat = new FlatCompat();
|
|
8
8
|
const eslintRules = {
|
|
9
|
-
"array-element-newline": ["error", "consistent"],
|
|
10
9
|
curly: ["error", "multi-line"],
|
|
11
|
-
"function-call-argument-newline": ["error", "consistent"],
|
|
12
|
-
"lines-between-class-members": [
|
|
13
|
-
"error",
|
|
14
|
-
"always",
|
|
15
|
-
{
|
|
16
|
-
exceptAfterSingleLine: true
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"max-len": [
|
|
20
|
-
"error",
|
|
21
|
-
{
|
|
22
|
-
code: 120
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"multiline-ternary": ["error", "always-multiline"],
|
|
26
10
|
"no-magic-numbers": [
|
|
27
11
|
"error",
|
|
28
12
|
{
|
|
@@ -37,25 +21,8 @@ const eslintRules = {
|
|
|
37
21
|
allowAsStatement: true
|
|
38
22
|
}
|
|
39
23
|
],
|
|
40
|
-
"object-curly-spacing": ["error", "always"],
|
|
41
24
|
"one-var": ["error", "never"],
|
|
42
|
-
"padded-blocks": ["error", "never"],
|
|
43
|
-
"space-before-function-paren": [
|
|
44
|
-
"error",
|
|
45
|
-
{
|
|
46
|
-
anonymous: "always",
|
|
47
|
-
asyncArrow: "always",
|
|
48
|
-
named: "never"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
25
|
"no-plusplus": "off",
|
|
52
|
-
"no-extra-parens": [
|
|
53
|
-
"error",
|
|
54
|
-
"all",
|
|
55
|
-
{
|
|
56
|
-
nestedBinaryExpressions: false
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
26
|
"no-new": "off"
|
|
60
27
|
};
|
|
61
28
|
const tseslintRules = {
|
package/dist/esm/package.json
CHANGED