@labeg/code-style 4.0.3 → 4.0.5
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/.eslintrc.js +5 -3
- package/package.json +1 -1
package/.eslintrc.js
CHANGED
|
@@ -57,7 +57,8 @@ const jsAndTsRules = {
|
|
|
57
57
|
"@stylistic/multiline-ternary": ["error", "always-multiline"], // More nice
|
|
58
58
|
"@stylistic/array-element-newline": ["error", "consistent"], // More nice
|
|
59
59
|
"@stylistic/operator-linebreak": ["error", "after"], // More nice
|
|
60
|
-
"@stylistic/no-extra-parens": "off"
|
|
60
|
+
"@stylistic/no-extra-parens": "off",
|
|
61
|
+
"@stylistic/dot-location": ["error", "property"] // Maybe later?
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
module.exports = {
|
|
@@ -76,8 +77,7 @@ module.exports = {
|
|
|
76
77
|
},
|
|
77
78
|
ignorePatterns: ["node_modules/*"],
|
|
78
79
|
rules: {
|
|
79
|
-
...jsAndTsRules
|
|
80
|
-
"no-duplicate-imports": "off", // Bug, conflict between TS import and import type
|
|
80
|
+
...jsAndTsRules
|
|
81
81
|
},
|
|
82
82
|
overrides: [
|
|
83
83
|
{
|
|
@@ -114,6 +114,8 @@ module.exports = {
|
|
|
114
114
|
],
|
|
115
115
|
rules: {
|
|
116
116
|
...jsAndTsRules,
|
|
117
|
+
"no-duplicate-imports": "off", // Bug, conflict between TS import and import type
|
|
118
|
+
|
|
117
119
|
"@typescript-eslint/no-inferrable-types": "off", // Need for reflection
|
|
118
120
|
"@typescript-eslint/no-magic-numbers": "off",
|
|
119
121
|
"@typescript-eslint/prefer-readonly-parameter-types": "off", // Wrong immutable undestand
|