@pawover/eslint-rules 0.0.0-alpha.8 → 0.0.0-beta.10
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/core.imports.js +11 -0
- package/dist/core.javascript.js +2 -2
- package/dist/core.react.js +40 -39
- package/dist/core.stylistic.js +19 -35
- package/dist/core.typescript.js +4 -4
- package/dist/core.vue.js +247 -5
- package/dist/index.js +3 -0
- package/dist/types/core.antfu.d.ts +1 -0
- package/dist/types/core.antfu.d.ts.map +1 -0
- package/dist/types/core.imports.d.ts +15 -0
- package/dist/types/core.imports.d.ts.map +1 -0
- package/dist/types/core.javascript.d.ts +1 -0
- package/dist/types/core.javascript.d.ts.map +1 -0
- package/dist/types/core.react.d.ts +19 -17
- package/dist/types/core.react.d.ts.map +1 -0
- package/dist/types/core.stylistic.d.ts +17 -14
- package/dist/types/core.stylistic.d.ts.map +1 -0
- package/dist/types/core.typescript.d.ts +12 -2
- package/dist/types/core.typescript.d.ts.map +1 -0
- package/dist/types/core.vue.d.ts +251 -7
- package/dist/types/core.vue.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -3
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/preset.d.ts +1 -0
- package/dist/types/preset.d.ts.map +1 -0
- package/package.json +29 -25
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"imports/consistent-type-specifier-style": [2, "prefer-top-level"],
|
|
3
|
+
"imports/exports-last": 0,
|
|
4
|
+
"imports/first": 2,
|
|
5
|
+
"imports/newline-after-import": [2, { count: 1 }],
|
|
6
|
+
"imports/no-default-export": 0,
|
|
7
|
+
"imports/no-duplicates": 2,
|
|
8
|
+
"imports/no-mutable-exports": 2,
|
|
9
|
+
"imports/no-named-default": 2,
|
|
10
|
+
"imports/prefer-default-export": 0,
|
|
11
|
+
};
|
package/dist/core.javascript.js
CHANGED
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
"no-empty-character-class": 2,
|
|
25
25
|
"no-empty-pattern": 2,
|
|
26
26
|
"no-ex-assign": 2,
|
|
27
|
-
"no-fallthrough":
|
|
27
|
+
"no-fallthrough": 0,
|
|
28
28
|
"no-func-assign": 2,
|
|
29
29
|
"no-import-assign": 2,
|
|
30
30
|
"no-inner-declarations": 2,
|
|
@@ -75,7 +75,7 @@ export default {
|
|
|
75
75
|
"dot-notation": 0,
|
|
76
76
|
"eqeqeq": 2,
|
|
77
77
|
"func-name-matching": 2,
|
|
78
|
-
"func-names":
|
|
78
|
+
"func-names": 1,
|
|
79
79
|
"func-style": 0,
|
|
80
80
|
"grouped-accessor-pairs": [2, "getBeforeSet"],
|
|
81
81
|
"guard-for-in": 2,
|
package/dist/core.react.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
"react/jsx-dollar": 0,
|
|
2
3
|
"react/jsx-key-before-spread": 1,
|
|
3
4
|
"react/jsx-no-comment-textnodes": 1,
|
|
4
|
-
"react/jsx-
|
|
5
|
-
"react/jsx-
|
|
6
|
-
"react/
|
|
7
|
-
"react/
|
|
8
|
-
"react/
|
|
9
|
-
"react/
|
|
10
|
-
"react/jsx-uses-vars": 1,
|
|
5
|
+
"react/jsx-shorthand-boolean": 2,
|
|
6
|
+
"react/jsx-shorthand-fragment": 0,
|
|
7
|
+
"react/component-hook-factories": 2,
|
|
8
|
+
"react/error-boundaries": 2,
|
|
9
|
+
"react/exhaustive-deps": 1,
|
|
10
|
+
"react/immutability": 2,
|
|
11
11
|
"react/no-access-state-in-setstate": 2,
|
|
12
12
|
"react/no-array-index-key": 1,
|
|
13
|
-
"react/no-children-count":
|
|
14
|
-
"react/no-children-for-each":
|
|
15
|
-
"react/no-children-map":
|
|
16
|
-
"react/no-children-only":
|
|
17
|
-
"react/no-children-prop":
|
|
18
|
-
"react/no-children-to-array":
|
|
13
|
+
"react/no-children-count": 1,
|
|
14
|
+
"react/no-children-for-each": 1,
|
|
15
|
+
"react/no-children-map": 1,
|
|
16
|
+
"react/no-children-only": 1,
|
|
17
|
+
"react/no-children-prop": 0,
|
|
18
|
+
"react/no-children-to-array": 1,
|
|
19
19
|
"react/no-class-component": 2,
|
|
20
|
-
"react/no-clone-element":
|
|
20
|
+
"react/no-clone-element": 1,
|
|
21
21
|
"react/no-component-will-mount": 2,
|
|
22
22
|
"react/no-component-will-receive-props": 2,
|
|
23
23
|
"react/no-component-will-update": 2,
|
|
24
24
|
"react/no-context-provider": 2,
|
|
25
25
|
"react/no-create-ref": 2,
|
|
26
|
-
"react/no-default-props": 2,
|
|
27
26
|
"react/no-direct-mutation-state": 2,
|
|
28
|
-
"react/no-duplicate-key":
|
|
27
|
+
"react/no-duplicate-key": 1,
|
|
29
28
|
"react/no-forward-ref": 2,
|
|
30
|
-
"react/no-implicit-
|
|
29
|
+
"react/no-implicit-children": 1,
|
|
30
|
+
"react/no-implicit-key": 1,
|
|
31
|
+
"react/no-implicit-ref": 1,
|
|
31
32
|
"react/no-leaked-conditional-rendering": 2,
|
|
32
33
|
"react/no-missing-component-display-name": 2,
|
|
33
34
|
"react/no-missing-context-display-name": 2,
|
|
@@ -35,57 +36,57 @@ export default {
|
|
|
35
36
|
"react/no-misused-capture-owner-stack": 2,
|
|
36
37
|
"react/no-nested-component-definitions": 2,
|
|
37
38
|
"react/no-nested-lazy-component-declarations": 2,
|
|
38
|
-
"react/no-prop-types": 2,
|
|
39
39
|
"react/no-redundant-should-component-update": 2,
|
|
40
40
|
"react/no-set-state-in-component-did-mount": 2,
|
|
41
41
|
"react/no-set-state-in-component-did-update": 2,
|
|
42
42
|
"react/no-set-state-in-component-will-update": 2,
|
|
43
|
-
"react/no-
|
|
44
|
-
"react/no-unnecessary-
|
|
45
|
-
"react/no-unnecessary-use-
|
|
46
|
-
"react/no-unnecessary-use-memo": 1,
|
|
47
|
-
"react/no-unnecessary-use-prefix": 1,
|
|
43
|
+
"react/no-unnecessary-use-callback": 2,
|
|
44
|
+
"react/no-unnecessary-use-memo": 2,
|
|
45
|
+
"react/no-unnecessary-use-prefix": 2,
|
|
48
46
|
"react/no-unsafe-component-will-mount": 2,
|
|
49
47
|
"react/no-unsafe-component-will-receive-props": 2,
|
|
50
48
|
"react/no-unsafe-component-will-update": 2,
|
|
51
49
|
"react/no-unstable-context-value": 2,
|
|
52
50
|
"react/no-unstable-default-props": 2,
|
|
53
|
-
"react/no-unused-class-component-members":
|
|
51
|
+
"react/no-unused-class-component-members": 1,
|
|
54
52
|
"react/no-unused-props": 2,
|
|
55
53
|
"react/no-unused-state": 2,
|
|
56
54
|
"react/no-use-context": 2,
|
|
57
|
-
"react/no-useless-forward-ref": 2,
|
|
58
55
|
"react/no-useless-fragment": 2,
|
|
59
56
|
"react/prefer-destructuring-assignment": 2,
|
|
60
|
-
"react/prefer-namespace-import":
|
|
61
|
-
"react/
|
|
62
|
-
"react/
|
|
57
|
+
"react/prefer-namespace-import": 0,
|
|
58
|
+
"react/purity": 1,
|
|
59
|
+
"react/refs": 2,
|
|
60
|
+
"react/rules-of-hooks": 2,
|
|
61
|
+
"react/set-state-in-effect": 2,
|
|
62
|
+
"react/set-state-in-render": 2,
|
|
63
|
+
"react/unsupported-syntax": 2,
|
|
64
|
+
"react/use-memo": 2,
|
|
65
|
+
"react/use-state": 2,
|
|
66
|
+
"react-rsc/function-definition": 0,
|
|
63
67
|
"react-dom/no-dangerously-set-innerhtml": 1,
|
|
64
68
|
"react-dom/no-dangerously-set-innerhtml-with-children": 2,
|
|
65
69
|
"react-dom/no-find-dom-node": 2,
|
|
66
70
|
"react-dom/no-flush-sync": 2,
|
|
67
71
|
"react-dom/no-hydrate": 2,
|
|
68
|
-
"react-dom/no-missing-button-type":
|
|
69
|
-
"react-dom/no-missing-iframe-sandbox":
|
|
72
|
+
"react-dom/no-missing-button-type": 1,
|
|
73
|
+
"react-dom/no-missing-iframe-sandbox": 1,
|
|
70
74
|
"react-dom/no-namespace": 2,
|
|
71
75
|
"react-dom/no-render": 2,
|
|
72
76
|
"react-dom/no-render-return-value": 2,
|
|
73
|
-
"react-dom/no-script-url":
|
|
77
|
+
"react-dom/no-script-url": 1,
|
|
74
78
|
"react-dom/no-string-style-prop": 2,
|
|
75
79
|
"react-dom/no-unknown-property": 2,
|
|
76
|
-
"react-dom/no-unsafe-iframe-sandbox":
|
|
77
|
-
"react-dom/no-unsafe-target-blank":
|
|
80
|
+
"react-dom/no-unsafe-iframe-sandbox": 1,
|
|
81
|
+
"react-dom/no-unsafe-target-blank": 1,
|
|
78
82
|
"react-dom/no-use-form-state": 2,
|
|
79
83
|
"react-dom/no-void-elements-with-children": 2,
|
|
80
|
-
"react-dom/prefer-namespace-import":
|
|
84
|
+
"react-dom/prefer-namespace-import": 0,
|
|
81
85
|
"react-web-api/no-leaked-event-listener": 2,
|
|
82
86
|
"react-web-api/no-leaked-interval": 2,
|
|
83
87
|
"react-web-api/no-leaked-resize-observer": 2,
|
|
84
88
|
"react-web-api/no-leaked-timeout": 2,
|
|
85
|
-
"react-hooks-extra/no-direct-set-state-in-use-effect": 1,
|
|
86
|
-
"react-naming-convention/component-name": 2,
|
|
87
89
|
"react-naming-convention/context-name": 2,
|
|
88
|
-
"react-naming-convention/
|
|
89
|
-
"react-naming-convention/
|
|
90
|
-
"react-naming-convention/use-state": 2,
|
|
90
|
+
"react-naming-convention/id-name": 2,
|
|
91
|
+
"react-naming-convention/ref-name": 2,
|
|
91
92
|
};
|
package/dist/core.stylistic.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import preset from "./preset.js";
|
|
2
2
|
export default {
|
|
3
3
|
"stylistic/array-bracket-newline": [2, "consistent"],
|
|
4
|
-
"stylistic/array-bracket-spacing": 2,
|
|
4
|
+
"stylistic/array-bracket-spacing": [2, "never"],
|
|
5
5
|
"stylistic/array-element-newline": [2, "consistent"],
|
|
6
6
|
"stylistic/arrow-parens": 2,
|
|
7
7
|
"stylistic/arrow-spacing": 2,
|
|
@@ -9,11 +9,11 @@ export default {
|
|
|
9
9
|
"stylistic/brace-style": 2,
|
|
10
10
|
"stylistic/comma-dangle": [2, "always-multiline"],
|
|
11
11
|
"stylistic/comma-spacing": 2,
|
|
12
|
-
"stylistic/comma-style":
|
|
12
|
+
"stylistic/comma-style": 0,
|
|
13
13
|
"stylistic/computed-property-spacing": 2,
|
|
14
14
|
"stylistic/curly-newline": 2,
|
|
15
15
|
"stylistic/dot-location": 0,
|
|
16
|
-
"stylistic/eol-last":
|
|
16
|
+
"stylistic/eol-last": 0,
|
|
17
17
|
"stylistic/function-call-argument-newline": [2, "consistent"],
|
|
18
18
|
"stylistic/function-call-spacing": 2,
|
|
19
19
|
"stylistic/function-paren-newline": [2, "multiline-arguments"],
|
|
@@ -24,40 +24,27 @@ export default {
|
|
|
24
24
|
"stylistic/jsx-child-element-spacing": 0,
|
|
25
25
|
"stylistic/jsx-closing-bracket-location": 2,
|
|
26
26
|
"stylistic/jsx-closing-tag-location": 2,
|
|
27
|
-
"stylistic/jsx-curly-brace-presence":
|
|
27
|
+
"stylistic/jsx-curly-brace-presence": 0,
|
|
28
28
|
"stylistic/jsx-curly-newline": 2,
|
|
29
29
|
"stylistic/jsx-curly-spacing": 2,
|
|
30
30
|
"stylistic/jsx-equals-spacing": 2,
|
|
31
|
-
"stylistic/jsx-first-prop-new-line": 2,
|
|
31
|
+
"stylistic/jsx-first-prop-new-line": [2, "multiprop"],
|
|
32
32
|
"stylistic/jsx-function-call-newline": 2,
|
|
33
33
|
"stylistic/jsx-indent-props": [2, preset.indent],
|
|
34
34
|
"stylistic/jsx-max-props-per-line": 2,
|
|
35
35
|
"stylistic/jsx-newline": 0,
|
|
36
36
|
"stylistic/jsx-one-expression-per-line": [2, { allow: "single-child" }],
|
|
37
|
-
"stylistic/jsx-pascal-case": [2, { allowNamespace: true }],
|
|
37
|
+
"stylistic/jsx-pascal-case": [2, { allowNamespace: true, allowAllCaps: true }],
|
|
38
38
|
"stylistic/jsx-quotes": 2,
|
|
39
39
|
"stylistic/jsx-self-closing-comp": 2,
|
|
40
|
-
"stylistic/jsx-sort-props": 0,
|
|
41
40
|
"stylistic/jsx-tag-spacing": [2, { beforeClosing: "never" }],
|
|
42
|
-
"stylistic/jsx-wrap-multilines": [
|
|
43
|
-
2,
|
|
44
|
-
{
|
|
45
|
-
declaration: "parens-new-line",
|
|
46
|
-
assignment: "parens-new-line",
|
|
47
|
-
return: "parens-new-line",
|
|
48
|
-
arrow: "parens-new-line",
|
|
49
|
-
condition: "parens-new-line",
|
|
50
|
-
logical: "parens-new-line",
|
|
51
|
-
prop: "ignore",
|
|
52
|
-
propertyValue: "parens-new-line",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
41
|
+
"stylistic/jsx-wrap-multilines": [2, { declaration: "parens-new-line", assignment: "parens-new-line", return: "parens-new-line", arrow: "parens-new-line", condition: "parens-new-line", logical: "parens-new-line", prop: "ignore", propertyValue: "parens-new-line" }],
|
|
55
42
|
"stylistic/key-spacing": 2,
|
|
56
43
|
"stylistic/keyword-spacing": 2,
|
|
57
44
|
"stylistic/line-comment-position": 0,
|
|
58
45
|
"stylistic/linebreak-style": 0,
|
|
59
46
|
"stylistic/lines-around-comment": 0,
|
|
60
|
-
"stylistic/lines-between-class-members":
|
|
47
|
+
"stylistic/lines-between-class-members": 0,
|
|
61
48
|
"stylistic/max-len": 0,
|
|
62
49
|
"stylistic/max-statements-per-line": 0,
|
|
63
50
|
"stylistic/member-delimiter-style": 2,
|
|
@@ -70,18 +57,18 @@ export default {
|
|
|
70
57
|
"stylistic/no-extra-semi": 2,
|
|
71
58
|
"stylistic/no-floating-decimal": 2,
|
|
72
59
|
"stylistic/no-mixed-operators": 0,
|
|
73
|
-
"stylistic/no-mixed-spaces-and-tabs":
|
|
74
|
-
"stylistic/no-multi-spaces": 2,
|
|
60
|
+
"stylistic/no-mixed-spaces-and-tabs": 2,
|
|
61
|
+
"stylistic/no-multi-spaces": [2, { exceptions: { Property: false, ImportAttribute: false } }],
|
|
75
62
|
"stylistic/no-multiple-empty-lines": [2, { max: 2, maxEOF: 1, maxBOF: 0 }],
|
|
76
63
|
"stylistic/no-tabs": 0,
|
|
77
64
|
"stylistic/no-trailing-spaces": 2,
|
|
78
65
|
"stylistic/no-whitespace-before-property": 2,
|
|
79
|
-
"stylistic/nonblock-statement-body-position":
|
|
80
|
-
"stylistic/object-curly-newline": 2,
|
|
81
|
-
"stylistic/object-curly-spacing": [2, "always"],
|
|
82
|
-
"stylistic/object-property-newline":
|
|
83
|
-
"stylistic/one-var-declaration-per-line":
|
|
84
|
-
"stylistic/operator-linebreak": [2, "
|
|
66
|
+
"stylistic/nonblock-statement-body-position": 0,
|
|
67
|
+
"stylistic/object-curly-newline": [2, { consistent: true }],
|
|
68
|
+
"stylistic/object-curly-spacing": [2, "always", { emptyObjects: "never" }],
|
|
69
|
+
"stylistic/object-property-newline": 0,
|
|
70
|
+
"stylistic/one-var-declaration-per-line": 0,
|
|
71
|
+
"stylistic/operator-linebreak": [2, "before"],
|
|
85
72
|
"stylistic/padded-blocks": 0,
|
|
86
73
|
"stylistic/padding-line-between-statements": [
|
|
87
74
|
2,
|
|
@@ -97,10 +84,7 @@ export default {
|
|
|
97
84
|
"stylistic/semi-spacing": 2,
|
|
98
85
|
"stylistic/semi-style": 2,
|
|
99
86
|
"stylistic/space-before-blocks": 2,
|
|
100
|
-
"stylistic/space-before-function-paren": [
|
|
101
|
-
2,
|
|
102
|
-
{ anonymous: "never", named: "never", asyncArrow: "always", catch: "always" },
|
|
103
|
-
],
|
|
87
|
+
"stylistic/space-before-function-paren": [2, { anonymous: "always", named: "always", asyncArrow: "always", catch: "always" }],
|
|
104
88
|
"stylistic/space-in-parens": 2,
|
|
105
89
|
"stylistic/space-infix-ops": 2,
|
|
106
90
|
"stylistic/space-unary-ops": 2,
|
|
@@ -112,6 +96,6 @@ export default {
|
|
|
112
96
|
"stylistic/type-generic-spacing": 2,
|
|
113
97
|
"stylistic/type-named-tuple-spacing": 2,
|
|
114
98
|
"stylistic/wrap-iife": 2,
|
|
115
|
-
"stylistic/wrap-regex":
|
|
116
|
-
"stylistic/yield-star-spacing":
|
|
99
|
+
"stylistic/wrap-regex": 0,
|
|
100
|
+
"stylistic/yield-star-spacing": 0,
|
|
117
101
|
};
|
package/dist/core.typescript.js
CHANGED
|
@@ -37,7 +37,7 @@ export default {
|
|
|
37
37
|
"ts/default-param-last": 2,
|
|
38
38
|
"ts/dot-notation": 0,
|
|
39
39
|
"ts/explicit-function-return-type": 0,
|
|
40
|
-
"ts/explicit-member-accessibility":
|
|
40
|
+
"ts/explicit-member-accessibility": 0,
|
|
41
41
|
"ts/explicit-module-boundary-types": 0,
|
|
42
42
|
"ts/init-declarations": 0,
|
|
43
43
|
"ts/max-params": 0,
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
"ts/no-for-in-array": 0,
|
|
64
64
|
"ts/no-implied-eval": 2,
|
|
65
65
|
"ts/no-import-type-side-effects": 2,
|
|
66
|
-
"ts/no-inferrable-types": 2,
|
|
66
|
+
"ts/no-inferrable-types": [2, { ignoreParameters: true, ignoreProperties: true }],
|
|
67
67
|
"ts/no-invalid-void-type": 2,
|
|
68
68
|
"ts/no-loop-func": 0,
|
|
69
69
|
"ts/no-magic-numbers": 0,
|
|
@@ -109,13 +109,13 @@ export default {
|
|
|
109
109
|
"ts/no-useless-empty-export": 0,
|
|
110
110
|
"ts/no-wrapper-object-types": 2,
|
|
111
111
|
"ts/non-nullable-type-assertion-style": 0,
|
|
112
|
-
"ts/only-throw-error":
|
|
112
|
+
"ts/only-throw-error": [2, { allow: [{ from: "package", package: "@tanstack/router-core", name: "Redirect" }] }],
|
|
113
113
|
"ts/parameter-properties": 0,
|
|
114
114
|
"ts/prefer-as-const": 0,
|
|
115
115
|
"ts/prefer-destructuring": 0,
|
|
116
116
|
"ts/prefer-enum-initializers": 0,
|
|
117
117
|
"ts/prefer-find": 2,
|
|
118
|
-
"ts/prefer-for-of":
|
|
118
|
+
"ts/prefer-for-of": 0,
|
|
119
119
|
"ts/prefer-function-type": 2,
|
|
120
120
|
"ts/prefer-includes": 0,
|
|
121
121
|
"ts/prefer-literal-enum-member": 0,
|
package/dist/core.vue.js
CHANGED
|
@@ -1,14 +1,256 @@
|
|
|
1
|
+
import preset from "./preset.js";
|
|
1
2
|
export default {
|
|
3
|
+
// Base Rules
|
|
4
|
+
"vue/comment-directive": 2,
|
|
5
|
+
"vue/jsx-uses-vars": 2,
|
|
6
|
+
// Priority A: Essential
|
|
7
|
+
"vue/multi-word-component-names": 0,
|
|
8
|
+
"vue/no-arrow-functions-in-watch": 2,
|
|
9
|
+
"vue/no-async-in-computed-properties": 2,
|
|
10
|
+
"vue/no-child-content": 2,
|
|
11
|
+
"vue/no-computed-properties-in-data": 2,
|
|
12
|
+
"vue/no-dupe-keys": 2,
|
|
13
|
+
"vue/no-dupe-v-else-if": 2,
|
|
14
|
+
"vue/no-duplicate-attributes": 2,
|
|
15
|
+
"vue/no-export-in-script-setup": 2,
|
|
16
|
+
"vue/no-mutating-props": 2,
|
|
17
|
+
"vue/no-parsing-error": 2,
|
|
18
|
+
"vue/no-ref-as-operand": 2,
|
|
19
|
+
"vue/no-reserved-component-names": 2,
|
|
20
|
+
"vue/no-reserved-keys": 2,
|
|
21
|
+
"vue/no-reserved-props": 2,
|
|
22
|
+
"vue/no-shared-component-data": 2,
|
|
23
|
+
"vue/no-side-effects-in-computed-properties": 2,
|
|
24
|
+
"vue/no-template-key": 2,
|
|
25
|
+
"vue/no-textarea-mustache": 2,
|
|
26
|
+
"vue/no-unused-components": 2,
|
|
27
|
+
"vue/no-unused-vars": 2,
|
|
28
|
+
"vue/no-use-computed-property-like-method": 2,
|
|
29
|
+
"vue/no-use-v-if-with-v-for": 2,
|
|
30
|
+
"vue/no-useless-template-attributes": 2,
|
|
31
|
+
"vue/no-v-text-v-html-on-component": 2,
|
|
32
|
+
"vue/require-component-is": 2,
|
|
33
|
+
"vue/require-prop-type-constructor": 2,
|
|
34
|
+
"vue/require-render-return": 2,
|
|
35
|
+
"vue/require-v-for-key": 2,
|
|
36
|
+
"vue/require-valid-default-prop": 2,
|
|
37
|
+
"vue/return-in-computed-property": 2,
|
|
38
|
+
"vue/return-in-emits-validator": 2,
|
|
39
|
+
"vue/use-v-on-exact": 2,
|
|
40
|
+
"vue/valid-attribute-name": 2,
|
|
41
|
+
"vue/valid-define-emits": 2,
|
|
42
|
+
"vue/valid-define-props": 2,
|
|
43
|
+
"vue/valid-next-tick": 2,
|
|
44
|
+
"vue/valid-template-root": 2,
|
|
45
|
+
"vue/valid-v-bind": 2,
|
|
46
|
+
"vue/valid-v-cloak": 2,
|
|
47
|
+
"vue/valid-v-else-if": 2,
|
|
48
|
+
"vue/valid-v-else": 2,
|
|
49
|
+
"vue/valid-v-for": 2,
|
|
50
|
+
"vue/valid-v-html": 2,
|
|
51
|
+
"vue/valid-v-if": 2,
|
|
52
|
+
"vue/valid-v-model": 2,
|
|
53
|
+
"vue/valid-v-on": 2,
|
|
54
|
+
"vue/valid-v-once": 2,
|
|
55
|
+
"vue/valid-v-pre": 2,
|
|
56
|
+
"vue/valid-v-show": 2,
|
|
57
|
+
"vue/valid-v-slot": 2,
|
|
58
|
+
"vue/valid-v-text": 2,
|
|
59
|
+
// Priority A: Essential for Vue.js 3.x
|
|
60
|
+
"vue/no-deprecated-data-object-declaration": 2,
|
|
61
|
+
"vue/no-deprecated-delete-set": 2,
|
|
62
|
+
"vue/no-deprecated-destroyed-lifecycle": 2,
|
|
63
|
+
"vue/no-deprecated-dollar-listeners-api": 2,
|
|
64
|
+
"vue/no-deprecated-dollar-scopedslots-api": 2,
|
|
65
|
+
"vue/no-deprecated-events-api": 2,
|
|
66
|
+
"vue/no-deprecated-filter": 2,
|
|
67
|
+
"vue/no-deprecated-functional-template": 2,
|
|
68
|
+
"vue/no-deprecated-html-element-is": 2,
|
|
69
|
+
"vue/no-deprecated-inline-template": 2,
|
|
70
|
+
"vue/no-deprecated-model-definition": 2,
|
|
71
|
+
"vue/no-deprecated-props-default-this": 2,
|
|
72
|
+
"vue/no-deprecated-router-link-tag-prop": 2,
|
|
73
|
+
"vue/no-deprecated-scope-attribute": 2,
|
|
74
|
+
"vue/no-deprecated-slot-attribute": 2,
|
|
75
|
+
"vue/no-deprecated-slot-scope-attribute": 2,
|
|
76
|
+
"vue/no-deprecated-v-bind-sync": 2,
|
|
77
|
+
"vue/no-deprecated-v-is": 2,
|
|
78
|
+
"vue/no-deprecated-v-on-native-modifier": 2,
|
|
79
|
+
"vue/no-deprecated-v-on-number-modifiers": 2,
|
|
80
|
+
"vue/no-deprecated-vue-config-keycodes": 2,
|
|
81
|
+
"vue/no-expose-after-await": 2,
|
|
82
|
+
"vue/no-lifecycle-after-await": 2,
|
|
83
|
+
"vue/no-v-for-template-key-on-child": 2,
|
|
84
|
+
"vue/no-watch-after-await": 2,
|
|
85
|
+
"vue/prefer-import-from-vue": 2,
|
|
86
|
+
"vue/require-slots-as-functions": 2,
|
|
87
|
+
"vue/require-toggle-inside-transition": 2,
|
|
88
|
+
"vue/valid-define-options": 2,
|
|
89
|
+
"vue/valid-v-is": 2,
|
|
90
|
+
"vue/valid-v-memo": 2,
|
|
91
|
+
// Priority A: Essential for Vue.js 2.x
|
|
92
|
+
"vue/no-custom-modifiers-on-v-model": 2,
|
|
93
|
+
"vue/no-multiple-template-root": 0,
|
|
94
|
+
// Priority B: Strongly Recommended
|
|
2
95
|
"vue/attribute-hyphenation": [2, "never", { ignore: [] }],
|
|
96
|
+
"vue/component-definition-name-casing": 2,
|
|
3
97
|
"vue/first-attribute-linebreak": [2, { singleline: "beside", multiline: "below" }],
|
|
4
|
-
"vue/
|
|
98
|
+
"vue/html-closing-bracket-newline": 2,
|
|
99
|
+
"vue/html-closing-bracket-spacing": 2,
|
|
100
|
+
"vue/html-end-tags": 2,
|
|
101
|
+
"vue/html-indent": 2,
|
|
102
|
+
"vue/html-quotes": 2,
|
|
5
103
|
"vue/html-self-closing": [2, { html: { void: "always", normal: "always", component: "always" }, svg: "always", math: "always" }],
|
|
6
|
-
"vue/
|
|
104
|
+
"vue/max-attributes-per-line": 2,
|
|
105
|
+
"vue/multiline-html-element-content-newline": 2,
|
|
106
|
+
"vue/mustache-interpolation-spacing": 2,
|
|
107
|
+
"vue/no-multi-spaces": 2,
|
|
108
|
+
"vue/no-spaces-around-equal-signs-in-attribute": 2,
|
|
109
|
+
"vue/no-template-shadow": 2,
|
|
110
|
+
"vue/one-component-per-file": 2,
|
|
111
|
+
"vue/prop-name-casing": 2,
|
|
112
|
+
"vue/require-default-prop": 0,
|
|
113
|
+
"vue/require-prop-types": 2,
|
|
114
|
+
"vue/singleline-html-element-content-newline": 2,
|
|
115
|
+
"vue/v-bind-style": 2,
|
|
116
|
+
"vue/v-on-style": 2,
|
|
117
|
+
"vue/v-slot-style": 2,
|
|
118
|
+
// Priority B: Strongly Recommended for Vue.js 3.x
|
|
119
|
+
"vue/require-explicit-emits": 2,
|
|
120
|
+
"vue/v-on-event-hyphenation": [2, "never", { autofix: true }],
|
|
121
|
+
// Priority C: Recommended
|
|
122
|
+
"vue/attributes-order": 2,
|
|
7
123
|
"vue/block-order": [2, { order: ["script:not([setup])", "script[setup]", "template", "style[scoped]", "style:not([scoped])"] }],
|
|
124
|
+
"vue/no-lone-template": 2,
|
|
125
|
+
"vue/no-multiple-slot-args": 2,
|
|
126
|
+
"vue/no-required-prop-with-default": 2,
|
|
127
|
+
"vue/no-v-html": 0,
|
|
128
|
+
"vue/order-in-components": 2,
|
|
129
|
+
"vue/this-in-template": 2,
|
|
130
|
+
// Uncategorised
|
|
131
|
+
"vue/block-lang": 0,
|
|
132
|
+
"vue/block-tag-newline": 2,
|
|
133
|
+
"vue/component-api-style": 2,
|
|
8
134
|
"vue/component-name-in-template-casing": [2, "PascalCase", { registeredComponentsOnly: false }],
|
|
9
135
|
"vue/component-options-name-casing": [2, "PascalCase"],
|
|
10
136
|
"vue/custom-event-name-casing": [2, "camelCase", { ignores: [] }],
|
|
11
|
-
"vue/define-
|
|
12
|
-
"vue/
|
|
13
|
-
"vue/
|
|
137
|
+
"vue/define-emits-declaration": 0,
|
|
138
|
+
"vue/define-macros-order": [2, { order: ["defineOptions", "defineProps", "defineSlots", "defineEmits"], defineExposeLast: false }],
|
|
139
|
+
"vue/define-props-declaration": 0,
|
|
140
|
+
"vue/define-props-destructuring": 0,
|
|
141
|
+
"vue/enforce-style-attribute": 0,
|
|
142
|
+
"vue/html-button-has-type": 0,
|
|
143
|
+
"vue/html-comment-content-newline": 2,
|
|
144
|
+
"vue/html-comment-content-spacing": 2,
|
|
145
|
+
"vue/html-comment-indent": 2,
|
|
146
|
+
"vue/match-component-file-name": 0,
|
|
147
|
+
"vue/match-component-import-name": 2,
|
|
148
|
+
"vue/max-lines-per-block": 2,
|
|
149
|
+
"vue/max-props": 0,
|
|
150
|
+
"vue/max-template-depth": 0,
|
|
151
|
+
"vue/new-line-between-multi-line-property": 0,
|
|
152
|
+
"vue/next-tick-style": 0,
|
|
153
|
+
"vue/no-bare-strings-in-template": 0,
|
|
154
|
+
"vue/no-boolean-default": 0,
|
|
155
|
+
"vue/no-duplicate-attr-inheritance": 2,
|
|
156
|
+
"vue/no-duplicate-class-names": 2,
|
|
157
|
+
"vue/no-empty-component-block": 2,
|
|
158
|
+
"vue/no-import-compiler-macros": 0,
|
|
159
|
+
"vue/no-multiple-objects-in-class": 0,
|
|
160
|
+
"vue/no-negated-v-if-condition": 0,
|
|
161
|
+
"vue/no-potential-component-option-typo": 0,
|
|
162
|
+
"vue/no-ref-object-reactivity-loss": 0,
|
|
163
|
+
"vue/no-restricted-block": 0,
|
|
164
|
+
"vue/no-restricted-call-after-await": 0,
|
|
165
|
+
"vue/no-restricted-class": 0,
|
|
166
|
+
"vue/no-restricted-component-names": 0,
|
|
167
|
+
"vue/no-restricted-component-options": 0,
|
|
168
|
+
"vue/no-restricted-custom-event": 0,
|
|
169
|
+
"vue/no-restricted-html-elements": 0,
|
|
170
|
+
"vue/no-restricted-props": 0,
|
|
171
|
+
"vue/no-restricted-static-attribute": 0,
|
|
172
|
+
"vue/no-restricted-v-bind": 0,
|
|
173
|
+
"vue/no-restricted-v-on": 0,
|
|
174
|
+
"vue/no-root-v-if": 0,
|
|
175
|
+
"vue/no-setup-props-reactivity-loss": 0,
|
|
176
|
+
"vue/no-static-inline-styles": 0,
|
|
177
|
+
"vue/no-template-target-blank": 0,
|
|
178
|
+
"vue/no-this-in-before-route-enter": 2,
|
|
179
|
+
"vue/no-undef-components": 0,
|
|
180
|
+
"vue/no-undef-properties": 0,
|
|
181
|
+
"vue/no-unsupported-features": 0,
|
|
182
|
+
"vue/no-unused-emit-declarations": 0,
|
|
183
|
+
"vue/no-unused-properties": 1,
|
|
184
|
+
"vue/no-unused-refs": 2,
|
|
185
|
+
"vue/no-use-v-else-with-v-for": 0,
|
|
186
|
+
"vue/no-useless-mustaches": 2,
|
|
187
|
+
"vue/no-useless-v-bind": 2,
|
|
188
|
+
"vue/no-v-text": 0,
|
|
189
|
+
"vue/padding-line-between-blocks": 2,
|
|
190
|
+
"vue/padding-line-between-tags": 0,
|
|
191
|
+
"vue/padding-lines-in-component-definition": 0,
|
|
192
|
+
"vue/prefer-define-options": 2,
|
|
193
|
+
"vue/prefer-prop-type-boolean-first": 2,
|
|
194
|
+
"vue/prefer-separate-static-class": 0,
|
|
195
|
+
"vue/prefer-true-attribute-shorthand": 0,
|
|
196
|
+
"vue/prefer-use-template-ref": 2,
|
|
197
|
+
"vue/require-default-export": 2,
|
|
198
|
+
"vue/require-direct-export": 2,
|
|
199
|
+
"vue/require-emit-validator": 0,
|
|
200
|
+
"vue/require-explicit-slots": 2,
|
|
201
|
+
"vue/require-expose": 2,
|
|
202
|
+
"vue/require-macro-variable-name": [2, { defineProps: "props", defineEmits: "emits", defineSlots: "slots", useSlots: "slots", useAttrs: "attrs" }],
|
|
203
|
+
"vue/require-name-property": 0,
|
|
204
|
+
"vue/require-prop-comment": 0,
|
|
205
|
+
"vue/require-typed-object-prop": 0,
|
|
206
|
+
"vue/require-typed-ref": 2,
|
|
207
|
+
"vue/restricted-component-names": 0,
|
|
208
|
+
"vue/script-indent": [0, preset.indent, { baseIndent: 0, switchCase: 1, ignores: [] }],
|
|
209
|
+
"vue/slot-name-casing": 2,
|
|
210
|
+
"vue/sort-keys": 0,
|
|
211
|
+
"vue/static-class-names-order": 0,
|
|
212
|
+
"vue/v-for-delimiter-style": 0,
|
|
213
|
+
"vue/v-if-else-key": 0,
|
|
214
|
+
"vue/v-on-handler-style": 0,
|
|
215
|
+
// Extension Rules
|
|
216
|
+
"vue/array-bracket-newline": [2, "consistent"],
|
|
217
|
+
"vue/array-bracket-spacing": 2,
|
|
218
|
+
"vue/array-element-newline": [2, "consistent"],
|
|
219
|
+
"vue/arrow-spacing": 2,
|
|
220
|
+
"vue/block-spacing": 2,
|
|
221
|
+
"vue/brace-style": 2,
|
|
222
|
+
"vue/camelcase": 0,
|
|
223
|
+
"vue/comma-dangle": [2, "always-multiline"],
|
|
224
|
+
"vue/comma-spacing": 2,
|
|
225
|
+
"vue/comma-style": 2,
|
|
226
|
+
"vue/dot-location": 0,
|
|
227
|
+
"vue/dot-notation": 0,
|
|
228
|
+
"vue/eqeqeq": 2,
|
|
229
|
+
"vue/func-call-spacing": 2,
|
|
230
|
+
"vue/key-spacing": 2,
|
|
231
|
+
"vue/keyword-spacing": 2,
|
|
232
|
+
"vue/max-len": 0,
|
|
233
|
+
"vue/multiline-ternary": [2, "always-multiline"],
|
|
234
|
+
"vue/no-console": 0,
|
|
235
|
+
"vue/no-constant-condition": 2,
|
|
236
|
+
"vue/no-empty-pattern": 2,
|
|
237
|
+
"vue/no-extra-parens": 0,
|
|
238
|
+
"vue/no-implicit-coercion": [2, { allow: ["!!"] }],
|
|
239
|
+
"vue/no-irregular-whitespace": 2,
|
|
240
|
+
"vue/no-loss-of-precision": 2,
|
|
241
|
+
"vue/no-negated-condition": 0,
|
|
242
|
+
"vue/no-restricted-syntax": 0,
|
|
243
|
+
"vue/no-sparse-arrays": 2,
|
|
244
|
+
"vue/no-useless-concat": 0,
|
|
245
|
+
"vue/object-curly-newline": 2,
|
|
246
|
+
"vue/object-curly-spacing": [2, "always"],
|
|
247
|
+
"vue/object-property-newline": [2, { allowAllPropertiesOnSameLine: true }],
|
|
248
|
+
"vue/object-shorthand": 0,
|
|
249
|
+
"vue/operator-linebreak": [2, "after", { overrides: { "?": "ignore", ":": "ignore", "|": "before" } }],
|
|
250
|
+
"vue/prefer-template": 0,
|
|
251
|
+
"vue/quote-props": [2, "consistent-as-needed"],
|
|
252
|
+
"vue/space-in-parens": 2,
|
|
253
|
+
"vue/space-infix-ops": 2,
|
|
254
|
+
"vue/space-unary-ops": 2,
|
|
255
|
+
"vue/template-curly-spacing": 2,
|
|
14
256
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import javascriptRules from "./core.javascript.js";
|
|
2
2
|
import typescriptRules from "./core.typescript.js";
|
|
3
3
|
import antfuRules from "./core.antfu.js";
|
|
4
|
+
import importsRules from "./core.imports.js";
|
|
4
5
|
import reactRules from "./core.react.js";
|
|
5
6
|
import stylisticRules from "./core.stylistic.js";
|
|
6
7
|
import vueRules from "./core.vue.js";
|
|
@@ -10,6 +11,7 @@ const react = reactRules;
|
|
|
10
11
|
const vue = vueRules;
|
|
11
12
|
const stylistic = stylisticRules;
|
|
12
13
|
const antfu = antfuRules;
|
|
14
|
+
const imports = importsRules;
|
|
13
15
|
export default {
|
|
14
16
|
javascript,
|
|
15
17
|
typescript,
|
|
@@ -17,4 +19,5 @@ export default {
|
|
|
17
19
|
vue,
|
|
18
20
|
stylistic,
|
|
19
21
|
antfu,
|
|
22
|
+
imports,
|
|
20
23
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.antfu.d.ts","sourceRoot":"","sources":["../../src/core.antfu.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wBAYE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"imports/consistent-type-specifier-style": (string | number)[];
|
|
3
|
+
"imports/exports-last": number;
|
|
4
|
+
"imports/first": number;
|
|
5
|
+
"imports/newline-after-import": (number | {
|
|
6
|
+
count: number;
|
|
7
|
+
})[];
|
|
8
|
+
"imports/no-default-export": number;
|
|
9
|
+
"imports/no-duplicates": number;
|
|
10
|
+
"imports/no-mutable-exports": number;
|
|
11
|
+
"imports/no-named-default": number;
|
|
12
|
+
"imports/prefer-default-export": number;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=core.imports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.imports.d.ts","sourceRoot":"","sources":["../../src/core.imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wBAUE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.javascript.d.ts","sourceRoot":"","sources":["../../src/core.javascript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwME"}
|