@pawover/eslint-rules 0.0.0-alpha.3 → 0.0.0-alpha.4

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.
@@ -1,92 +1,92 @@
1
1
  declare const _default: {
2
- "react/jsx-key-before-spread": number;
3
- "react/jsx-no-comment-textnodes": number;
4
- "react/jsx-no-duplicate-props": number;
5
- "react/jsx-no-iife": number;
6
- "react/jsx-no-undef": number;
7
- "react/jsx-shorthand-boolean": number;
8
- "react/jsx-shorthand-fragment": number;
9
- "react/jsx-uses-react": number;
10
- "react/jsx-uses-vars": number;
11
- "react/no-access-state-in-setstate": number;
12
- "react/no-array-index-key": number;
13
- "react/no-children-count": number;
14
- "react/no-children-for-each": number;
15
- "react/no-children-map": number;
16
- "react/no-children-only": number;
17
- "react/no-children-prop": number;
18
- "react/no-children-to-array": number;
19
- "react/no-class-component": number;
20
- "react/no-clone-element": number;
21
- "react/no-component-will-mount": number;
22
- "react/no-component-will-receive-props": number;
23
- "react/no-component-will-update": number;
24
- "react/no-context-provider": number;
25
- "react/no-create-ref": number;
26
- "react/no-default-props": number;
27
- "react/no-direct-mutation-state": number;
28
- "react/no-duplicate-key": number;
29
- "react/no-forward-ref": number;
30
- "react/no-implicit-key": number;
31
- "react/no-leaked-conditional-rendering": number;
32
- "react/no-missing-component-display-name": number;
33
- "react/no-missing-context-display-name": number;
34
- "react/no-missing-key": number;
35
- "react/no-misused-capture-owner-stack": number;
36
- "react/no-nested-component-definitions": number;
37
- "react/no-nested-lazy-component-declarations": number;
38
- "react/no-prop-types": number;
39
- "react/no-redundant-should-component-update": number;
40
- "react/no-set-state-in-component-did-mount": number;
41
- "react/no-set-state-in-component-did-update": number;
42
- "react/no-set-state-in-component-will-update": number;
43
- "react/no-string-refs": number;
44
- "react/no-unnecessary-key": number;
45
- "react/no-unnecessary-use-callback": number;
46
- "react/no-unnecessary-use-memo": number;
47
- "react/no-unnecessary-use-prefix": number;
48
- "react/no-unsafe-component-will-mount": number;
49
- "react/no-unsafe-component-will-receive-props": number;
50
- "react/no-unsafe-component-will-update": number;
51
- "react/no-unstable-context-value": number;
52
- "react/no-unstable-default-props": number;
53
- "react/no-unused-class-component-members": number;
54
- "react/no-unused-props": number;
55
- "react/no-unused-state": number;
56
- "react/no-use-context": number;
57
- "react/no-useless-forward-ref": number;
58
- "react/no-useless-fragment": number;
59
- "react/prefer-destructuring-assignment": number;
60
- "react/prefer-namespace-import": number;
61
- "react/prefer-read-only-props": number;
62
- "react/prefer-use-state-lazy-initialization": number;
63
- "react-dom/no-dangerously-set-innerhtml": number;
64
- "react-dom/no-dangerously-set-innerhtml-with-children": number;
65
- "react-dom/no-find-dom-node": number;
66
- "react-dom/no-flush-sync": number;
67
- "react-dom/no-hydrate": number;
68
- "react-dom/no-missing-button-type": number;
69
- "react-dom/no-missing-iframe-sandbox": number;
70
- "react-dom/no-namespace": number;
71
- "react-dom/no-render": number;
72
- "react-dom/no-render-return-value": number;
73
- "react-dom/no-script-url": number;
74
- "react-dom/no-string-style-prop": number;
75
- "react-dom/no-unknown-property": number;
76
- "react-dom/no-unsafe-iframe-sandbox": number;
77
- "react-dom/no-unsafe-target-blank": number;
78
- "react-dom/no-use-form-state": number;
79
- "react-dom/no-void-elements-with-children": number;
80
- "react-dom/prefer-namespace-import": number;
81
- "react-web-api/no-leaked-event-listener": number;
82
- "react-web-api/no-leaked-interval": number;
83
- "react-web-api/no-leaked-resize-observer": number;
84
- "react-web-api/no-leaked-timeout": number;
85
- "react-hooks-extra/no-direct-set-state-in-use-effect": number;
86
- "react-naming-convention/component-name": number;
87
- "react-naming-convention/context-name": number;
88
- "react-naming-convention/filename": (string | number)[];
89
- "react-naming-convention/filename-extension": number;
90
- "react-naming-convention/use-state": number;
2
+ readonly "react/jsx-key-before-spread": 1;
3
+ readonly "react/jsx-no-comment-textnodes": 1;
4
+ readonly "react/jsx-no-duplicate-props": 1;
5
+ readonly "react/jsx-no-iife": 1;
6
+ readonly "react/jsx-no-undef": 0;
7
+ readonly "react/jsx-shorthand-boolean": 1;
8
+ readonly "react/jsx-shorthand-fragment": 1;
9
+ readonly "react/jsx-uses-react": 1;
10
+ readonly "react/jsx-uses-vars": 1;
11
+ readonly "react/no-access-state-in-setstate": 2;
12
+ readonly "react/no-array-index-key": 1;
13
+ readonly "react/no-children-count": 2;
14
+ readonly "react/no-children-for-each": 2;
15
+ readonly "react/no-children-map": 2;
16
+ readonly "react/no-children-only": 2;
17
+ readonly "react/no-children-prop": 2;
18
+ readonly "react/no-children-to-array": 2;
19
+ readonly "react/no-class-component": 2;
20
+ readonly "react/no-clone-element": 2;
21
+ readonly "react/no-component-will-mount": 2;
22
+ readonly "react/no-component-will-receive-props": 2;
23
+ readonly "react/no-component-will-update": 2;
24
+ readonly "react/no-context-provider": 2;
25
+ readonly "react/no-create-ref": 2;
26
+ readonly "react/no-default-props": 2;
27
+ readonly "react/no-direct-mutation-state": 2;
28
+ readonly "react/no-duplicate-key": 2;
29
+ readonly "react/no-forward-ref": 2;
30
+ readonly "react/no-implicit-key": 2;
31
+ readonly "react/no-leaked-conditional-rendering": 2;
32
+ readonly "react/no-missing-component-display-name": 2;
33
+ readonly "react/no-missing-context-display-name": 2;
34
+ readonly "react/no-missing-key": 2;
35
+ readonly "react/no-misused-capture-owner-stack": 2;
36
+ readonly "react/no-nested-component-definitions": 2;
37
+ readonly "react/no-nested-lazy-component-declarations": 2;
38
+ readonly "react/no-prop-types": 2;
39
+ readonly "react/no-redundant-should-component-update": 2;
40
+ readonly "react/no-set-state-in-component-did-mount": 2;
41
+ readonly "react/no-set-state-in-component-did-update": 2;
42
+ readonly "react/no-set-state-in-component-will-update": 2;
43
+ readonly "react/no-string-refs": 2;
44
+ readonly "react/no-unnecessary-key": 1;
45
+ readonly "react/no-unnecessary-use-callback": 1;
46
+ readonly "react/no-unnecessary-use-memo": 1;
47
+ readonly "react/no-unnecessary-use-prefix": 1;
48
+ readonly "react/no-unsafe-component-will-mount": 2;
49
+ readonly "react/no-unsafe-component-will-receive-props": 2;
50
+ readonly "react/no-unsafe-component-will-update": 2;
51
+ readonly "react/no-unstable-context-value": 2;
52
+ readonly "react/no-unstable-default-props": 2;
53
+ readonly "react/no-unused-class-component-members": 2;
54
+ readonly "react/no-unused-props": 2;
55
+ readonly "react/no-unused-state": 2;
56
+ readonly "react/no-use-context": 2;
57
+ readonly "react/no-useless-forward-ref": 2;
58
+ readonly "react/no-useless-fragment": 2;
59
+ readonly "react/prefer-destructuring-assignment": 2;
60
+ readonly "react/prefer-namespace-import": 1;
61
+ readonly "react/prefer-read-only-props": 2;
62
+ readonly "react/prefer-use-state-lazy-initialization": 2;
63
+ readonly "react-dom/no-dangerously-set-innerhtml": 1;
64
+ readonly "react-dom/no-dangerously-set-innerhtml-with-children": 2;
65
+ readonly "react-dom/no-find-dom-node": 2;
66
+ readonly "react-dom/no-flush-sync": 2;
67
+ readonly "react-dom/no-hydrate": 2;
68
+ readonly "react-dom/no-missing-button-type": 2;
69
+ readonly "react-dom/no-missing-iframe-sandbox": 2;
70
+ readonly "react-dom/no-namespace": 2;
71
+ readonly "react-dom/no-render": 2;
72
+ readonly "react-dom/no-render-return-value": 2;
73
+ readonly "react-dom/no-script-url": 2;
74
+ readonly "react-dom/no-string-style-prop": 2;
75
+ readonly "react-dom/no-unknown-property": 2;
76
+ readonly "react-dom/no-unsafe-iframe-sandbox": 2;
77
+ readonly "react-dom/no-unsafe-target-blank": 2;
78
+ readonly "react-dom/no-use-form-state": 2;
79
+ readonly "react-dom/no-void-elements-with-children": 2;
80
+ readonly "react-dom/prefer-namespace-import": 1;
81
+ readonly "react-web-api/no-leaked-event-listener": 2;
82
+ readonly "react-web-api/no-leaked-interval": 2;
83
+ readonly "react-web-api/no-leaked-resize-observer": 2;
84
+ readonly "react-web-api/no-leaked-timeout": 2;
85
+ readonly "react-hooks-extra/no-direct-set-state-in-use-effect": 1;
86
+ readonly "react-naming-convention/component-name": 2;
87
+ readonly "react-naming-convention/context-name": 2;
88
+ readonly "react-naming-convention/filename": readonly [1, "camelCase"];
89
+ readonly "react-naming-convention/filename-extension": 0;
90
+ readonly "react-naming-convention/use-state": 2;
91
91
  };
