@croct/eslint-plugin 0.6.4 → 0.6.6
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/configs/index.d.ts +2 -1
- package/configs/javascript.d.ts +2 -0
- package/configs/javascript.js +14 -0
- package/configs/react.d.ts +0 -1
- package/configs/react.js +0 -4
- package/index.d.ts +2 -1
- package/package.json +2 -2
- package/rules/min-chained-call-depth/index.js +0 -5
- package/rules/parameter-destructuring/index.js +0 -5
package/configs/index.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export declare const configs: {
|
|
|
24
24
|
noSortAlphabetically: boolean;
|
|
25
25
|
multiline: string;
|
|
26
26
|
})[];
|
|
27
|
-
'jsx-quotes': string[];
|
|
28
27
|
'react/jsx-newline': (string | {
|
|
29
28
|
prevent: boolean;
|
|
30
29
|
})[];
|
|
@@ -210,6 +209,7 @@ export declare const configs: {
|
|
|
210
209
|
allowWholeFile: boolean;
|
|
211
210
|
})[];
|
|
212
211
|
'eslint-comments/require-description': string;
|
|
212
|
+
'eslint-comments/no-unused-disable': string;
|
|
213
213
|
'newline-per-chained-call': string;
|
|
214
214
|
'no-plusplus': string;
|
|
215
215
|
'array-bracket-newline': string[];
|
|
@@ -306,6 +306,7 @@ export declare const configs: {
|
|
|
306
306
|
itemsWithRest: number;
|
|
307
307
|
items: number;
|
|
308
308
|
})[];
|
|
309
|
+
'jsx-quotes': string[];
|
|
309
310
|
};
|
|
310
311
|
overrides: {
|
|
311
312
|
files: string[];
|
package/configs/javascript.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const javascript: {
|
|
|
11
11
|
allowWholeFile: boolean;
|
|
12
12
|
})[];
|
|
13
13
|
'eslint-comments/require-description': string;
|
|
14
|
+
'eslint-comments/no-unused-disable': string;
|
|
14
15
|
'newline-per-chained-call': string;
|
|
15
16
|
'no-plusplus': string;
|
|
16
17
|
'array-bracket-newline': string[];
|
|
@@ -107,6 +108,7 @@ export declare const javascript: {
|
|
|
107
108
|
itemsWithRest: number;
|
|
108
109
|
items: number;
|
|
109
110
|
})[];
|
|
111
|
+
'jsx-quotes': string[];
|
|
110
112
|
};
|
|
111
113
|
overrides: {
|
|
112
114
|
files: string[];
|
package/configs/javascript.js
CHANGED
|
@@ -28,6 +28,7 @@ exports.javascript = {
|
|
|
28
28
|
},
|
|
29
29
|
],
|
|
30
30
|
'eslint-comments/require-description': 'error',
|
|
31
|
+
'eslint-comments/no-unused-disable': 'error',
|
|
31
32
|
'newline-per-chained-call': 'off',
|
|
32
33
|
'no-plusplus': 'off',
|
|
33
34
|
'array-bracket-newline': [
|
|
@@ -221,6 +222,15 @@ exports.javascript = {
|
|
|
221
222
|
'block-like',
|
|
222
223
|
],
|
|
223
224
|
},
|
|
225
|
+
{
|
|
226
|
+
blankLine: 'any',
|
|
227
|
+
prev: [
|
|
228
|
+
'case',
|
|
229
|
+
],
|
|
230
|
+
next: [
|
|
231
|
+
'case',
|
|
232
|
+
],
|
|
233
|
+
},
|
|
224
234
|
],
|
|
225
235
|
'no-useless-escape': 'error',
|
|
226
236
|
'newline-destructuring/newline': [
|
|
@@ -231,6 +241,10 @@ exports.javascript = {
|
|
|
231
241
|
items: Infinity,
|
|
232
242
|
},
|
|
233
243
|
],
|
|
244
|
+
'jsx-quotes': [
|
|
245
|
+
'error',
|
|
246
|
+
'prefer-double',
|
|
247
|
+
],
|
|
234
248
|
},
|
|
235
249
|
overrides: [
|
|
236
250
|
{
|
package/configs/react.d.ts
CHANGED
package/configs/react.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -57,7 +57,6 @@ declare const configuration: {
|
|
|
57
57
|
noSortAlphabetically: boolean;
|
|
58
58
|
multiline: string;
|
|
59
59
|
})[];
|
|
60
|
-
'jsx-quotes': string[];
|
|
61
60
|
'react/jsx-newline': (string | {
|
|
62
61
|
prevent: boolean;
|
|
63
62
|
})[];
|
|
@@ -243,6 +242,7 @@ declare const configuration: {
|
|
|
243
242
|
allowWholeFile: boolean;
|
|
244
243
|
})[];
|
|
245
244
|
'eslint-comments/require-description': string;
|
|
245
|
+
'eslint-comments/no-unused-disable': string;
|
|
246
246
|
'newline-per-chained-call': string;
|
|
247
247
|
'no-plusplus': string;
|
|
248
248
|
'array-bracket-newline': string[];
|
|
@@ -339,6 +339,7 @@ declare const configuration: {
|
|
|
339
339
|
itemsWithRest: number;
|
|
340
340
|
items: number;
|
|
341
341
|
})[];
|
|
342
|
+
'jsx-quotes': string[];
|
|
342
343
|
};
|
|
343
344
|
overrides: {
|
|
344
345
|
files: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@croct/eslint-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "ESLint rules and presets applied to all Croct JavaScript projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"eslint-plugin-self": "^1.2.1",
|
|
67
67
|
"jest": "^29.0.0",
|
|
68
68
|
"ts-jest": "^29.0.0",
|
|
69
|
-
"typescript": "^
|
|
69
|
+
"typescript": "^5.0.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@typescript-eslint/parser": ">= 5",
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.minChainedCallDepth = void 0;
|
|
4
|
-
/*
|
|
5
|
-
eslint-disable @typescript-eslint/no-non-null-assertion
|
|
6
|
-
--
|
|
7
|
-
Disable the rule to reduce the number of branches
|
|
8
|
-
*/
|
|
9
4
|
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
|
|
10
5
|
const ast_utils_1 = require("@typescript-eslint/utils/dist/ast-utils");
|
|
11
6
|
const createRule_1 = require("../createRule");
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parameterDestructuring = void 0;
|
|
4
|
-
/*
|
|
5
|
-
eslint-disable @typescript-eslint/no-non-null-assertion
|
|
6
|
-
--
|
|
7
|
-
Disable the rule to reduce the number of branches
|
|
8
|
-
*/
|
|
9
4
|
const types_1 = require("@typescript-eslint/types");
|
|
10
5
|
const createRule_1 = require("../createRule");
|
|
11
6
|
exports.parameterDestructuring = (0, createRule_1.createRule)({
|