@pawover/eslint-rules 0.0.0-beta.8 → 0.0.1
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.importsSort.js +4 -0
- package/dist/core.javascript.js +5 -5
- package/dist/core.react.js +96 -91
- package/dist/core.reactHooks.js +19 -0
- package/dist/core.stylistic.js +1 -1
- package/dist/core.typescript.js +2 -2
- package/dist/core.vue.js +3 -3
- package/dist/index.js +66 -3
- package/dist/preset.js +67 -62
- package/dist/types/core.importsSort.d.ts +6 -0
- package/dist/types/core.importsSort.d.ts.map +1 -0
- package/dist/types/core.javascript.d.ts +3 -1
- package/dist/types/core.javascript.d.ts.map +1 -1
- package/dist/types/core.react.d.ts +96 -95
- package/dist/types/core.react.d.ts.map +1 -1
- package/dist/types/core.reactHooks.d.ts +21 -0
- package/dist/types/core.reactHooks.d.ts.map +1 -0
- package/dist/types/core.stylistic.d.ts +6 -1
- package/dist/types/core.stylistic.d.ts.map +1 -1
- package/dist/types/index.d.ts +24 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/preset.d.ts.map +1 -1
- package/package.json +23 -21
package/dist/core.javascript.js
CHANGED
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
"no-misleading-character-class": 2,
|
|
35
35
|
"no-new-native-nonconstructor": 2,
|
|
36
36
|
"no-obj-calls": 2,
|
|
37
|
-
"no-promise-executor-return": 2,
|
|
37
|
+
"no-promise-executor-return": [2, { allowVoid: true }],
|
|
38
38
|
"no-prototype-builtins": 2,
|
|
39
39
|
"no-self-assign": 2,
|
|
40
40
|
"no-self-compare": 2,
|
|
@@ -50,8 +50,8 @@ export default {
|
|
|
50
50
|
"no-unsafe-finally": 2,
|
|
51
51
|
"no-unsafe-negation": 2,
|
|
52
52
|
"no-unsafe-optional-chaining": 2,
|
|
53
|
-
"no-unused-private-class-members":
|
|
54
|
-
"no-unused-vars": [
|
|
53
|
+
"no-unused-private-class-members": 1,
|
|
54
|
+
"no-unused-vars": [1, { vars: "local", args: "none", caughtErrors: "none", varsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_" }],
|
|
55
55
|
"no-use-before-define": [2, { functions: false, classes: false, variables: false, allowNamedExports: false }],
|
|
56
56
|
"no-useless-assignment": 0,
|
|
57
57
|
"no-useless-backreference": 2,
|
|
@@ -156,8 +156,8 @@ export default {
|
|
|
156
156
|
"no-undefined": 0,
|
|
157
157
|
"no-underscore-dangle": 0,
|
|
158
158
|
"no-unneeded-ternary": 2,
|
|
159
|
-
"no-unused-expressions": [
|
|
160
|
-
"no-unused-labels":
|
|
159
|
+
"no-unused-expressions": [1, { ignoreDirectives: true, allowShortCircuit: true }],
|
|
160
|
+
"no-unused-labels": 1,
|
|
161
161
|
"no-useless-call": 2,
|
|
162
162
|
"no-useless-catch": 2,
|
|
163
163
|
"no-useless-computed-key": 2,
|
package/dist/core.react.js
CHANGED
|
@@ -1,93 +1,98 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"react/
|
|
3
|
-
"react/
|
|
4
|
-
"react/
|
|
5
|
-
"react/
|
|
6
|
-
"react/
|
|
7
|
-
"react/
|
|
8
|
-
"react/
|
|
9
|
-
"react/
|
|
10
|
-
"react/
|
|
11
|
-
"react/
|
|
12
|
-
"react/no-
|
|
13
|
-
"react/no-
|
|
14
|
-
"react/no-
|
|
15
|
-
"react/no-
|
|
16
|
-
"react/no-
|
|
17
|
-
"react/no-
|
|
18
|
-
"react/no-
|
|
19
|
-
"react/no-
|
|
20
|
-
"react/no-
|
|
21
|
-
"react/no-
|
|
22
|
-
"react/no-
|
|
23
|
-
"react/no-
|
|
24
|
-
"react/no-
|
|
25
|
-
"react/no-
|
|
26
|
-
"react/no-
|
|
27
|
-
"react/no-
|
|
28
|
-
"react/no-
|
|
29
|
-
"react/no-
|
|
30
|
-
"react/no-
|
|
31
|
-
"react/no-
|
|
32
|
-
"react/no-
|
|
33
|
-
"react/no-
|
|
34
|
-
"react/no-
|
|
35
|
-
"react/no-
|
|
36
|
-
"react/no-
|
|
37
|
-
"react/no-
|
|
38
|
-
"react/no-
|
|
39
|
-
"react/no-
|
|
40
|
-
"react/no-
|
|
41
|
-
"react/no-
|
|
42
|
-
"react/no-
|
|
43
|
-
"react/no-
|
|
44
|
-
"react/no-
|
|
45
|
-
"react/no-
|
|
46
|
-
"react/no-
|
|
47
|
-
"react/no-
|
|
48
|
-
"react/no-
|
|
49
|
-
"react/
|
|
50
|
-
"react/
|
|
51
|
-
"react/
|
|
52
|
-
"react/
|
|
53
|
-
"react/
|
|
54
|
-
"react/
|
|
55
|
-
"react/
|
|
56
|
-
"react/
|
|
57
|
-
"react/
|
|
58
|
-
"react/
|
|
59
|
-
"react/
|
|
60
|
-
"react/
|
|
61
|
-
"react/
|
|
62
|
-
"react-
|
|
63
|
-
"react-
|
|
64
|
-
"react-
|
|
65
|
-
"react-
|
|
66
|
-
"react-
|
|
67
|
-
"react
|
|
68
|
-
"react-
|
|
69
|
-
"react-
|
|
70
|
-
"react-
|
|
71
|
-
"react-
|
|
72
|
-
"react-
|
|
73
|
-
"react-
|
|
74
|
-
"react-
|
|
75
|
-
"react-
|
|
76
|
-
"react-
|
|
77
|
-
"react-
|
|
78
|
-
"react-
|
|
79
|
-
"react
|
|
80
|
-
"react
|
|
81
|
-
"react-
|
|
82
|
-
"react-
|
|
83
|
-
"react-
|
|
84
|
-
"react-
|
|
85
|
-
"react-
|
|
86
|
-
"react-
|
|
87
|
-
"react-
|
|
88
|
-
"react-
|
|
89
|
-
"react
|
|
90
|
-
"react
|
|
91
|
-
"react
|
|
92
|
-
"react-
|
|
2
|
+
"@eslint-react/component-hook-factories": 2,
|
|
3
|
+
"@eslint-react/error-boundaries": 2,
|
|
4
|
+
"@eslint-react/exhaustive-deps": 1,
|
|
5
|
+
"@eslint-react/immutability": 2,
|
|
6
|
+
"@eslint-react/no-access-state-in-setstate": 2,
|
|
7
|
+
"@eslint-react/no-array-index-key": 1,
|
|
8
|
+
"@eslint-react/no-children-count": 1,
|
|
9
|
+
"@eslint-react/no-children-for-each": 1,
|
|
10
|
+
"@eslint-react/no-children-map": 1,
|
|
11
|
+
"@eslint-react/no-children-only": 1,
|
|
12
|
+
"@eslint-react/no-children-to-array": 1,
|
|
13
|
+
"@eslint-react/no-class-component": 2,
|
|
14
|
+
"@eslint-react/no-clone-element": 1,
|
|
15
|
+
"@eslint-react/no-component-will-mount": 2,
|
|
16
|
+
"@eslint-react/no-component-will-receive-props": 2,
|
|
17
|
+
"@eslint-react/no-component-will-update": 2,
|
|
18
|
+
"@eslint-react/no-context-provider": 2,
|
|
19
|
+
"@eslint-react/no-create-ref": 2,
|
|
20
|
+
"@eslint-react/no-direct-mutation-state": 2,
|
|
21
|
+
"@eslint-react/no-duplicate-key": 1,
|
|
22
|
+
"@eslint-react/no-forward-ref": 2,
|
|
23
|
+
"@eslint-react/no-implicit-children": 1,
|
|
24
|
+
"@eslint-react/no-implicit-key": 1,
|
|
25
|
+
"@eslint-react/no-implicit-ref": 1,
|
|
26
|
+
"@eslint-react/no-leaked-conditional-rendering": 2,
|
|
27
|
+
"@eslint-react/no-missing-component-display-name": 2,
|
|
28
|
+
"@eslint-react/no-missing-context-display-name": 2,
|
|
29
|
+
"@eslint-react/no-missing-key": 2,
|
|
30
|
+
"@eslint-react/no-misused-capture-owner-stack": 2,
|
|
31
|
+
"@eslint-react/no-nested-component-definitions": 2,
|
|
32
|
+
"@eslint-react/no-nested-lazy-component-declarations": 2,
|
|
33
|
+
"@eslint-react/no-redundant-should-component-update": 2,
|
|
34
|
+
"@eslint-react/no-set-state-in-component-did-mount": 2,
|
|
35
|
+
"@eslint-react/no-set-state-in-component-did-update": 2,
|
|
36
|
+
"@eslint-react/no-set-state-in-component-will-update": 2,
|
|
37
|
+
"@eslint-react/no-unnecessary-use-callback": 2,
|
|
38
|
+
"@eslint-react/no-unnecessary-use-memo": 2,
|
|
39
|
+
"@eslint-react/no-unnecessary-use-prefix": 2,
|
|
40
|
+
"@eslint-react/no-unsafe-component-will-mount": 2,
|
|
41
|
+
"@eslint-react/no-unsafe-component-will-receive-props": 2,
|
|
42
|
+
"@eslint-react/no-unsafe-component-will-update": 2,
|
|
43
|
+
"@eslint-react/no-unstable-context-value": 2,
|
|
44
|
+
"@eslint-react/no-unstable-default-props": 2,
|
|
45
|
+
"@eslint-react/no-unused-class-component-members": 1,
|
|
46
|
+
"@eslint-react/no-unused-props": 1,
|
|
47
|
+
"@eslint-react/no-unused-state": 1,
|
|
48
|
+
"@eslint-react/no-use-context": 2,
|
|
49
|
+
"@eslint-react/prefer-destructuring-assignment": 2,
|
|
50
|
+
"@eslint-react/prefer-namespace-import": 0,
|
|
51
|
+
"@eslint-react/purity": 1,
|
|
52
|
+
"@eslint-react/refs": 2,
|
|
53
|
+
"@eslint-react/rules-of-hooks": 2,
|
|
54
|
+
"@eslint-react/set-state-in-effect": 2,
|
|
55
|
+
"@eslint-react/set-state-in-render": 2,
|
|
56
|
+
"@eslint-react/unsupported-syntax": 2,
|
|
57
|
+
"@eslint-react/use-memo": 2,
|
|
58
|
+
"@eslint-react/use-state": 2,
|
|
59
|
+
"@eslint-react/jsx-no-children-prop": 0,
|
|
60
|
+
"@eslint-react/jsx-no-children-prop-with-children": 2,
|
|
61
|
+
"@eslint-react/jsx-no-comment-textnodes": 1,
|
|
62
|
+
"@eslint-react/jsx-no-key-after-spread": 2,
|
|
63
|
+
"@eslint-react/jsx-no-leaked-dollar": 2,
|
|
64
|
+
"@eslint-react/jsx-no-leaked-semicolon": 2,
|
|
65
|
+
"@eslint-react/jsx-no-namespace": 2,
|
|
66
|
+
"@eslint-react/jsx-no-useless-fragment": 2,
|
|
67
|
+
"@eslint-react/rsc-function-definition": 0,
|
|
68
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": 2,
|
|
69
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml": 1,
|
|
70
|
+
"@eslint-react/dom-no-find-dom-node": 2,
|
|
71
|
+
"@eslint-react/dom-no-flush-sync": 2,
|
|
72
|
+
"@eslint-react/dom-no-hydrate": 2,
|
|
73
|
+
"@eslint-react/dom-no-missing-button-type": 1,
|
|
74
|
+
"@eslint-react/dom-no-missing-iframe-sandbox": 1,
|
|
75
|
+
"@eslint-react/dom-no-render-return-value": 2,
|
|
76
|
+
"@eslint-react/dom-no-render": 2,
|
|
77
|
+
"@eslint-react/dom-no-script-url": 1,
|
|
78
|
+
"@eslint-react/dom-no-string-style-prop": 2,
|
|
79
|
+
"@eslint-react/dom-no-unknown-property": 2,
|
|
80
|
+
"@eslint-react/dom-no-unsafe-iframe-sandbox": 1,
|
|
81
|
+
"@eslint-react/dom-no-unsafe-target-blank": 1,
|
|
82
|
+
"@eslint-react/dom-no-use-form-state": 2,
|
|
83
|
+
"@eslint-react/dom-no-void-elements-with-children": 2,
|
|
84
|
+
"@eslint-react/dom-prefer-namespace-import": 0,
|
|
85
|
+
"@eslint-react/web-api-no-leaked-event-listener": 2,
|
|
86
|
+
"@eslint-react/web-api-no-leaked-interval": 2,
|
|
87
|
+
"@eslint-react/web-api-no-leaked-resize-observer": 2,
|
|
88
|
+
"@eslint-react/web-api-no-leaked-timeout": 2,
|
|
89
|
+
"@eslint-react/naming-convention-context-name": 2,
|
|
90
|
+
"@eslint-react/naming-convention-id-name": 2,
|
|
91
|
+
"@eslint-react/naming-convention-ref-name": 2,
|
|
92
|
+
"@eslint-react/debug-class-component": 0,
|
|
93
|
+
"@eslint-react/debug-function-component": 0,
|
|
94
|
+
"@eslint-react/debug-hook": 0,
|
|
95
|
+
"@eslint-react/debug-is-from-react": 0,
|
|
96
|
+
"@eslint-react/debug-is-from-ref": 0,
|
|
97
|
+
"@eslint-react/debug-jsx": 0,
|
|
93
98
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"react-hooks/exhaustive-deps": 0,
|
|
3
|
+
"react-hooks/rules-of-hooks": 0,
|
|
4
|
+
"react-hooks/component-hook-factories": 0,
|
|
5
|
+
"react-hooks/config": 2,
|
|
6
|
+
"react-hooks/error-boundaries": 0,
|
|
7
|
+
"react-hooks/gating": 2,
|
|
8
|
+
"react-hooks/globals": 2,
|
|
9
|
+
"react-hooks/immutability": 0,
|
|
10
|
+
"react-hooks/incompatible-library": 2,
|
|
11
|
+
"react-hooks/preserve-manual-memoization": 2,
|
|
12
|
+
"react-hooks/purity": 0,
|
|
13
|
+
"react-hooks/refs": 0,
|
|
14
|
+
"react-hooks/set-state-in-effect": 0,
|
|
15
|
+
"react-hooks/set-state-in-render": 0,
|
|
16
|
+
"react-hooks/static-components": 0,
|
|
17
|
+
"react-hooks/unsupported-syntax": 0,
|
|
18
|
+
"react-hooks/use-memo": 0,
|
|
19
|
+
};
|
package/dist/core.stylistic.js
CHANGED
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
"stylistic/no-floating-decimal": 2,
|
|
59
59
|
"stylistic/no-mixed-operators": 0,
|
|
60
60
|
"stylistic/no-mixed-spaces-and-tabs": 2,
|
|
61
|
-
"stylistic/no-multi-spaces": 2,
|
|
61
|
+
"stylistic/no-multi-spaces": [2, { exceptions: { Property: false, ImportAttribute: false } }],
|
|
62
62
|
"stylistic/no-multiple-empty-lines": [2, { max: 2, maxEOF: 1, maxBOF: 0 }],
|
|
63
63
|
"stylistic/no-tabs": 0,
|
|
64
64
|
"stylistic/no-trailing-spaces": 2,
|
package/dist/core.typescript.js
CHANGED
|
@@ -102,8 +102,8 @@ export default {
|
|
|
102
102
|
"ts/no-unsafe-return": 0,
|
|
103
103
|
"ts/no-unsafe-type-assertion": 0,
|
|
104
104
|
"ts/no-unsafe-unary-minus": 2,
|
|
105
|
-
"ts/no-unused-expressions": [
|
|
106
|
-
"ts/no-unused-vars": [
|
|
105
|
+
"ts/no-unused-expressions": [1, { ignoreDirectives: true, allowShortCircuit: true }],
|
|
106
|
+
"ts/no-unused-vars": [1, { vars: "local", args: "none", caughtErrors: "none", varsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_" }],
|
|
107
107
|
"ts/no-use-before-define": [2, { functions: false, classes: false, variables: false, allowNamedExports: false }],
|
|
108
108
|
"ts/no-useless-constructor": 0,
|
|
109
109
|
"ts/no-useless-empty-export": 0,
|
package/dist/core.vue.js
CHANGED
|
@@ -23,8 +23,8 @@ export default {
|
|
|
23
23
|
"vue/no-side-effects-in-computed-properties": 2,
|
|
24
24
|
"vue/no-template-key": 2,
|
|
25
25
|
"vue/no-textarea-mustache": 2,
|
|
26
|
-
"vue/no-unused-components":
|
|
27
|
-
"vue/no-unused-vars":
|
|
26
|
+
"vue/no-unused-components": 1,
|
|
27
|
+
"vue/no-unused-vars": 1,
|
|
28
28
|
"vue/no-use-computed-property-like-method": 2,
|
|
29
29
|
"vue/no-use-v-if-with-v-for": 2,
|
|
30
30
|
"vue/no-useless-template-attributes": 2,
|
|
@@ -181,7 +181,7 @@ export default {
|
|
|
181
181
|
"vue/no-unsupported-features": 0,
|
|
182
182
|
"vue/no-unused-emit-declarations": 0,
|
|
183
183
|
"vue/no-unused-properties": 1,
|
|
184
|
-
"vue/no-unused-refs":
|
|
184
|
+
"vue/no-unused-refs": 1,
|
|
185
185
|
"vue/no-use-v-else-with-v-for": 0,
|
|
186
186
|
"vue/no-useless-mustaches": 2,
|
|
187
187
|
"vue/no-useless-v-bind": 2,
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,86 @@
|
|
|
1
|
-
import javascriptRules from "./core.javascript.js";
|
|
2
|
-
import typescriptRules from "./core.typescript.js";
|
|
3
1
|
import antfuRules from "./core.antfu.js";
|
|
4
2
|
import importsRules from "./core.imports.js";
|
|
3
|
+
import simpleImportSortRules from "./core.importsSort.js";
|
|
4
|
+
import javascriptRules from "./core.javascript.js";
|
|
5
5
|
import reactRules from "./core.react.js";
|
|
6
|
+
import reactHooksRules from "./core.reactHooks.js";
|
|
6
7
|
import stylisticRules from "./core.stylistic.js";
|
|
8
|
+
import typescriptRules from "./core.typescript.js";
|
|
7
9
|
import vueRules from "./core.vue.js";
|
|
10
|
+
const GLOB_EXCLUDE = [
|
|
11
|
+
"**/node_modules",
|
|
12
|
+
"**/dist",
|
|
13
|
+
"**/package-lock.json",
|
|
14
|
+
"**/yarn.lock",
|
|
15
|
+
"**/pnpm-lock.yaml",
|
|
16
|
+
"**/bun.lockb",
|
|
17
|
+
"**/output",
|
|
18
|
+
"**/coverage",
|
|
19
|
+
"**/temp",
|
|
20
|
+
"**/.temp",
|
|
21
|
+
"**/tmp",
|
|
22
|
+
"**/.tmp",
|
|
23
|
+
"**/.history",
|
|
24
|
+
"**/.vitepress/cache",
|
|
25
|
+
"**/.nuxt",
|
|
26
|
+
"**/.next",
|
|
27
|
+
"**/.svelte-kit",
|
|
28
|
+
"**/.vercel",
|
|
29
|
+
"**/.changeset",
|
|
30
|
+
"**/.idea",
|
|
31
|
+
"**/.cache",
|
|
32
|
+
"**/.output",
|
|
33
|
+
"**/.vite-inspect",
|
|
34
|
+
"**/.yarn",
|
|
35
|
+
"**/vite.config.*.timestamp-*",
|
|
36
|
+
"**/CHANGELOG*.md",
|
|
37
|
+
"**/*.min.*",
|
|
38
|
+
"**/LICENSE*",
|
|
39
|
+
"**/__snapshots__",
|
|
40
|
+
"**/auto-import?(s).d.ts",
|
|
41
|
+
"**/auto-component?(s).d.ts",
|
|
42
|
+
"**/auto-router?(s).d.ts",
|
|
43
|
+
];
|
|
8
44
|
const javascript = javascriptRules;
|
|
9
45
|
const typescript = typescriptRules;
|
|
10
46
|
const react = reactRules;
|
|
47
|
+
const reactHooks = reactHooksRules;
|
|
11
48
|
const vue = vueRules;
|
|
12
49
|
const stylistic = stylisticRules;
|
|
13
50
|
const antfu = antfuRules;
|
|
14
51
|
const imports = importsRules;
|
|
15
|
-
|
|
52
|
+
const importsSort = simpleImportSortRules;
|
|
53
|
+
const rules = {
|
|
16
54
|
javascript,
|
|
17
55
|
typescript,
|
|
18
56
|
react,
|
|
57
|
+
reactHooks,
|
|
19
58
|
vue,
|
|
20
59
|
stylistic,
|
|
21
60
|
antfu,
|
|
22
61
|
imports,
|
|
62
|
+
importsSort,
|
|
63
|
+
};
|
|
64
|
+
function createRules(rule, prefix) {
|
|
65
|
+
const result = {};
|
|
66
|
+
if (rule && typeof rule === "string" && rules[rule]) {
|
|
67
|
+
if (prefix) {
|
|
68
|
+
return Object.entries(rules[rule]).reduce((acc, [key, value]) => {
|
|
69
|
+
const oldPrefix = key.split("/")[0];
|
|
70
|
+
const newPrefix = prefix.split("/")[0];
|
|
71
|
+
const newKey = key.replace(`${oldPrefix}/`, `${newPrefix}/`);
|
|
72
|
+
acc[newKey] = value;
|
|
73
|
+
return acc;
|
|
74
|
+
}, result);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
return rules[rule];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
export default {
|
|
83
|
+
...rules,
|
|
84
|
+
GLOB_EXCLUDE,
|
|
85
|
+
createRules,
|
|
23
86
|
};
|
package/dist/preset.js
CHANGED
|
@@ -1,85 +1,90 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
indent: 2,
|
|
3
3
|
tsMemberOrder: [
|
|
4
|
+
// 1. 签名
|
|
4
5
|
"signature",
|
|
5
6
|
"call-signature",
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"private-static-
|
|
11
|
-
"
|
|
7
|
+
// 2. 静态初始化
|
|
8
|
+
"static-initialization",
|
|
9
|
+
// 3. 字段
|
|
10
|
+
"#private-static-field",
|
|
11
|
+
"private-static-field",
|
|
12
|
+
"protected-static-field",
|
|
13
|
+
"public-static-field",
|
|
14
|
+
"static-field",
|
|
15
|
+
"#private-instance-field",
|
|
16
|
+
"private-instance-field",
|
|
17
|
+
"protected-instance-field",
|
|
18
|
+
"public-instance-field",
|
|
19
|
+
"instance-field",
|
|
20
|
+
"#private-field",
|
|
21
|
+
"private-field",
|
|
22
|
+
"protected-field",
|
|
23
|
+
"public-field",
|
|
24
|
+
"field",
|
|
25
|
+
// 4. 构造函数
|
|
26
|
+
"private-constructor",
|
|
27
|
+
"protected-constructor",
|
|
28
|
+
"public-constructor",
|
|
29
|
+
// 5. 访问器 (Get/Set)
|
|
12
30
|
"#private-static-get",
|
|
13
31
|
"#private-static-set",
|
|
32
|
+
"private-static-get",
|
|
33
|
+
"private-static-set",
|
|
34
|
+
"protected-static-get",
|
|
35
|
+
"protected-static-set",
|
|
36
|
+
"public-static-get",
|
|
37
|
+
"public-static-set",
|
|
14
38
|
"static-get",
|
|
15
39
|
"static-set",
|
|
16
|
-
"public-static-field",
|
|
17
|
-
"protected-static-field",
|
|
18
|
-
"private-static-field",
|
|
19
|
-
"#private-static-field",
|
|
20
|
-
"static-field",
|
|
21
|
-
"public-static-method",
|
|
22
|
-
"protected-static-method",
|
|
23
|
-
"private-static-method",
|
|
24
|
-
"#private-static-method",
|
|
25
|
-
"static-method",
|
|
26
|
-
"static-initialization",
|
|
27
|
-
"public-constructor",
|
|
28
|
-
"protected-constructor",
|
|
29
|
-
"private-constructor",
|
|
30
|
-
"constructor",
|
|
31
|
-
"public-decorated-get",
|
|
32
|
-
"public-decorated-set",
|
|
33
|
-
"protected-decorated-get",
|
|
34
|
-
"protected-decorated-set",
|
|
35
|
-
"private-decorated-get",
|
|
36
|
-
"private-decorated-set",
|
|
37
|
-
"public-instance-get",
|
|
38
|
-
"public-instance-set",
|
|
39
|
-
"protected-instance-get",
|
|
40
|
-
"protected-instance-set",
|
|
41
|
-
"private-instance-get",
|
|
42
|
-
"private-instance-set",
|
|
43
|
-
"#private-instance-get",
|
|
44
|
-
"#private-instance-set",
|
|
45
|
-
"public-abstract-get",
|
|
46
|
-
"public-abstract-set",
|
|
47
40
|
"protected-abstract-get",
|
|
48
41
|
"protected-abstract-set",
|
|
49
|
-
"public-get",
|
|
50
|
-
"public-set",
|
|
51
|
-
"protected-get",
|
|
52
|
-
"protected-set",
|
|
53
|
-
"private-get",
|
|
54
|
-
"private-set",
|
|
55
|
-
"#private-get",
|
|
56
|
-
"#private-set",
|
|
57
|
-
"instance-get",
|
|
58
|
-
"instance-set",
|
|
42
|
+
"public-abstract-get",
|
|
43
|
+
"public-abstract-set",
|
|
59
44
|
"abstract-get",
|
|
60
45
|
"abstract-set",
|
|
46
|
+
"#private-instance-get",
|
|
47
|
+
"#private-instance-set",
|
|
48
|
+
"private-instance-get",
|
|
49
|
+
"private-instance-set",
|
|
50
|
+
"protected-instance-get",
|
|
51
|
+
"protected-instance-set",
|
|
52
|
+
"public-instance-get",
|
|
53
|
+
"public-instance-set",
|
|
54
|
+
"instance-get",
|
|
55
|
+
"instance-set",
|
|
56
|
+
"private-decorated-get",
|
|
57
|
+
"private-decorated-set",
|
|
58
|
+
"protected-decorated-get",
|
|
59
|
+
"protected-decorated-set",
|
|
60
|
+
"public-decorated-get",
|
|
61
|
+
"public-decorated-set",
|
|
61
62
|
"decorated-get",
|
|
62
63
|
"decorated-set",
|
|
64
|
+
"#private-get",
|
|
65
|
+
"#private-set",
|
|
66
|
+
"private-get",
|
|
67
|
+
"private-set",
|
|
68
|
+
"protected-get",
|
|
69
|
+
"protected-set",
|
|
70
|
+
"public-get",
|
|
71
|
+
"public-set",
|
|
63
72
|
"get",
|
|
64
73
|
"set",
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"private-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"protected-field",
|
|
72
|
-
"private-field",
|
|
73
|
-
"#private-field",
|
|
74
|
-
"field",
|
|
75
|
-
"public-instance-method",
|
|
76
|
-
"protected-instance-method",
|
|
77
|
-
"private-instance-method",
|
|
74
|
+
// 6. 方法
|
|
75
|
+
"#private-static-method",
|
|
76
|
+
"private-static-method",
|
|
77
|
+
"protected-static-method",
|
|
78
|
+
"public-static-method",
|
|
79
|
+
"static-method",
|
|
78
80
|
"#private-instance-method",
|
|
81
|
+
"private-instance-method",
|
|
82
|
+
"protected-instance-method",
|
|
83
|
+
"public-instance-method",
|
|
79
84
|
"instance-method",
|
|
80
|
-
"public-method",
|
|
81
|
-
"protected-method",
|
|
82
85
|
"private-method",
|
|
86
|
+
"protected-method",
|
|
87
|
+
"public-method",
|
|
83
88
|
"#private-method",
|
|
84
89
|
"method",
|
|
85
90
|
],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.importsSort.d.ts","sourceRoot":"","sources":["../../src/core.importsSort.ts"],"names":[],"mappings":";;;;AAAA,wBAGE"}
|
|
@@ -39,7 +39,9 @@ declare const _default: {
|
|
|
39
39
|
"no-misleading-character-class": number;
|
|
40
40
|
"no-new-native-nonconstructor": number;
|
|
41
41
|
"no-obj-calls": number;
|
|
42
|
-
"no-promise-executor-return": number
|
|
42
|
+
"no-promise-executor-return": (number | {
|
|
43
|
+
allowVoid: boolean;
|
|
44
|
+
})[];
|
|
43
45
|
"no-prototype-builtins": number;
|
|
44
46
|
"no-self-assign": number;
|
|
45
47
|
"no-self-compare": number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.javascript.d.ts","sourceRoot":"","sources":["../../src/core.javascript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"core.javascript.d.ts","sourceRoot":"","sources":["../../src/core.javascript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwME"}
|