@useinsider/eslint-config 1.8.1 → 1.9.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/rules/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r={"no-spaced-func":"off"},e={rules:{...r,"arrow-parens":"off",camelcase:["error",{allow:["^\\$_"]}],"class-methods-use-this":"off","comma-dangle":"off","consistent-return":["error"],curly:["error","all"],"dot-notation":["error"],"function-paren-newline":"off","guard-for-in":"error","handle-callback-err":["error"],indent:"off","max-len":"off","new-cap":["error"],"no-alert":["error"],"no-bitwise":["error",{allow:["~"]}],"no-caller":["error"],"no-case-declarations":["error"],"no-confusing-arrow":["error",{allowParens:!0}],"no-console":["error"],"no-debugger":["error"],"no-div-regex":["error"],"no-dupe-args":["error"],"no-dupe-keys":["error"],"no-duplicate-case":["error"],"no-else-return":["error"],"no-empty":["error"],"no-extra-bind":["error"],"no-extra-boolean-cast":"error","no-fallthrough":["error"],"no-implicit-coercion":["error",{boolean:!0,number:!0,string:!0}],"implicit-arrow-linebreak":"off","no-invalid-regexp":["error"],"no-iterator":["error"],"no-mixed-operators":"off","no-multi-spaces":"off","no-multi-str":["error"],"no-multiple-empty-lines":"off","no-native-reassign":"error","no-nested-ternary":["error"],"no-new":"off","no-new-object":["error"],"no-new-require":["error"],"no-param-reassign":["error",{props:!1}],"no-plusplus":"off","no-process-exit":["error"],"no-promise-executor-return":["error",{allowVoid:!0}],"no-return-assign":["error","except-parens"],"no-self-compare":["error"],"no-sequences":["error"],"no-shadow":["error",{allow:["state"]}],"no-undef":["error"],"no-underscore-dangle":"off","no-unexpected-multiline":["error"],"no-unreachable":["error"],"no-unused-vars":["error"],"no-use-before-define":"error","no-useless-call":["error"],"no-void":"off","no-with":["error"],"object-curly-newline":"off","object-shorthand":["error","always"],"padded-blocks":"off","
|
|
1
|
+
"use strict";const r={"no-spaced-func":"off"},e={rules:{...r,"arrow-parens":"off",camelcase:["error",{allow:["^\\$_"]}],"class-methods-use-this":"off","comma-dangle":"off","consistent-return":["error"],curly:["error","all"],"dot-notation":["error"],"function-paren-newline":"off","guard-for-in":"error","handle-callback-err":["error"],indent:"off","max-len":"off","new-cap":["error"],"no-alert":["error"],"no-bitwise":["error",{allow:["~"]}],"no-caller":["error"],"no-case-declarations":["error"],"no-confusing-arrow":["error",{allowParens:!0}],"no-console":["error"],"no-debugger":["error"],"no-div-regex":["error"],"no-dupe-args":["error"],"no-dupe-keys":["error"],"no-duplicate-case":["error"],"no-else-return":["error"],"no-empty":["error"],"no-extra-bind":["error"],"no-extra-boolean-cast":"error","no-fallthrough":["error"],"no-implicit-coercion":["error",{boolean:!0,number:!0,string:!0}],"implicit-arrow-linebreak":"off","no-invalid-regexp":["error"],"no-iterator":["error"],"no-mixed-operators":"off","no-multi-spaces":"off","no-multi-str":["error"],"no-multiple-empty-lines":"off","no-native-reassign":"error","no-nested-ternary":["error"],"no-new":"off","no-new-object":["error"],"no-new-require":["error"],"no-param-reassign":["error",{props:!1}],"no-plusplus":"off","no-process-exit":["error"],"no-promise-executor-return":["error",{allowVoid:!0}],"no-return-assign":["error","except-parens"],"no-self-compare":["error"],"no-sequences":["error"],"no-shadow":["error",{allow:["state"]}],"no-undef":["error"],"no-underscore-dangle":"off","no-unexpected-multiline":["error"],"no-unreachable":["error"],"no-unused-vars":["error"],"no-use-before-define":"error","no-useless-call":["error"],"no-void":"off","no-with":["error"],"object-curly-newline":"off","object-shorthand":["error","always"],"padded-blocks":"off","prefer-const":["error",{destructuring:"all"}],"prefer-destructuring":["error"],radix:["error","as-needed"],semi:"off","space-before-function-paren":"off","space-in-parens":"off",strict:["error"],"use-isnan":["error"],"valid-typeof":["error"],"no-trailing-spaces":"off"}};module.exports=e;
|
package/dist/rules/core.js
CHANGED
|
@@ -82,54 +82,6 @@ const r = {
|
|
|
82
82
|
"object-curly-newline": "off",
|
|
83
83
|
"object-shorthand": ["error", "always"],
|
|
84
84
|
"padded-blocks": "off",
|
|
85
|
-
"padding-line-between-statements": [
|
|
86
|
-
"error",
|
|
87
|
-
{
|
|
88
|
-
blankLine: "always",
|
|
89
|
-
next: "*",
|
|
90
|
-
prev: ["const", "let", "var", "if", "block-like", "directive"]
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
blankLine: "always",
|
|
94
|
-
next: ["const", "let", "var", "if", "directive", "return", "break", "default", "cjs-export", "export"],
|
|
95
|
-
prev: "*"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
blankLine: "any",
|
|
99
|
-
next: ["cjs-export", "export"],
|
|
100
|
-
prev: ["cjs-export", "export"]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
blankLine: "any",
|
|
104
|
-
next: ["const", "let", "var", "directive"],
|
|
105
|
-
prev: ["const", "let", "var", "directive"]
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
blankLine: "never",
|
|
109
|
-
next: ["singleline-const", "singleline-let", "singleline-var"],
|
|
110
|
-
prev: ["singleline-const", "singleline-let", "singleline-var"]
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
blankLine: "always",
|
|
114
|
-
next: ["multiline-block-like"],
|
|
115
|
-
prev: ["*"]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
blankLine: "always",
|
|
119
|
-
next: ["*"],
|
|
120
|
-
prev: ["multiline-block-like"]
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
blankLine: "any",
|
|
124
|
-
next: ["case"],
|
|
125
|
-
prev: ["case"]
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
blankLine: "any",
|
|
129
|
-
next: ["singleline-const", "singleline-let", "singleline-var"],
|
|
130
|
-
prev: ["cjs-import"]
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
85
|
"prefer-const": ["error", {
|
|
134
86
|
destructuring: "all"
|
|
135
87
|
}],
|
package/dist/rules/stylistic.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e={rules:{"@stylistic/array-bracket-newline":["error","consistent"],"@stylistic/array-bracket-spacing":["error","never"],"@stylistic/array-element-newline":["error","consistent"],"@stylistic/arrow-parens":["error","as-needed"],"@stylistic/arrow-spacing":["error"],"@stylistic/brace-style":["error","1tbs"],"@stylistic/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline",enums:"always-multiline",generics:"always-multiline",tuples:"always-multiline"}],"@stylistic/comma-spacing":["error"],"@stylistic/computed-property-spacing":["error"],"@stylistic/dot-location":["error","property"],"@stylistic/eol-last":["error","always"],"@stylistic/function-call-argument-newline":["error","consistent"],"@stylistic/function-call-spacing":["error","never"],"@stylistic/function-paren-newline":["error","consistent"],"@stylistic/implicit-arrow-linebreak":["error","beside"],"@stylistic/indent":["error",4,{SwitchCase:1,ignoredNodes:["PropertyDefinition[decorators]","TSUnionType"]}],"@stylistic/key-spacing":["error"],"@stylistic/keyword-spacing":["error"],"@stylistic/linebreak-style":["error","unix"],"@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/max-len":["error",120,{ignoreComments:!0,ignoreRegExpLiterals:!0,ignoreTrailingComments:!0,ignoreUrls:!0}],"@stylistic/max-statements-per-line":["error",{max:2}],"@stylistic/member-delimiter-style":["error",{multiline:{requireLast:!0},singleline:{requireLast:!1}}],"@stylistic/multiline-ternary":["error","always-multiline"],"@stylistic/new-parens":["error","always"],"@stylistic/no-extra-parens":["error","all",{allowParensAfterCommentPattern:"@type|@satisfies",enforceForArrowConditionals:!1,nestedBinaryExpressions:!1,returnAssign:!1}],"@stylistic/no-extra-semi":["error"],"@stylistic/no-floating-decimal":"error","@stylistic/no-mixed-operators":["error",{allowSamePrecedence:!0,groups:[["&","|","^","~","<<",">>",">>>"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]]}],"@stylistic/no-mixed-spaces-and-tabs":["error"],"@stylistic/no-multi-spaces":["error"],"@stylistic/no-multiple-empty-lines":["error",{max:1,maxEOF:0,maxBOF:0}],"@stylistic/no-trailing-spaces":["error"],"@stylistic/no-whitespace-before-property":["error"],"@stylistic/object-curly-newline":["error",{consistent:!0}],"@stylistic/object-curly-spacing":["error","always"],"@stylistic/padded-blocks":["error","never"],"@stylistic/quote-props":["error","as-needed"],"@stylistic/quotes":["error","single",{avoidEscape:!0}],"@stylistic/rest-spread-spacing":["error","never"],"@stylistic/semi":["error"],"@stylistic/semi-spacing":["error",{after:!0,before:!1}],"@stylistic/semi-style":["error","last"],"@stylistic/space-before-blocks":["error"],"@stylistic/space-before-function-paren":["error",{anonymous:"always",named:"always"}],"@stylistic/space-in-parens":["error","never"],"@stylistic/space-infix-ops":["error"],"@stylistic/spaced-comment":["error","always",{markers:["/"]}],"@stylistic/template-curly-spacing":["error","never"],"@stylistic/template-tag-spacing":["error","never"],"@stylistic/type-annotation-spacing":["error"],"@stylistic/type-generic-spacing":["error"],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:"*",prev:["const","let","var","if","block-like","directive"]},{blankLine:"always",next:["const","let","var","if","while","directive","throw","return","break","default","cjs-export","export","continue","iife"],prev:"*"},{blankLine:"always",prev:["*"],next:["cjs-export","export"]},{blankLine:"any",next:["const","let","var","directive"],prev:["const","let","var","directive"]},{blankLine:"never",next:["singleline-const","singleline-let","singleline-var"],prev:["singleline-const","singleline-let","singleline-var"]},{blankLine:"always",next:["multiline-block-like"],prev:["*"]},{blankLine:"always",next:["*"],prev:["multiline-block-like"]},{blankLine:"any",next:["case"],prev:["case"]},{blankLine:"any",next:["singleline-const","singleline-let","singleline-var"],prev:["cjs-import"]}]}};module.exports=e;
|
package/dist/rules/stylistic.js
CHANGED
|
@@ -57,7 +57,7 @@ const e = {
|
|
|
57
57
|
"@stylistic/multiline-ternary": ["error", "always-multiline"],
|
|
58
58
|
"@stylistic/new-parens": ["error", "always"],
|
|
59
59
|
"@stylistic/no-extra-parens": ["error", "all", {
|
|
60
|
-
allowParensAfterCommentPattern: "@type",
|
|
60
|
+
allowParensAfterCommentPattern: "@type|@satisfies",
|
|
61
61
|
enforceForArrowConditionals: !1,
|
|
62
62
|
nestedBinaryExpressions: !1,
|
|
63
63
|
returnAssign: !1
|
|
@@ -111,7 +111,70 @@ const e = {
|
|
|
111
111
|
"@stylistic/template-curly-spacing": ["error", "never"],
|
|
112
112
|
"@stylistic/template-tag-spacing": ["error", "never"],
|
|
113
113
|
"@stylistic/type-annotation-spacing": ["error"],
|
|
114
|
-
"@stylistic/type-generic-spacing": ["error"]
|
|
114
|
+
"@stylistic/type-generic-spacing": ["error"],
|
|
115
|
+
"@stylistic/padding-line-between-statements": [
|
|
116
|
+
"error",
|
|
117
|
+
{
|
|
118
|
+
blankLine: "always",
|
|
119
|
+
next: "*",
|
|
120
|
+
prev: ["const", "let", "var", "if", "block-like", "directive"]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
blankLine: "always",
|
|
124
|
+
next: [
|
|
125
|
+
"const",
|
|
126
|
+
"let",
|
|
127
|
+
"var",
|
|
128
|
+
"if",
|
|
129
|
+
"while",
|
|
130
|
+
"directive",
|
|
131
|
+
"throw",
|
|
132
|
+
"return",
|
|
133
|
+
"break",
|
|
134
|
+
"default",
|
|
135
|
+
"cjs-export",
|
|
136
|
+
"export",
|
|
137
|
+
"continue",
|
|
138
|
+
"iife"
|
|
139
|
+
],
|
|
140
|
+
prev: "*"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
blankLine: "always",
|
|
144
|
+
prev: ["*"],
|
|
145
|
+
next: ["cjs-export", "export"]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
blankLine: "any",
|
|
149
|
+
next: ["const", "let", "var", "directive"],
|
|
150
|
+
prev: ["const", "let", "var", "directive"]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
blankLine: "never",
|
|
154
|
+
next: ["singleline-const", "singleline-let", "singleline-var"],
|
|
155
|
+
prev: ["singleline-const", "singleline-let", "singleline-var"]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
blankLine: "always",
|
|
159
|
+
next: ["multiline-block-like"],
|
|
160
|
+
prev: ["*"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
blankLine: "always",
|
|
164
|
+
next: ["*"],
|
|
165
|
+
prev: ["multiline-block-like"]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
blankLine: "any",
|
|
169
|
+
next: ["case"],
|
|
170
|
+
prev: ["case"]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
blankLine: "any",
|
|
174
|
+
next: ["singleline-const", "singleline-let", "singleline-var"],
|
|
175
|
+
prev: ["cjs-import"]
|
|
176
|
+
}
|
|
177
|
+
]
|
|
115
178
|
}
|
|
116
179
|
};
|
|
117
180
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={indent:"off","no-undef":"off","no-shadow":"off","@typescript-eslint/comma-dangle":"off","no-extra-parens":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/space-before-function-paren":"off","no-unused-vars":"off","no-useless-constructor":"off","@typescript-eslint/indent":"off",semi:"off","@typescript-eslint/semi":"off","react/jsx-filename-extension":"off","no-use-before-define":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/object-curly-spacing":"off","no-redeclare":"off","@typescript-eslint/func-call-spacing":"off"},s={rules:{...e,"@typescript-eslint/no-shadow":"error","@typescript-eslint/no-unused-vars":["error"],"@typescript-eslint/no-useless-constructor":["error"],"@typescript-eslint/array-type":["error",{default:"array",readonly:"array"}],"@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{arguments:!1}}],"@typescript-eslint/no-use-before-define":["error"]}};module.exports=s;
|
|
1
|
+
"use strict";const e={indent:"off","no-undef":"off","no-shadow":"off","@typescript-eslint/comma-dangle":"off","no-extra-parens":"off","@typescript-eslint/no-extra-parens":"off","@typescript-eslint/space-before-function-paren":"off","no-unused-vars":"off","no-useless-constructor":"off","@typescript-eslint/indent":"off",semi:"off","@typescript-eslint/semi":"off","react/jsx-filename-extension":"off","no-use-before-define":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/comma-spacing":"off","@typescript-eslint/space-before-blocks":"off","@typescript-eslint/object-curly-spacing":"off","no-redeclare":"off","@typescript-eslint/func-call-spacing":"off"},s={rules:{...e,"@typescript-eslint/no-shadow":"error","@typescript-eslint/no-unused-vars":["error"],"@typescript-eslint/no-useless-constructor":["error"],"@typescript-eslint/array-type":["error",{default:"array",readonly:"array"}],"@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:{arguments:!1}}],"@typescript-eslint/no-use-before-define":["error"],"@typescript-eslint/consistent-type-imports":["error",{fixStyle:"inline-type-imports",disallowTypeAnnotations:!1}]}};module.exports=s;
|
package/dist/rules/typescript.js
CHANGED
|
@@ -30,7 +30,11 @@ const e = {
|
|
|
30
30
|
"@typescript-eslint/no-misused-promises": ["error", {
|
|
31
31
|
checksVoidReturn: { arguments: !1 }
|
|
32
32
|
}],
|
|
33
|
-
"@typescript-eslint/no-use-before-define": ["error"]
|
|
33
|
+
"@typescript-eslint/no-use-before-define": ["error"],
|
|
34
|
+
"@typescript-eslint/consistent-type-imports": ["error", {
|
|
35
|
+
fixStyle: "inline-type-imports",
|
|
36
|
+
disallowTypeAnnotations: !1
|
|
37
|
+
}]
|
|
34
38
|
}
|
|
35
39
|
};
|
|
36
40
|
export {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.0",
|
|
5
5
|
"description": "A collection of ESLint configurations provided by @useinsider, offering support for various environments including Vanilla JS, TypeScript, and framework-specific setups such as Vue 3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"useinsider",
|