@croct/eslint-plugin 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,7 @@ export declare const configs: {
19
19
  '@croct/jsx-attribute-spacing': string;
20
20
  'react/jsx-wrap-multilines': string;
21
21
  'react/display-name': string;
22
+ 'jsx-quotes': string[];
22
23
  'react/jsx-newline': (string | {
23
24
  prevent: boolean;
24
25
  })[];
@@ -89,6 +90,7 @@ export declare const configs: {
89
90
  extends: string[];
90
91
  parser: string;
91
92
  rules: {
93
+ 'import/export': string;
92
94
  '@typescript-eslint/array-type': (string | {
93
95
  default: string;
94
96
  })[];
@@ -162,6 +164,7 @@ export declare const configs: {
162
164
  plugins: string[];
163
165
  rules: {
164
166
  'no-new-object': string;
167
+ 'import/export'?: undefined;
165
168
  '@typescript-eslint/array-type'?: undefined;
166
169
  '@typescript-eslint/prefer-as-const'?: undefined;
167
170
  '@typescript-eslint/adjacent-overload-signatures'?: undefined;
@@ -301,6 +304,8 @@ export declare const configs: {
301
304
  'no-useless-escape': string;
302
305
  'newline-destructuring/newline': (string | {
303
306
  maxLength: number;
307
+ itemsWithRest: number;
308
+ items: number;
304
309
  })[];
305
310
  };
306
311
  overrides: {
@@ -102,6 +102,8 @@ export declare const javascript: {
102
102
  'no-useless-escape': string;
103
103
  'newline-destructuring/newline': (string | {
104
104
  maxLength: number;
105
+ itemsWithRest: number;
106
+ items: number;
105
107
  })[];
106
108
  };
107
109
  overrides: {
@@ -216,9 +216,14 @@ exports.javascript = {
216
216
  },
217
217
  ],
218
218
  'no-useless-escape': 'error',
219
- 'newline-destructuring/newline': ['error', {
219
+ 'newline-destructuring/newline': [
220
+ 'error',
221
+ {
220
222
  maxLength: 100,
221
- }],
223
+ itemsWithRest: Infinity,
224
+ items: Infinity,
225
+ },
226
+ ],
222
227
  },
223
228
  overrides: [
224
229
  {
@@ -5,6 +5,7 @@ export declare const react: {
5
5
  '@croct/jsx-attribute-spacing': string;
6
6
  'react/jsx-wrap-multilines': string;
7
7
  'react/display-name': string;
8
+ 'jsx-quotes': string[];
8
9
  'react/jsx-newline': (string | {
9
10
  prevent: boolean;
10
11
  })[];
package/configs/react.js CHANGED
@@ -23,6 +23,10 @@ exports.react = {
23
23
  '@croct/jsx-attribute-spacing': 'error',
24
24
  'react/jsx-wrap-multilines': 'error',
25
25
  'react/display-name': 'off',
26
+ 'jsx-quotes': [
27
+ 'error',
28
+ 'prefer-double',
29
+ ],
26
30
  'react/jsx-newline': [
27
31
  'error',
28
32
  {
@@ -6,6 +6,7 @@ export declare const typescript: {
6
6
  extends: string[];
7
7
  parser: string;
8
8
  rules: {
9
+ 'import/export': string;
9
10
  '@typescript-eslint/array-type': (string | {
10
11
  default: string;
11
12
  })[];
@@ -79,6 +80,7 @@ export declare const typescript: {
79
80
  plugins: string[];
80
81
  rules: {
81
82
  'no-new-object': string;
83
+ 'import/export'?: undefined;
82
84
  '@typescript-eslint/array-type'?: undefined;
83
85
  '@typescript-eslint/prefer-as-const'?: undefined;
84
86
  '@typescript-eslint/adjacent-overload-signatures'?: undefined;
@@ -13,6 +13,7 @@ exports.typescript = {
13
13
  extends: ['plugin:@typescript-eslint/recommended'],
14
14
  parser: '@typescript-eslint/parser',
15
15
  rules: {
16
+ 'import/export': 'off',
16
17
  '@typescript-eslint/array-type': ['error', {
17
18
  default: 'array-simple',
18
19
  }],
package/index.d.ts CHANGED
@@ -48,6 +48,7 @@ declare const configuration: {
48
48
  '@croct/jsx-attribute-spacing': string;
49
49
  'react/jsx-wrap-multilines': string;
50
50
  'react/display-name': string;
51
+ 'jsx-quotes': string[];
51
52
  'react/jsx-newline': (string | {
52
53
  prevent: boolean;
53
54
  })[];
@@ -118,6 +119,7 @@ declare const configuration: {
118
119
  extends: string[];
119
120
  parser: string;
120
121
  rules: {
122
+ 'import/export': string;
121
123
  '@typescript-eslint/array-type': (string | {
122
124
  default: string;
123
125
  })[];
@@ -191,6 +193,7 @@ declare const configuration: {
191
193
  plugins: string[];
192
194
  rules: {
193
195
  'no-new-object': string;
196
+ 'import/export'?: undefined;
194
197
  '@typescript-eslint/array-type'?: undefined;
195
198
  '@typescript-eslint/prefer-as-const'?: undefined;
196
199
  '@typescript-eslint/adjacent-overload-signatures'?: undefined;
@@ -330,6 +333,8 @@ declare const configuration: {
330
333
  'no-useless-escape': string;
331
334
  'newline-destructuring/newline': (string | {
332
335
  maxLength: number;
336
+ itemsWithRest: number;
337
+ items: number;
333
338
  })[];
334
339
  };
335
340
  overrides: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croct/eslint-plugin",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "ESLint rules and presets applied to all Croct JavaScript projects.",
5
5
  "license": "MIT",
6
6
  "author": {