@useinsider/eslint-config 1.2.1 → 1.3.0-beta.9
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/README.md +47 -28
- package/dist/base-BAede0cC.js +2793 -0
- package/dist/base-DxTgZSag.cjs +1 -0
- package/dist/base.d.ts +5 -0
- package/dist/compat-BMmtJ5BI.js +15 -0
- package/dist/compat-CkhpJ9YP.cjs +1 -0
- package/dist/configs/config/index.d.ts +3 -0
- package/dist/configs/dom/index.d.ts +3 -0
- package/dist/configs/node/index.d.ts +3 -0
- package/dist/configs/typescript/index.d.ts +5 -0
- package/dist/configs/typescript-dom/index.d.ts +5 -0
- package/dist/configs/vue2/index.d.ts +5 -0
- package/dist/configs/vue3/index.d.ts +5 -0
- package/dist/configs/vue3-typescript/index.d.ts +5 -0
- package/dist/index-Ac6Hw-uA.cjs +1 -0
- package/dist/index-B16ngeJj.js +22 -0
- package/dist/index-B9y7N-hx.js +39 -0
- package/dist/index-BNob5rb3.js +34 -0
- package/dist/index-BaFuYv5N.js +22 -0
- package/dist/index-BtHFk1z3.js +41 -0
- package/dist/index-C6lOnN-C.js +32 -0
- package/dist/index-CAuGyIr4.cjs +1 -0
- package/dist/index-CYJsMDkS.cjs +1 -0
- package/dist/index-CixUmpPQ.js +9 -0
- package/dist/index-FzjaDGwD.cjs +1 -0
- package/dist/index-Rmzbhrzc.cjs +1 -0
- package/dist/index-SyvyuQ5y.cjs +1 -0
- package/dist/index-TqgLVfW-.cjs +1 -0
- package/dist/index-qbptbq51.cjs +1 -0
- package/dist/index-x9l2X-No.js +32 -0
- package/dist/main-BeBiQCVR.js +63 -0
- package/dist/main-tNBIB6QK.cjs +1 -0
- package/dist/main.cjs +1 -0
- package/dist/main.d.ts +18 -0
- package/dist/main.js +4 -0
- package/dist/rules/core.cjs +1 -0
- package/dist/rules/core.d.ts +3 -0
- package/dist/rules/core.js +170 -0
- package/dist/rules/cspell.cjs +1 -0
- package/dist/rules/cspell.d.ts +3 -0
- package/dist/rules/cspell.js +8 -0
- package/dist/rules/jsdoc.cjs +1 -0
- package/dist/rules/jsdoc.d.ts +3 -0
- package/dist/rules/jsdoc.js +28 -0
- package/dist/rules/stylistic.cjs +1 -0
- package/dist/rules/stylistic.d.ts +3 -0
- package/dist/rules/stylistic.js +120 -0
- package/dist/rules/typescript.cjs +1 -0
- package/dist/rules/typescript.d.ts +3 -0
- package/dist/rules/typescript.js +35 -0
- package/dist/rules/vue.cjs +1 -0
- package/dist/rules/vue.d.ts +3 -0
- package/dist/rules/vue.js +178 -0
- package/dist/rules/vue2.cjs +1 -0
- package/dist/rules/vue2.d.ts +3 -0
- package/dist/rules/vue2.js +12 -0
- package/dist/utils/compat.d.ts +7 -0
- package/dist/utils/merge.d.ts +1 -0
- package/dist/utils/mergeAllConfig.d.ts +2 -0
- package/package.json +58 -37
- package/src/base.cjs +0 -10
- package/src/config/README.md +0 -56
- package/src/config/index.cjs +0 -7
- package/src/dom/README.md +0 -56
- package/src/dom/index.cjs +0 -20
- package/src/node/README.md +0 -56
- package/src/node/index.cjs +0 -19
- package/src/rules/README.md +0 -6
- package/src/rules/core.cjs +0 -168
- package/src/rules/cspell.cjs +0 -6
- package/src/rules/jsdoc.cjs +0 -26
- package/src/rules/stylistic.cjs +0 -118
- package/src/rules/typescript.cjs +0 -33
- package/src/rules/vue.cjs +0 -172
- package/src/typescript/README.md +0 -64
- package/src/typescript/index.cjs +0 -44
- package/src/typescript-dom/README.md +0 -85
- package/src/typescript-dom/index.cjs +0 -47
- package/src/vue3/README.md +0 -84
- package/src/vue3/index.cjs +0 -29
- package/src/vue3-typescript/README.md +0 -93
- package/src/vue3-typescript/index.cjs +0 -51
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
rules: {
|
|
3
|
+
"arrow-parens": "off",
|
|
4
|
+
camelcase: ["error", {
|
|
5
|
+
allow: ["^\\$_"]
|
|
6
|
+
}],
|
|
7
|
+
"class-methods-use-this": "off",
|
|
8
|
+
"comma-dangle": "off",
|
|
9
|
+
"consistent-return": ["error"],
|
|
10
|
+
curly: ["error", "all"],
|
|
11
|
+
"dot-notation": ["error"],
|
|
12
|
+
"function-paren-newline": "off",
|
|
13
|
+
"guard-for-in": "error",
|
|
14
|
+
"handle-callback-err": ["error"],
|
|
15
|
+
"import/extensions": ["error", {
|
|
16
|
+
css: "always",
|
|
17
|
+
js: "never",
|
|
18
|
+
json: "always",
|
|
19
|
+
jsx: "never",
|
|
20
|
+
sass: "always",
|
|
21
|
+
scss: "always",
|
|
22
|
+
svg: "always",
|
|
23
|
+
ts: "never",
|
|
24
|
+
tsx: "never",
|
|
25
|
+
vue: "always"
|
|
26
|
+
}],
|
|
27
|
+
"import/no-cycle": "off",
|
|
28
|
+
"import/no-unresolved": "off",
|
|
29
|
+
"import/order": ["error", {
|
|
30
|
+
alphabetize: {
|
|
31
|
+
caseInsensitive: !0,
|
|
32
|
+
order: "asc"
|
|
33
|
+
},
|
|
34
|
+
groups: ["index", "builtin", "object", "type", "external", "parent", "internal", "sibling"],
|
|
35
|
+
pathGroups: [{
|
|
36
|
+
group: "internal",
|
|
37
|
+
pattern: "@/**"
|
|
38
|
+
}]
|
|
39
|
+
}],
|
|
40
|
+
"import/prefer-default-export": "off",
|
|
41
|
+
indent: "off",
|
|
42
|
+
"max-len": "off",
|
|
43
|
+
"new-cap": ["error"],
|
|
44
|
+
"no-alert": ["error"],
|
|
45
|
+
"no-bitwise": ["error", {
|
|
46
|
+
allow: ["~"]
|
|
47
|
+
}],
|
|
48
|
+
"no-caller": ["error"],
|
|
49
|
+
"no-case-declarations": ["error"],
|
|
50
|
+
"no-confusing-arrow": ["error", {
|
|
51
|
+
allowParens: !0
|
|
52
|
+
}],
|
|
53
|
+
"no-console": ["error"],
|
|
54
|
+
"no-debugger": ["error"],
|
|
55
|
+
"no-div-regex": ["error"],
|
|
56
|
+
"no-dupe-args": ["error"],
|
|
57
|
+
"no-dupe-keys": ["error"],
|
|
58
|
+
"no-duplicate-case": ["error"],
|
|
59
|
+
"no-else-return": ["error"],
|
|
60
|
+
"no-empty": ["error"],
|
|
61
|
+
"no-extra-bind": ["error"],
|
|
62
|
+
"no-extra-boolean-cast": "error",
|
|
63
|
+
"no-fallthrough": ["error"],
|
|
64
|
+
"no-implicit-coercion": ["error", {
|
|
65
|
+
boolean: !0,
|
|
66
|
+
number: !0,
|
|
67
|
+
string: !0
|
|
68
|
+
}],
|
|
69
|
+
"implicit-arrow-linebreak": "off",
|
|
70
|
+
"no-invalid-regexp": ["error"],
|
|
71
|
+
"no-iterator": ["error"],
|
|
72
|
+
"no-mixed-operators": "off",
|
|
73
|
+
"no-multi-spaces": "off",
|
|
74
|
+
"no-multi-str": ["error"],
|
|
75
|
+
"no-multiple-empty-lines": "off",
|
|
76
|
+
"no-native-reassign": "error",
|
|
77
|
+
"no-nested-ternary": ["error"],
|
|
78
|
+
"no-new": "off",
|
|
79
|
+
"no-new-object": ["error"],
|
|
80
|
+
"no-new-require": ["error"],
|
|
81
|
+
"no-param-reassign": ["error", {
|
|
82
|
+
props: !1
|
|
83
|
+
}],
|
|
84
|
+
"no-plusplus": "off",
|
|
85
|
+
"no-process-exit": ["error"],
|
|
86
|
+
"no-promise-executor-return": ["error", {
|
|
87
|
+
allowVoid: !0
|
|
88
|
+
}],
|
|
89
|
+
"no-return-assign": ["error", "except-parens"],
|
|
90
|
+
"no-self-compare": ["error"],
|
|
91
|
+
"no-sequences": ["error"],
|
|
92
|
+
"no-shadow": ["error", {
|
|
93
|
+
allow: ["state"]
|
|
94
|
+
}],
|
|
95
|
+
"no-undef": ["error"],
|
|
96
|
+
"no-underscore-dangle": "off",
|
|
97
|
+
"no-unexpected-multiline": ["error"],
|
|
98
|
+
"no-unreachable": ["error"],
|
|
99
|
+
"no-unused-vars": ["error"],
|
|
100
|
+
"no-use-before-define": "error",
|
|
101
|
+
"no-useless-call": ["error"],
|
|
102
|
+
"no-void": "off",
|
|
103
|
+
"no-with": ["error"],
|
|
104
|
+
"object-curly-newline": "off",
|
|
105
|
+
"object-shorthand": ["error", "always"],
|
|
106
|
+
"padded-blocks": "off",
|
|
107
|
+
"padding-line-between-statements": [
|
|
108
|
+
"error",
|
|
109
|
+
{
|
|
110
|
+
blankLine: "always",
|
|
111
|
+
next: "*",
|
|
112
|
+
prev: ["const", "let", "var", "if", "block-like", "directive"]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
blankLine: "always",
|
|
116
|
+
next: ["const", "let", "var", "if", "directive", "return", "break", "default", "cjs-export", "export"],
|
|
117
|
+
prev: "*"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
blankLine: "any",
|
|
121
|
+
next: ["cjs-export", "export"],
|
|
122
|
+
prev: ["cjs-export", "export"]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
blankLine: "any",
|
|
126
|
+
next: ["const", "let", "var", "directive"],
|
|
127
|
+
prev: ["const", "let", "var", "directive"]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
blankLine: "never",
|
|
131
|
+
next: ["singleline-const", "singleline-let", "singleline-var"],
|
|
132
|
+
prev: ["singleline-const", "singleline-let", "singleline-var"]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
blankLine: "always",
|
|
136
|
+
next: ["multiline-block-like"],
|
|
137
|
+
prev: ["*"]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
blankLine: "always",
|
|
141
|
+
next: ["*"],
|
|
142
|
+
prev: ["multiline-block-like"]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
blankLine: "any",
|
|
146
|
+
next: ["case"],
|
|
147
|
+
prev: ["case"]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
blankLine: "any",
|
|
151
|
+
next: ["singleline-const", "singleline-let", "singleline-var"],
|
|
152
|
+
prev: ["cjs-import"]
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"prefer-const": ["error", {
|
|
156
|
+
destructuring: "all"
|
|
157
|
+
}],
|
|
158
|
+
"prefer-destructuring": ["error"],
|
|
159
|
+
radix: ["error", "as-needed"],
|
|
160
|
+
semi: "off",
|
|
161
|
+
"space-before-function-paren": "off",
|
|
162
|
+
"space-in-parens": "off",
|
|
163
|
+
strict: ["error"],
|
|
164
|
+
"use-isnan": ["error"],
|
|
165
|
+
"valid-typeof": ["error"]
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
e as default
|
|
170
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={rules:{"@cspell/spellchecker":"error"}};module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={rules:{"jsdoc/check-param-names":["error"],"jsdoc/check-tag-names":["error"],"jsdoc/no-undefined-types":"off","jsdoc/require-param":["error",{enableRestElementFixer:!1,enableRootFixer:!1}],"jsdoc/require-jsdoc":["off"],"jsdoc/require-param-description":"off","jsdoc/require-param-type":["error"],"jsdoc/require-property-description":"off","jsdoc/require-returns":["error",{contexts:["TSInterfaceDeclaration","TSMethodSignature"],forceRequireReturn:!0,exemptedBy:["inheritdoc","watch"]}],"jsdoc/require-returns-check":["error"],"jsdoc/require-returns-description":"off","jsdoc/tag-lines":["error"],"jsdoc/valid-types":"off","jsdoc/check-types":["error"]}};module.exports=e;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
rules: {
|
|
3
|
+
"jsdoc/check-param-names": ["error"],
|
|
4
|
+
"jsdoc/check-tag-names": ["error"],
|
|
5
|
+
"jsdoc/no-undefined-types": "off",
|
|
6
|
+
"jsdoc/require-param": ["error", {
|
|
7
|
+
enableRestElementFixer: !1,
|
|
8
|
+
enableRootFixer: !1
|
|
9
|
+
}],
|
|
10
|
+
"jsdoc/require-jsdoc": ["off"],
|
|
11
|
+
"jsdoc/require-param-description": "off",
|
|
12
|
+
"jsdoc/require-param-type": ["error"],
|
|
13
|
+
"jsdoc/require-property-description": "off",
|
|
14
|
+
"jsdoc/require-returns": ["error", {
|
|
15
|
+
contexts: ["TSInterfaceDeclaration", "TSMethodSignature"],
|
|
16
|
+
forceRequireReturn: !0,
|
|
17
|
+
exemptedBy: ["inheritdoc", "watch"]
|
|
18
|
+
}],
|
|
19
|
+
"jsdoc/require-returns-check": ["error"],
|
|
20
|
+
"jsdoc/require-returns-description": "off",
|
|
21
|
+
"jsdoc/tag-lines": ["error"],
|
|
22
|
+
"jsdoc/valid-types": "off",
|
|
23
|
+
"jsdoc/check-types": ["error"]
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
e as default
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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,ignoreStrings:!0,ignoreTemplateLiterals:!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",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}],"@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"]}};module.exports=e;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
rules: {
|
|
3
|
+
"@stylistic/array-bracket-newline": ["error", "consistent"],
|
|
4
|
+
"@stylistic/array-bracket-spacing": ["error", "never"],
|
|
5
|
+
"@stylistic/array-element-newline": ["error", "consistent"],
|
|
6
|
+
"@stylistic/arrow-parens": ["error", "as-needed"],
|
|
7
|
+
"@stylistic/arrow-spacing": ["error"],
|
|
8
|
+
"@stylistic/brace-style": ["error", "1tbs"],
|
|
9
|
+
"@stylistic/comma-dangle": ["error", {
|
|
10
|
+
arrays: "always-multiline",
|
|
11
|
+
exports: "always-multiline",
|
|
12
|
+
functions: "never",
|
|
13
|
+
imports: "always-multiline",
|
|
14
|
+
objects: "always-multiline",
|
|
15
|
+
enums: "always-multiline",
|
|
16
|
+
generics: "always-multiline",
|
|
17
|
+
tuples: "always-multiline"
|
|
18
|
+
}],
|
|
19
|
+
"@stylistic/comma-spacing": ["error"],
|
|
20
|
+
"@stylistic/computed-property-spacing": ["error"],
|
|
21
|
+
"@stylistic/dot-location": ["error", "property"],
|
|
22
|
+
"@stylistic/eol-last": ["error", "always"],
|
|
23
|
+
"@stylistic/function-call-argument-newline": ["error", "consistent"],
|
|
24
|
+
"@stylistic/function-call-spacing": ["error", "never"],
|
|
25
|
+
"@stylistic/function-paren-newline": ["error", "consistent"],
|
|
26
|
+
"@stylistic/implicit-arrow-linebreak": ["error", "beside"],
|
|
27
|
+
"@stylistic/indent": ["error", 4, {
|
|
28
|
+
SwitchCase: 1,
|
|
29
|
+
ignoredNodes: [
|
|
30
|
+
"PropertyDefinition[decorators]",
|
|
31
|
+
"TSUnionType"
|
|
32
|
+
]
|
|
33
|
+
}],
|
|
34
|
+
"@stylistic/key-spacing": ["error"],
|
|
35
|
+
"@stylistic/keyword-spacing": ["error"],
|
|
36
|
+
"@stylistic/linebreak-style": ["error", "unix"],
|
|
37
|
+
"@stylistic/lines-between-class-members": ["error", "always", {
|
|
38
|
+
exceptAfterSingleLine: !0
|
|
39
|
+
}],
|
|
40
|
+
"@stylistic/max-len": ["error", 120, {
|
|
41
|
+
ignoreComments: !0,
|
|
42
|
+
ignoreRegExpLiterals: !0,
|
|
43
|
+
ignoreStrings: !0,
|
|
44
|
+
ignoreTemplateLiterals: !0,
|
|
45
|
+
ignoreTrailingComments: !0,
|
|
46
|
+
ignoreUrls: !0
|
|
47
|
+
}],
|
|
48
|
+
"@stylistic/max-statements-per-line": ["error", {
|
|
49
|
+
max: 2
|
|
50
|
+
}],
|
|
51
|
+
"@stylistic/member-delimiter-style": ["error", {
|
|
52
|
+
multiline: {
|
|
53
|
+
requireLast: !0
|
|
54
|
+
},
|
|
55
|
+
singleline: {
|
|
56
|
+
requireLast: !1
|
|
57
|
+
}
|
|
58
|
+
}],
|
|
59
|
+
"@stylistic/multiline-ternary": ["error", "always-multiline"],
|
|
60
|
+
"@stylistic/new-parens": ["error", "always"],
|
|
61
|
+
"@stylistic/no-extra-parens": ["error", "all", {
|
|
62
|
+
allowParensAfterCommentPattern: "@type",
|
|
63
|
+
enforceForArrowConditionals: !1,
|
|
64
|
+
nestedBinaryExpressions: !1,
|
|
65
|
+
returnAssign: !1
|
|
66
|
+
}],
|
|
67
|
+
"@stylistic/no-extra-semi": ["error"],
|
|
68
|
+
"@stylistic/no-floating-decimal": "error",
|
|
69
|
+
"@stylistic/no-mixed-operators": ["error", {
|
|
70
|
+
allowSamePrecedence: !0,
|
|
71
|
+
groups: [
|
|
72
|
+
["&", "|", "^", "~", "<<", ">>", ">>>"],
|
|
73
|
+
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
|
|
74
|
+
["&&", "||"],
|
|
75
|
+
["in", "instanceof"]
|
|
76
|
+
]
|
|
77
|
+
}],
|
|
78
|
+
"@stylistic/no-mixed-spaces-and-tabs": ["error"],
|
|
79
|
+
"@stylistic/no-multi-spaces": ["error"],
|
|
80
|
+
"@stylistic/no-multiple-empty-lines": ["error", {
|
|
81
|
+
max: 1,
|
|
82
|
+
maxEOF: 0
|
|
83
|
+
}],
|
|
84
|
+
"@stylistic/no-trailing-spaces": ["error"],
|
|
85
|
+
"@stylistic/no-whitespace-before-property": ["error"],
|
|
86
|
+
"@stylistic/object-curly-newline": ["error", {
|
|
87
|
+
consistent: !0
|
|
88
|
+
}],
|
|
89
|
+
"@stylistic/object-curly-spacing": ["error", "always"],
|
|
90
|
+
"@stylistic/padded-blocks": ["error", "never"],
|
|
91
|
+
"@stylistic/quote-props": ["error", "as-needed"],
|
|
92
|
+
"@stylistic/quotes": ["error", "single", {
|
|
93
|
+
avoidEscape: !0
|
|
94
|
+
}],
|
|
95
|
+
"@stylistic/rest-spread-spacing": ["error", "never"],
|
|
96
|
+
"@stylistic/semi": ["error"],
|
|
97
|
+
"@stylistic/semi-spacing": ["error", {
|
|
98
|
+
after: !0,
|
|
99
|
+
before: !1
|
|
100
|
+
}],
|
|
101
|
+
"@stylistic/semi-style": ["error", "last"],
|
|
102
|
+
"@stylistic/space-before-blocks": ["error"],
|
|
103
|
+
"@stylistic/space-before-function-paren": ["error", {
|
|
104
|
+
anonymous: "always",
|
|
105
|
+
named: "always"
|
|
106
|
+
}],
|
|
107
|
+
"@stylistic/space-in-parens": ["error", "never"],
|
|
108
|
+
"@stylistic/space-infix-ops": ["error"],
|
|
109
|
+
"@stylistic/spaced-comment": ["error", "always", {
|
|
110
|
+
markers: ["/"]
|
|
111
|
+
}],
|
|
112
|
+
"@stylistic/template-curly-spacing": ["error", "never"],
|
|
113
|
+
"@stylistic/template-tag-spacing": ["error", "never"],
|
|
114
|
+
"@stylistic/type-annotation-spacing": ["error"],
|
|
115
|
+
"@stylistic/type-generic-spacing": ["error"]
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
e as default
|
|
120
|
+
};
|
|
@@ -0,0 +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"},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;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
indent: "off",
|
|
3
|
+
"no-undef": "off",
|
|
4
|
+
"no-shadow": "off",
|
|
5
|
+
"@typescript-eslint/comma-dangle": "off",
|
|
6
|
+
"no-extra-parens": "off",
|
|
7
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
8
|
+
"@typescript-eslint/space-before-function-paren": "off",
|
|
9
|
+
"no-unused-vars": "off",
|
|
10
|
+
"no-useless-constructor": "off",
|
|
11
|
+
"@typescript-eslint/indent": "off",
|
|
12
|
+
semi: "off",
|
|
13
|
+
"@typescript-eslint/semi": "off",
|
|
14
|
+
"react/jsx-filename-extension": "off",
|
|
15
|
+
"no-use-before-define": "off",
|
|
16
|
+
"@typescript-eslint/lines-between-class-members": "off",
|
|
17
|
+
"@typescript-eslint/comma-spacing": "off",
|
|
18
|
+
"@typescript-eslint/space-before-blocks": "off",
|
|
19
|
+
"@typescript-eslint/object-curly-spacing": "off"
|
|
20
|
+
}, s = {
|
|
21
|
+
rules: {
|
|
22
|
+
...e,
|
|
23
|
+
"@typescript-eslint/no-shadow": "error",
|
|
24
|
+
"@typescript-eslint/no-unused-vars": ["error"],
|
|
25
|
+
"@typescript-eslint/no-useless-constructor": ["error"],
|
|
26
|
+
"@typescript-eslint/array-type": ["error", { default: "array", readonly: "array" }],
|
|
27
|
+
"@typescript-eslint/no-misused-promises": ["error", {
|
|
28
|
+
checksVoidReturn: { arguments: !1 }
|
|
29
|
+
}],
|
|
30
|
+
"@typescript-eslint/no-use-before-define": ["error"]
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
s as default
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e={rules:{"vue/array-bracket-newline":["error"],"vue/array-bracket-spacing":["error","never"],"vue/array-element-newline":["error","consistent"],"vue/arrow-spacing":["error"],"vue/attribute-hyphenation":["error","always"],"vue/attributes-order":["error",{alphabetical:!0,order:["LIST_RENDERING","CONDITIONALS","DEFINITION","RENDER_MODIFIERS","GLOBAL","UNIQUE","SLOT","ATTR_SHORTHAND_BOOL","ATTR_STATIC","ATTR_DYNAMIC","TWO_WAY_BINDING","OTHER_DIRECTIVES","CONTENT","EVENTS"]}],"vue/brace-style":["error","1tbs"],"vue/camelcase":["error",{allow:["^\\$_"]}],"vue/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline"}],"vue/comma-spacing":["error"],"vue/comma-style":["error","last"],"vue/component-definition-name-casing":["error","PascalCase"],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1,ignores:["component","transition"]}],"vue/component-tags-order":["error",{order:["script[setup]","template","script:not([setup])","style"]}],"vue/dot-location":["error"],"vue/dot-notation":["error"],"vue/eqeqeq":["error"],"vue/func-call-spacing":["error"],"vue/html-closing-bracket-newline":["error",{multiline:"never",singleline:"never"}],"vue/html-end-tags":["error"],"vue/html-indent":["error",4],"vue/html-quotes":["error","double"],"vue/html-self-closing":["error"],"vue/html-closing-bracket-spacing":["error"],"vue/key-spacing":["error"],"vue/keyword-spacing":["error"],"vue/max-attributes-per-line":["error",{multiline:{max:1},singleline:1}],"vue/max-len":["error",120,{ignoreComments:!0,ignoreRegExpLiterals:!0,ignoreTemplateLiterals:!0,ignoreTrailingComments:!0,ignoreUrls:!0}],"vue/multi-word-component-names":"off","vue/multiline-ternary":["error","always-multiline"],"vue/mustache-interpolation-spacing":["error","always"],"vue/no-bare-strings-in-template":["error"],"vue/no-console":["error"],"vue/no-constant-condition":["error"],"vue/no-empty-component-block":["error"],"vue/no-empty-pattern":["error"],"vue/no-extra-parens":["error"],"vue/no-irregular-whitespace":["error"],"vue/no-multi-spaces":["error"],"vue/no-multiple-objects-in-class":["error"],"vue/no-potential-component-option-typo":["error"],"vue/no-reserved-component-names":["error"],"vue/no-restricted-syntax":["error"],"vue/no-spaces-around-equal-signs-in-attribute":["error"],"vue/no-sparse-arrays":["error"],"vue/no-undef-components":["error"],"vue/no-unsupported-features":["error"],"vue/no-unused-properties":["error"],"vue/no-unused-refs":["error"],"vue/no-use-computed-property-like-method":["error"],"vue/no-use-v-if-with-v-for":"error","vue/no-useless-concat":["error"],"vue/no-useless-mustaches":["error"],"vue/no-useless-v-bind":["error"],"vue/no-v-text":["error"],"vue/object-curly-newline":["error",{consistent:!0}],"vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"vue/object-shorthand":["error","always"],"vue/order-in-components":["error",{order:["el","name","parent","functional",["delimiters","comments"],["components","directives","filters"],"extends","mixins","inheritAttrs","model",["props","propsData"],"data","computed","watch","LIFECYCLE_HOOKS","methods",["template","render"],"renderError"]}],"vue/padding-line-between-blocks":["error"],"vue/prefer-separate-static-class":["error"],"vue/prefer-template":["error"],"vue/prefer-true-attribute-shorthand":["error"],"vue/prop-name-casing":["error","camelCase"],"vue/quote-props":["error","as-needed"],"vue/require-default-prop":["error"],"vue/require-prop-type-constructor":"error","vue/require-prop-types":["error"],"@stylistic/indent":"off","vue/script-indent":["error",4,{switchCase:1}],"vue/space-in-parens":["error","never"],"vue/space-infix-ops":["error"],"vue/space-unary-ops":["error"],"vue/template-curly-spacing":["error"],"vue/this-in-template":["error","never"],"vue/v-bind-style":["error","shorthand"],"vue/v-on-function-call":"off","vue/v-on-style":["error","shorthand"],"vue/v-on-event-hyphenation":"off","vue/no-setup-props-destructure":"off","vue/block-tag-newline":["error",{singleline:"always",multiline:"always"}],"vue/require-explicit-emits":["error"],"vue/no-required-prop-with-default":["error"],"vue/no-ref-object-destructure":["error"],"vue/no-template-target-blank":["error"],"vue/define-emits-declaration":["error","type-based"],"vue/define-props-declaration":["error","type-based"]}};module.exports=e;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
rules: {
|
|
3
|
+
"vue/array-bracket-newline": ["error"],
|
|
4
|
+
"vue/array-bracket-spacing": ["error", "never"],
|
|
5
|
+
"vue/array-element-newline": ["error", "consistent"],
|
|
6
|
+
"vue/arrow-spacing": ["error"],
|
|
7
|
+
"vue/attribute-hyphenation": ["error", "always"],
|
|
8
|
+
"vue/attributes-order": ["error", {
|
|
9
|
+
alphabetical: !0,
|
|
10
|
+
order: [
|
|
11
|
+
"LIST_RENDERING",
|
|
12
|
+
"CONDITIONALS",
|
|
13
|
+
"DEFINITION",
|
|
14
|
+
"RENDER_MODIFIERS",
|
|
15
|
+
"GLOBAL",
|
|
16
|
+
"UNIQUE",
|
|
17
|
+
"SLOT",
|
|
18
|
+
"ATTR_SHORTHAND_BOOL",
|
|
19
|
+
"ATTR_STATIC",
|
|
20
|
+
"ATTR_DYNAMIC",
|
|
21
|
+
"TWO_WAY_BINDING",
|
|
22
|
+
"OTHER_DIRECTIVES",
|
|
23
|
+
"CONTENT",
|
|
24
|
+
"EVENTS"
|
|
25
|
+
]
|
|
26
|
+
}],
|
|
27
|
+
"vue/brace-style": ["error", "1tbs"],
|
|
28
|
+
"vue/camelcase": ["error", {
|
|
29
|
+
allow: ["^\\$_"]
|
|
30
|
+
}],
|
|
31
|
+
"vue/comma-dangle": ["error", {
|
|
32
|
+
arrays: "always-multiline",
|
|
33
|
+
exports: "always-multiline",
|
|
34
|
+
functions: "never",
|
|
35
|
+
imports: "always-multiline",
|
|
36
|
+
objects: "always-multiline"
|
|
37
|
+
}],
|
|
38
|
+
"vue/comma-spacing": ["error"],
|
|
39
|
+
"vue/comma-style": ["error", "last"],
|
|
40
|
+
"vue/component-definition-name-casing": ["error", "PascalCase"],
|
|
41
|
+
"vue/component-name-in-template-casing": ["error", "PascalCase", {
|
|
42
|
+
registeredComponentsOnly: !1,
|
|
43
|
+
ignores: [
|
|
44
|
+
"component",
|
|
45
|
+
"transition"
|
|
46
|
+
]
|
|
47
|
+
}],
|
|
48
|
+
"vue/component-tags-order": ["error", {
|
|
49
|
+
order: [
|
|
50
|
+
"script[setup]",
|
|
51
|
+
"template",
|
|
52
|
+
"script:not([setup])",
|
|
53
|
+
"style"
|
|
54
|
+
]
|
|
55
|
+
}],
|
|
56
|
+
"vue/dot-location": ["error"],
|
|
57
|
+
"vue/dot-notation": ["error"],
|
|
58
|
+
"vue/eqeqeq": ["error"],
|
|
59
|
+
"vue/func-call-spacing": ["error"],
|
|
60
|
+
"vue/html-closing-bracket-newline": ["error", {
|
|
61
|
+
multiline: "never",
|
|
62
|
+
singleline: "never"
|
|
63
|
+
}],
|
|
64
|
+
"vue/html-end-tags": ["error"],
|
|
65
|
+
"vue/html-indent": ["error", 4],
|
|
66
|
+
"vue/html-quotes": ["error", "double"],
|
|
67
|
+
"vue/html-self-closing": ["error"],
|
|
68
|
+
"vue/html-closing-bracket-spacing": ["error"],
|
|
69
|
+
"vue/key-spacing": ["error"],
|
|
70
|
+
"vue/keyword-spacing": ["error"],
|
|
71
|
+
"vue/max-attributes-per-line": ["error", {
|
|
72
|
+
multiline: {
|
|
73
|
+
max: 1
|
|
74
|
+
},
|
|
75
|
+
singleline: 1
|
|
76
|
+
}],
|
|
77
|
+
"vue/max-len": ["error", 120, {
|
|
78
|
+
ignoreComments: !0,
|
|
79
|
+
ignoreRegExpLiterals: !0,
|
|
80
|
+
ignoreTemplateLiterals: !0,
|
|
81
|
+
ignoreTrailingComments: !0,
|
|
82
|
+
ignoreUrls: !0
|
|
83
|
+
}],
|
|
84
|
+
"vue/multi-word-component-names": "off",
|
|
85
|
+
"vue/multiline-ternary": ["error", "always-multiline"],
|
|
86
|
+
"vue/mustache-interpolation-spacing": ["error", "always"],
|
|
87
|
+
"vue/no-bare-strings-in-template": ["error"],
|
|
88
|
+
"vue/no-console": ["error"],
|
|
89
|
+
"vue/no-constant-condition": ["error"],
|
|
90
|
+
"vue/no-empty-component-block": ["error"],
|
|
91
|
+
"vue/no-empty-pattern": ["error"],
|
|
92
|
+
"vue/no-extra-parens": ["error"],
|
|
93
|
+
"vue/no-irregular-whitespace": ["error"],
|
|
94
|
+
"vue/no-multi-spaces": ["error"],
|
|
95
|
+
"vue/no-multiple-objects-in-class": ["error"],
|
|
96
|
+
"vue/no-potential-component-option-typo": ["error"],
|
|
97
|
+
"vue/no-reserved-component-names": ["error"],
|
|
98
|
+
"vue/no-restricted-syntax": ["error"],
|
|
99
|
+
"vue/no-spaces-around-equal-signs-in-attribute": ["error"],
|
|
100
|
+
"vue/no-sparse-arrays": ["error"],
|
|
101
|
+
"vue/no-undef-components": ["error"],
|
|
102
|
+
"vue/no-unsupported-features": ["error"],
|
|
103
|
+
"vue/no-unused-properties": ["error"],
|
|
104
|
+
"vue/no-unused-refs": ["error"],
|
|
105
|
+
"vue/no-use-computed-property-like-method": ["error"],
|
|
106
|
+
"vue/no-use-v-if-with-v-for": "error",
|
|
107
|
+
"vue/no-useless-concat": ["error"],
|
|
108
|
+
"vue/no-useless-mustaches": ["error"],
|
|
109
|
+
"vue/no-useless-v-bind": ["error"],
|
|
110
|
+
"vue/no-v-text": ["error"],
|
|
111
|
+
"vue/object-curly-newline": ["error", {
|
|
112
|
+
consistent: !0
|
|
113
|
+
}],
|
|
114
|
+
"vue/object-curly-spacing": ["error", "always"],
|
|
115
|
+
"vue/object-property-newline": ["error", {
|
|
116
|
+
allowAllPropertiesOnSameLine: !0
|
|
117
|
+
}],
|
|
118
|
+
"vue/object-shorthand": ["error", "always"],
|
|
119
|
+
"vue/order-in-components": ["error", {
|
|
120
|
+
order: [
|
|
121
|
+
"el",
|
|
122
|
+
"name",
|
|
123
|
+
"parent",
|
|
124
|
+
"functional",
|
|
125
|
+
["delimiters", "comments"],
|
|
126
|
+
["components", "directives", "filters"],
|
|
127
|
+
"extends",
|
|
128
|
+
"mixins",
|
|
129
|
+
"inheritAttrs",
|
|
130
|
+
"model",
|
|
131
|
+
["props", "propsData"],
|
|
132
|
+
"data",
|
|
133
|
+
"computed",
|
|
134
|
+
"watch",
|
|
135
|
+
"LIFECYCLE_HOOKS",
|
|
136
|
+
"methods",
|
|
137
|
+
["template", "render"],
|
|
138
|
+
"renderError"
|
|
139
|
+
]
|
|
140
|
+
}],
|
|
141
|
+
"vue/padding-line-between-blocks": ["error"],
|
|
142
|
+
"vue/prefer-separate-static-class": ["error"],
|
|
143
|
+
"vue/prefer-template": ["error"],
|
|
144
|
+
"vue/prefer-true-attribute-shorthand": ["error"],
|
|
145
|
+
"vue/prop-name-casing": ["error", "camelCase"],
|
|
146
|
+
"vue/quote-props": ["error", "as-needed"],
|
|
147
|
+
"vue/require-default-prop": ["error"],
|
|
148
|
+
"vue/require-prop-type-constructor": "error",
|
|
149
|
+
"vue/require-prop-types": ["error"],
|
|
150
|
+
"@stylistic/indent": "off",
|
|
151
|
+
"vue/script-indent": ["error", 4, {
|
|
152
|
+
switchCase: 1
|
|
153
|
+
}],
|
|
154
|
+
"vue/space-in-parens": ["error", "never"],
|
|
155
|
+
"vue/space-infix-ops": ["error"],
|
|
156
|
+
"vue/space-unary-ops": ["error"],
|
|
157
|
+
"vue/template-curly-spacing": ["error"],
|
|
158
|
+
"vue/this-in-template": ["error", "never"],
|
|
159
|
+
"vue/v-bind-style": ["error", "shorthand"],
|
|
160
|
+
"vue/v-on-function-call": "off",
|
|
161
|
+
"vue/v-on-style": ["error", "shorthand"],
|
|
162
|
+
"vue/v-on-event-hyphenation": "off",
|
|
163
|
+
"vue/no-setup-props-destructure": "off",
|
|
164
|
+
"vue/block-tag-newline": ["error", {
|
|
165
|
+
singleline: "always",
|
|
166
|
+
multiline: "always"
|
|
167
|
+
}],
|
|
168
|
+
"vue/require-explicit-emits": ["error"],
|
|
169
|
+
"vue/no-required-prop-with-default": ["error"],
|
|
170
|
+
"vue/no-ref-object-destructure": ["error"],
|
|
171
|
+
"vue/no-template-target-blank": ["error"],
|
|
172
|
+
"vue/define-emits-declaration": ["error", "type-based"],
|
|
173
|
+
"vue/define-props-declaration": ["error", "type-based"]
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
export {
|
|
177
|
+
e as default
|
|
178
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./vue.cjs"),r={rules:{...e.rules,"vue/require-explicit-emits":"off","vue/no-unused-refs":"off","vue/prefer-true-attribute-shorthand":["error","never"]}};module.exports=r;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlatCompat } from '@eslint/eslintrc';
|
|
2
|
+
export declare const compat: {
|
|
3
|
+
extends: (...configsToExtend: Parameters<FlatCompat['extends']>) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
|
|
4
|
+
config: (eslintrcConfig: Parameters<FlatCompat['config']>[0]) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
|
|
5
|
+
plugins: (...plugins: Parameters<FlatCompat['plugins']>) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
|
|
6
|
+
env: (envConfig: Parameters<FlatCompat['env']>[0]) => import("eslint").Linter.FlatConfig<import("eslint").Linter.RulesRecord>;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function merge<T extends NonNullable<unknown>[]>(...args: T): T[number];
|