92
92
  export default _default;
@@ -1,131 +1,143 @@
1
1
  declare const _default: {
2
- "stylistic/array-bracket-newline": (string | number)[];
3
- "stylistic/array-bracket-spacing": number;
4
- "stylistic/array-element-newline": (string | number)[];
5
- "stylistic/arrow-parens": number;
6
- "stylistic/arrow-spacing": number;
7
- "stylistic/block-spacing": number;
8
- "stylistic/brace-style": number;
9
- "stylistic/comma-dangle": (string | number)[];
10
- "stylistic/comma-spacing": number;
11
- "stylistic/comma-style": number;
12
- "stylistic/computed-property-spacing": number;
13
- "stylistic/curly-newline": number;
14
- "stylistic/dot-location": number;
15
- "stylistic/eol-last": number;
16
- "stylistic/function-call-argument-newline": (string | number)[];
17
- "stylistic/function-call-spacing": number;
18
- "stylistic/function-paren-newline": (string | number)[];
19
- "stylistic/generator-star-spacing": number;
20
- "stylistic/implicit-arrow-linebreak": number;
21
- "stylistic/indent": number[];
22
- "stylistic/indent-binary-ops": number[];
23
- "stylistic/jsx-child-element-spacing": number;
24
- "stylistic/jsx-closing-bracket-location": number;
25
- "stylistic/jsx-closing-tag-location": number;
26
- "stylistic/jsx-curly-brace-presence": number;
27
- "stylistic/jsx-curly-newline": number;
28
- "stylistic/jsx-curly-spacing": number;
29
- "stylistic/jsx-equals-spacing": number;
30
- "stylistic/jsx-first-prop-new-line": number;
31
- "stylistic/jsx-function-call-newline": number;
32
- "stylistic/jsx-indent-props": number[];
33
- "stylistic/jsx-max-props-per-line": number;
34
- "stylistic/jsx-newline": number;
35
- "stylistic/jsx-one-expression-per-line": (number | {
36
- allow: string;
37
- })[];
38
- "stylistic/jsx-pascal-case": (number | {
39
- allowNamespace: boolean;
40
- })[];
41
- "stylistic/jsx-quotes": number;
42
- "stylistic/jsx-self-closing-comp": number;
43
- "stylistic/jsx-sort-props": number;
44
- "stylistic/jsx-tag-spacing": (number | {
45
- beforeClosing: string;
46
- })[];
47
- "stylistic/jsx-wrap-multilines": (number | {
48
- declaration: string;
49
- assignment: string;
50
- return: string;
51
- arrow: string;
52
- condition: string;
53
- logical: string;
54
- prop: string;
55
- propertyValue: string;
56
- })[];
57
- "stylistic/key-spacing": number;
58
- "stylistic/keyword-spacing": number;
59
- "stylistic/line-comment-position": number;
60
- "stylistic/linebreak-style": number;
61
- "stylistic/lines-around-comment": number;
62
- "stylistic/lines-between-class-members": number;
63
- "stylistic/max-len": number;
64
- "stylistic/max-statements-per-line": number;
65
- "stylistic/member-delimiter-style": number;
66
- "stylistic/multiline-comment-style": number;
67
- "stylistic/multiline-ternary": (string | number)[];
68
- "stylistic/new-parens": number;
69
- "stylistic/newline-per-chained-call": number;
70
- "stylistic/no-confusing-arrow": number;
71
- "stylistic/no-extra-parens": number;
72
- "stylistic/no-extra-semi": number;
73
- "stylistic/no-floating-decimal": number;
74
- "stylistic/no-mixed-operators": number;
75
- "stylistic/no-mixed-spaces-and-tabs": number;
76
- "stylistic/no-multi-spaces": number;
77
- "stylistic/no-multiple-empty-lines": (number | {
78
- max: number;
79
- maxEOF: number;
80
- maxBOF: number;
81
- })[];
82
- "stylistic/no-tabs": number;
83
- "stylistic/no-trailing-spaces": number;
84
- "stylistic/no-whitespace-before-property": number;
85
- "stylistic/nonblock-statement-body-position": number;
86
- "stylistic/object-curly-newline": number;
87
- "stylistic/object-curly-spacing": (string | number)[];
88
- "stylistic/object-property-newline": (number | {
89
- allowAllPropertiesOnSameLine: boolean;
90
- })[];
91
- "stylistic/one-var-declaration-per-line": number;
92
- "stylistic/operator-linebreak": (string | number | {
93
- overrides: {
94
- "?": string;
95
- ":": string;
2
+ readonly "stylistic/array-bracket-newline": readonly [2, "consistent"];
3
+ readonly "stylistic/array-bracket-spacing": 2;
4
+ readonly "stylistic/array-element-newline": readonly [2, "consistent"];
5
+ readonly "stylistic/arrow-parens": 2;
6
+ readonly "stylistic/arrow-spacing": 2;
7
+ readonly "stylistic/block-spacing": 2;
8
+ readonly "stylistic/brace-style": 2;
9
+ readonly "stylistic/comma-dangle": readonly [2, "always-multiline"];
10
+ readonly "stylistic/comma-spacing": 2;
11
+ readonly "stylistic/comma-style": 2;
12
+ readonly "stylistic/computed-property-spacing": 2;
13
+ readonly "stylistic/curly-newline": 2;
14
+ readonly "stylistic/dot-location": 0;
15
+ readonly "stylistic/eol-last": 2;
16
+ readonly "stylistic/function-call-argument-newline": readonly [2, "consistent"];
17
+ readonly "stylistic/function-call-spacing": 2;
18
+ readonly "stylistic/function-paren-newline": readonly [2, "multiline-arguments"];
19
+ readonly "stylistic/generator-star-spacing": 2;
20
+ readonly "stylistic/implicit-arrow-linebreak": 2;
21
+ readonly "stylistic/indent": readonly [2, number];
22
+ readonly "stylistic/indent-binary-ops": readonly [2, number];
23
+ readonly "stylistic/jsx-child-element-spacing": 0;
24
+ readonly "stylistic/jsx-closing-bracket-location": 2;
25
+ readonly "stylistic/jsx-closing-tag-location": 2;
26
+ readonly "stylistic/jsx-curly-brace-presence": 2;
27
+ readonly "stylistic/jsx-curly-newline": 2;
28
+ readonly "stylistic/jsx-curly-spacing": 2;
29
+ readonly "stylistic/jsx-equals-spacing": 2;
30
+ readonly "stylistic/jsx-first-prop-new-line": 2;
31
+ readonly "stylistic/jsx-function-call-newline": 2;
32
+ readonly "stylistic/jsx-indent-props": readonly [2, number];
33
+ readonly "stylistic/jsx-max-props-per-line": 2;
34
+ readonly "stylistic/jsx-newline": 0;
35
+ readonly "stylistic/jsx-one-expression-per-line": readonly [2, {
36
+ readonly allow: "single-child";
37
+ }];
38
+ readonly "stylistic/jsx-pascal-case": readonly [2, {
39
+ readonly allowNamespace: true;
40
+ }];
41
+ readonly "stylistic/jsx-quotes": 2;
42
+ readonly "stylistic/jsx-self-closing-comp": 2;
43
+ readonly "stylistic/jsx-sort-props": 0;
44
+ readonly "stylistic/jsx-tag-spacing": readonly [2, {
45
+ readonly beforeClosing: "never";
46
+ }];
47
+ readonly "stylistic/jsx-wrap-multilines": readonly [2, {
48
+ readonly declaration: "parens-new-line";
49
+ readonly assignment: "parens-new-line";
50
+ readonly return: "parens-new-line";
51
+ readonly arrow: "parens-new-line";
52
+ readonly condition: "parens-new-line";
53
+ readonly logical: "parens-new-line";
54
+ readonly prop: "ignore";
55
+ readonly propertyValue: "parens-new-line";
56
+ }];
57
+ readonly "stylistic/key-spacing": 2;
58
+ readonly "stylistic/keyword-spacing": 2;
59
+ readonly "stylistic/line-comment-position": 0;
60
+ readonly "stylistic/linebreak-style": 0;
61
+ readonly "stylistic/lines-around-comment": 0;
62
+ readonly "stylistic/lines-between-class-members": 2;
63
+ readonly "stylistic/max-len": 0;
64
+ readonly "stylistic/max-statements-per-line": 0;
65
+ readonly "stylistic/member-delimiter-style": 2;
66
+ readonly "stylistic/multiline-comment-style": 0;
67
+ readonly "stylistic/multiline-ternary": readonly [2, "always-multiline"];
68
+ readonly "stylistic/new-parens": 2;
69
+ readonly "stylistic/newline-per-chained-call": 0;
70
+ readonly "stylistic/no-confusing-arrow": 0;
71
+ readonly "stylistic/no-extra-parens": 0;
72
+ readonly "stylistic/no-extra-semi": 2;
73
+ readonly "stylistic/no-floating-decimal": 2;
74
+ readonly "stylistic/no-mixed-operators": 0;
75
+ readonly "stylistic/no-mixed-spaces-and-tabs": 0;
76
+ readonly "stylistic/no-multi-spaces": 2;
77
+ readonly "stylistic/no-multiple-empty-lines": readonly [2, {
78
+ readonly max: 2;
79
+ readonly maxEOF: 1;
80
+ readonly maxBOF: 0;
81
+ }];
82
+ readonly "stylistic/no-tabs": 0;
83
+ readonly "stylistic/no-trailing-spaces": 2;
84
+ readonly "stylistic/no-whitespace-before-property": 2;
85
+ readonly "stylistic/nonblock-statement-body-position": 2;
86
+ readonly "stylistic/object-curly-newline": 2;
87
+ readonly "stylistic/object-curly-spacing": readonly [2, "always"];
88
+ readonly "stylistic/object-property-newline": readonly [2, {
89
+ readonly allowAllPropertiesOnSameLine: true;
90
+ }];
91
+ readonly "stylistic/one-var-declaration-per-line": 2;
92
+ readonly "stylistic/operator-linebreak": readonly [2, "after", {
93
+ readonly overrides: {
94
+ readonly "?": "ignore";
95
+ readonly ":": "ignore";
96
96
  };
97
- })[];
98
- "stylistic/padded-blocks": number;
99
- "stylistic/padding-line-between-statements": (number | {
100
- blankLine: string;
101
- prev: string;
102
- next: string;
103
- })[];
104
- "stylistic/quote-props": (string | number)[];
105
- "stylistic/quotes": number;
106
- "stylistic/rest-spread-spacing": number;
107
- "stylistic/semi": number;
108
- "stylistic/semi-spacing": number;
109
- "stylistic/semi-style": number;
110
- "stylistic/space-before-blocks": number;
111
- "stylistic/space-before-function-paren": (number | {
112
- anonymous: string;
113
- named: string;
114
- asyncArrow: string;
115
- catch: string;
116
- })[];
117
- "stylistic/space-in-parens": number;
118
- "stylistic/space-infix-ops": number;
119
- "stylistic/space-unary-ops": number;
120
- "stylistic/spaced-comment": number;
121
- "stylistic/switch-colon-spacing": number;
122
- "stylistic/template-curly-spacing": number;
123
- "stylistic/template-tag-spacing": number;
124
- "stylistic/type-annotation-spacing": number;
125
- "stylistic/type-generic-spacing": number;
126
- "stylistic/type-named-tuple-spacing": number;
127
- "stylistic/wrap-iife": number;
128
- "stylistic/wrap-regex": number;
129
- "stylistic/yield-star-spacing": number;
97
+ }];
98
+ readonly "stylistic/padded-blocks": 0;
99
+ readonly "stylistic/padding-line-between-statements": readonly [2, {
100
+ readonly blankLine: "always";
101
+ readonly prev: "*";
102
+ readonly next: "return";
103
+ }, {
104
+ readonly blankLine: "always";
105
+ readonly prev: "*";
106
+ readonly next: "default";
107
+ }, {
108
+ readonly blankLine: "always";
109
+ readonly prev: "directive";
110
+ readonly next: "*";
111
+ }, {
112
+ readonly blankLine: "any";
113
+ readonly prev: "directive";
114
+ readonly next: "directive";
115
+ }];
116
+ readonly "stylistic/quote-props": readonly [2, "consistent-as-needed"];
117
+ readonly "stylistic/quotes": 2;
118
+ readonly "stylistic/rest-spread-spacing": 2;
119
+ readonly "stylistic/semi": 2;
120
+ readonly "stylistic/semi-spacing": 2;
121
+ readonly "stylistic/semi-style": 2;
122
+ readonly "stylistic/space-before-blocks": 2;
123
+ readonly "stylistic/space-before-function-paren": readonly [2, {
124
+ readonly anonymous: "never";
125
+ readonly named: "never";
126
+ readonly asyncArrow: "always";
127
+ readonly catch: "always";
128
+ }];
129
+ readonly "stylistic/space-in-parens": 2;
130
+ readonly "stylistic/space-infix-ops": 2;
131
+ readonly "stylistic/space-unary-ops": 2;
132
+ readonly "stylistic/spaced-comment": 2;
133
+ readonly "stylistic/switch-colon-spacing": 2;
134
+ readonly "stylistic/template-curly-spacing": 2;
135
+ readonly "stylistic/template-tag-spacing": 2;
136
+ readonly "stylistic/type-annotation-spacing": 2;
137
+ readonly "stylistic/type-generic-spacing": 2;
138
+ readonly "stylistic/type-named-tuple-spacing": 2;
139
+ readonly "stylistic/wrap-iife": 2;
140
+ readonly "stylistic/wrap-regex": 2;
141
+ readonly "stylistic/yield-star-spacing": 2;
130
142
  };
131
143
  export default _default;