@xylabs/eslint-config-flat 3.10.2 → 3.10.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.
- package/dist/neutral/import/index.d.cts +1 -1
- package/dist/neutral/import/index.d.cts.map +1 -1
- package/dist/neutral/import/index.d.mts +1 -1
- package/dist/neutral/import/index.d.mts.map +1 -1
- package/dist/neutral/import/index.d.ts +1 -1
- package/dist/neutral/import/index.d.ts.map +1 -1
- package/dist/neutral/index.cjs +39 -36
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +1 -1
- package/dist/neutral/index.d.cts.map +1 -1
- package/dist/neutral/index.d.mts +1 -1
- package/dist/neutral/index.d.mts.map +1 -1
- package/dist/neutral/index.d.ts +1 -1
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.js +39 -36
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/json/index.d.cts +17 -17
- package/dist/neutral/json/index.d.cts.map +1 -1
- package/dist/neutral/json/index.d.mts +17 -17
- package/dist/neutral/json/index.d.mts.map +1 -1
- package/dist/neutral/json/index.d.ts +17 -17
- package/dist/neutral/json/index.d.ts.map +1 -1
- package/dist/neutral/prettier/index.d.cts.map +1 -1
- package/dist/neutral/prettier/index.d.mts.map +1 -1
- package/dist/neutral/prettier/index.d.ts.map +1 -1
- package/dist/neutral/typescript/index.d.cts +1 -1
- package/dist/neutral/typescript/index.d.cts.map +1 -1
- package/dist/neutral/typescript/index.d.mts +1 -1
- package/dist/neutral/typescript/index.d.mts.map +1 -1
- package/dist/neutral/typescript/index.d.ts +1 -1
- package/dist/neutral/typescript/index.d.ts.map +1 -1
- package/dist/neutral/unicorn/index.d.cts.map +1 -1
- package/dist/neutral/unicorn/index.d.mts.map +1 -1
- package/dist/neutral/unicorn/index.d.ts.map +1 -1
- package/dist/node/import/index.d.cts +1 -1
- package/dist/node/import/index.d.cts.map +1 -1
- package/dist/node/import/index.d.mts +1 -1
- package/dist/node/import/index.d.mts.map +1 -1
- package/dist/node/import/index.d.ts +1 -1
- package/dist/node/import/index.d.ts.map +1 -1
- package/dist/node/index.cjs +39 -36
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +39 -36
- package/dist/node/index.js.map +1 -1
- package/dist/node/json/index.d.cts +17 -17
- package/dist/node/json/index.d.cts.map +1 -1
- package/dist/node/json/index.d.mts +17 -17
- package/dist/node/json/index.d.mts.map +1 -1
- package/dist/node/json/index.d.ts +17 -17
- package/dist/node/json/index.d.ts.map +1 -1
- package/dist/node/prettier/index.d.cts.map +1 -1
- package/dist/node/prettier/index.d.mts.map +1 -1
- package/dist/node/prettier/index.d.ts.map +1 -1
- package/dist/node/typescript/index.d.cts +1 -1
- package/dist/node/typescript/index.d.cts.map +1 -1
- package/dist/node/typescript/index.d.mts +1 -1
- package/dist/node/typescript/index.d.mts.map +1 -1
- package/dist/node/typescript/index.d.ts +1 -1
- package/dist/node/typescript/index.d.ts.map +1 -1
- package/dist/node/unicorn/index.d.cts.map +1 -1
- package/dist/node/unicorn/index.d.mts.map +1 -1
- package/dist/node/unicorn/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/import/index.ts +4 -4
- package/src/index.ts +3 -2
- package/src/json/index.ts +25 -18
- package/src/prettier/index.ts +21 -18
- package/src/types.d.ts +2 -6
- package/src/typescript/index.ts +1 -1
- package/src/unicorn/index.ts +16 -15
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import jsoncParser from 'jsonc-eslint-parser';
|
|
3
3
|
export declare const jsonConfig: ({
|
|
4
4
|
files: string[];
|
|
5
|
+
languageOptions: {
|
|
6
|
+
parser: typeof jsoncParser;
|
|
7
|
+
parserOptions: {
|
|
8
|
+
extraFileExtensions: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
5
11
|
plugins: {
|
|
6
12
|
jsonc: {
|
|
7
13
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
@@ -366,25 +372,19 @@ export declare const jsonConfig: ({
|
|
|
366
372
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
367
373
|
};
|
|
368
374
|
};
|
|
369
|
-
languageOptions: {
|
|
370
|
-
parser: typeof jsoncParser;
|
|
371
|
-
parserOptions: {
|
|
372
|
-
extraFileExtensions: string[];
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
375
|
rules: {
|
|
376
|
-
'jsonc/
|
|
376
|
+
'jsonc/array-element-newline': string[];
|
|
377
377
|
'jsonc/auto': string;
|
|
378
|
+
'jsonc/comma-dangle': string[];
|
|
378
379
|
'jsonc/indent': {}[];
|
|
379
|
-
'jsonc/array-element-newline': string[];
|
|
380
|
-
'jsonc/sort-keys': string;
|
|
381
380
|
'jsonc/key-name-casing': string;
|
|
382
|
-
'jsonc/
|
|
381
|
+
'jsonc/no-comments': string;
|
|
382
|
+
'jsonc/sort-keys': string;
|
|
383
383
|
};
|
|
384
384
|
} | {
|
|
385
385
|
files: string[];
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
languageOptions: {
|
|
387
|
+
parser: {
|
|
388
388
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
389
389
|
configs: {
|
|
390
390
|
base: {
|
|
@@ -746,9 +746,12 @@ export declare const jsonConfig: ({
|
|
|
746
746
|
traverseNodes: typeof jsoncParser.traverseNodes;
|
|
747
747
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
748
748
|
};
|
|
749
|
+
parserOptions: {
|
|
750
|
+
extraFileExtensions: string[];
|
|
751
|
+
};
|
|
749
752
|
};
|
|
750
|
-
|
|
751
|
-
|
|
753
|
+
plugins: {
|
|
754
|
+
jsonc: {
|
|
752
755
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
753
756
|
configs: {
|
|
754
757
|
base: {
|
|
@@ -1110,9 +1113,6 @@ export declare const jsonConfig: ({
|
|
|
1110
1113
|
traverseNodes: typeof jsoncParser.traverseNodes;
|
|
1111
1114
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
1112
1115
|
};
|
|
1113
|
-
parserOptions: {
|
|
1114
|
-
extraFileExtensions: string[];
|
|
1115
|
-
};
|
|
1116
1116
|
};
|
|
1117
1117
|
rules: {
|
|
1118
1118
|
'jsonc/no-comments': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json/index.ts"],"names":[],"mappings":";AACA,OAAO,WAAW,MAAM,qBAAqB,CAAA;AAE7C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwDtB,CAAA"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import jsoncParser from 'jsonc-eslint-parser';
|
|
3
3
|
export declare const jsonConfig: ({
|
|
4
4
|
files: string[];
|
|
5
|
+
languageOptions: {
|
|
6
|
+
parser: typeof jsoncParser;
|
|
7
|
+
parserOptions: {
|
|
8
|
+
extraFileExtensions: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
5
11
|
plugins: {
|
|
6
12
|
jsonc: {
|
|
7
13
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
@@ -366,25 +372,19 @@ export declare const jsonConfig: ({
|
|
|
366
372
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
367
373
|
};
|
|
368
374
|
};
|
|
369
|
-
languageOptions: {
|
|
370
|
-
parser: typeof jsoncParser;
|
|
371
|
-
parserOptions: {
|
|
372
|
-
extraFileExtensions: string[];
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
375
|
rules: {
|
|
376
|
-
'jsonc/
|
|
376
|
+
'jsonc/array-element-newline': string[];
|
|
377
377
|
'jsonc/auto': string;
|
|
378
|
+
'jsonc/comma-dangle': string[];
|
|
378
379
|
'jsonc/indent': {}[];
|
|
379
|
-
'jsonc/array-element-newline': string[];
|
|
380
|
-
'jsonc/sort-keys': string;
|
|
381
380
|
'jsonc/key-name-casing': string;
|
|
382
|
-
'jsonc/
|
|
381
|
+
'jsonc/no-comments': string;
|
|
382
|
+
'jsonc/sort-keys': string;
|
|
383
383
|
};
|
|
384
384
|
} | {
|
|
385
385
|
files: string[];
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
languageOptions: {
|
|
387
|
+
parser: {
|
|
388
388
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
389
389
|
configs: {
|
|
390
390
|
base: {
|
|
@@ -746,9 +746,12 @@ export declare const jsonConfig: ({
|
|
|
746
746
|
traverseNodes: typeof jsoncParser.traverseNodes;
|
|
747
747
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
748
748
|
};
|
|
749
|
+
parserOptions: {
|
|
750
|
+
extraFileExtensions: string[];
|
|
751
|
+
};
|
|
749
752
|
};
|
|
750
|
-
|
|
751
|
-
|
|
753
|
+
plugins: {
|
|
754
|
+
jsonc: {
|
|
752
755
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
753
756
|
configs: {
|
|
754
757
|
base: {
|
|
@@ -1110,9 +1113,6 @@ export declare const jsonConfig: ({
|
|
|
1110
1113
|
traverseNodes: typeof jsoncParser.traverseNodes;
|
|
1111
1114
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
1112
1115
|
};
|
|
1113
|
-
parserOptions: {
|
|
1114
|
-
extraFileExtensions: string[];
|
|
1115
|
-
};
|
|
1116
1116
|
};
|
|
1117
1117
|
rules: {
|
|
1118
1118
|
'jsonc/no-comments': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/json/index.ts"],"names":[],"mappings":";AACA,OAAO,WAAW,MAAM,qBAAqB,CAAA;AAE7C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwDtB,CAAA"}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import jsoncParser from 'jsonc-eslint-parser';
|
|
3
3
|
export declare const jsonConfig: ({
|
|
4
4
|
files: string[];
|
|
5
|
+
languageOptions: {
|
|
6
|
+
parser: typeof jsoncParser;
|
|
7
|
+
parserOptions: {
|
|
8
|
+
extraFileExtensions: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
5
11
|
plugins: {
|
|
6
12
|
jsonc: {
|
|
7
13
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
@@ -366,25 +372,19 @@ export declare const jsonConfig: ({
|
|
|
366
372
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
367
373
|
};
|
|
368
374
|
};
|
|
369
|
-
languageOptions: {
|
|
370
|
-
parser: typeof jsoncParser;
|
|
371
|
-
parserOptions: {
|
|
372
|
-
extraFileExtensions: string[];
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
375
|
rules: {
|
|
376
|
-
'jsonc/
|
|
376
|
+
'jsonc/array-element-newline': string[];
|
|
377
377
|
'jsonc/auto': string;
|
|
378
|
+
'jsonc/comma-dangle': string[];
|
|
378
379
|
'jsonc/indent': {}[];
|
|
379
|
-
'jsonc/array-element-newline': string[];
|
|
380
|
-
'jsonc/sort-keys': string;
|
|
381
380
|
'jsonc/key-name-casing': string;
|
|
382
|
-
'jsonc/
|
|
381
|
+
'jsonc/no-comments': string;
|
|
382
|
+
'jsonc/sort-keys': string;
|
|
383
383
|
};
|
|
384
384
|
} | {
|
|
385
385
|
files: string[];
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
languageOptions: {
|
|
387
|
+
parser: {
|
|
388
388
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
389
389
|
configs: {
|
|
390
390
|
base: {
|
|
@@ -746,9 +746,12 @@ export declare const jsonConfig: ({
|
|
|
746
746
|
traverseNodes: typeof jsoncParser.traverseNodes;
|
|
747
747
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
748
748
|
};
|
|
749
|
+
parserOptions: {
|
|
750
|
+
extraFileExtensions: string[];
|
|
751
|
+
};
|
|
749
752
|
};
|
|
750
|
-
|
|
751
|
-
|
|
753
|
+
plugins: {
|
|
754
|
+
jsonc: {
|
|
752
755
|
meta: typeof import("eslint-plugin-jsonc/meta");
|
|
753
756
|
configs: {
|
|
754
757
|
base: {
|
|
@@ -1110,9 +1113,6 @@ export declare const jsonConfig: ({
|
|
|
1110
1113
|
traverseNodes: typeof jsoncParser.traverseNodes;
|
|
1111
1114
|
getStaticJSONValue: typeof jsoncParser.getStaticJSONValue;
|
|
1112
1115
|
};
|
|
1113
|
-
parserOptions: {
|
|
1114
|
-
extraFileExtensions: string[];
|
|
1115
|
-
};
|
|
1116
1116
|
};
|
|
1117
1117
|
rules: {
|
|
1118
1118
|
'jsonc/no-comments': string;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwDtB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prettier/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prettier/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;gBAqB1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prettier/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prettier/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;gBAqB1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prettier/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/prettier/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;gBAqB1B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const typescriptConfig:
|
|
1
|
+
export declare const typescriptConfig: unknown[];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typescript/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typescript/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,OAAO,EAoHrC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const typescriptConfig:
|
|
1
|
+
export declare const typescriptConfig: unknown[];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typescript/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typescript/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,OAAO,EAoHrC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const typescriptConfig:
|
|
1
|
+
export declare const typescriptConfig: unknown[];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typescript/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typescript/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,EAAE,OAAO,EAoHrC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,uBAAuB,CAAA;AAE3C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,uBAAuB,CAAA;AAE3C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;GAkBzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,uBAAuB,CAAA;AAE3C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,uBAAuB,CAAA;AAE3C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;GAkBzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,uBAAuB,CAAA;AAE3C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,uBAAuB,CAAA;AAE3C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;GAkBzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"eslint-plugin-prettier": "^5.1.3",
|
|
24
24
|
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
25
25
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
26
|
-
"eslint-plugin-unicorn": "^
|
|
26
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
|
27
27
|
"eslint-plugin-workspaces": "^0.10.1",
|
|
28
28
|
"jsonc-eslint-parser": "^2.4.0",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"typescript": "^5.4.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"eslint": "^
|
|
37
|
+
"eslint": "^8"
|
|
38
38
|
},
|
|
39
39
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@swc/cli": "^0.3.12",
|
|
42
42
|
"@swc/core": "^1.5.5",
|
|
43
43
|
"@types/node": "^20.12.11",
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "~3.10.
|
|
45
|
-
"@xylabs/tsconfig": "~3.10.
|
|
46
|
-
"eslint": "^
|
|
44
|
+
"@xylabs/ts-scripts-yarn3": "~3.10.4",
|
|
45
|
+
"@xylabs/tsconfig": "~3.10.4",
|
|
46
|
+
"eslint": "^8.57.0",
|
|
47
47
|
"tslib": "^2.6.2",
|
|
48
48
|
"typescript": "^5.4.5"
|
|
49
49
|
},
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"url": "https://github.com/xylabs/config.git"
|
|
80
80
|
},
|
|
81
81
|
"sideEffects": false,
|
|
82
|
-
"version": "3.10.
|
|
82
|
+
"version": "3.10.4",
|
|
83
83
|
"scripts": {
|
|
84
84
|
"package-compile2": "yarn tsc -p tsconfig.json --module es2022 --outDir dist --rootDir src"
|
|
85
85
|
},
|
package/src/import/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
|
2
1
|
import importPlugin from 'eslint-plugin-import'
|
|
2
|
+
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
|
3
3
|
|
|
4
4
|
export const importConfig = [
|
|
5
5
|
{
|
|
6
|
-
plugins: {'simple-import-sort': simpleImportSort
|
|
6
|
+
plugins: { import: importPlugin, 'simple-import-sort': simpleImportSort },
|
|
7
7
|
rules: {
|
|
8
8
|
'import/default': ['off'],
|
|
9
9
|
'import/named': ['off'],
|
|
@@ -25,6 +25,6 @@ export const importConfig = [
|
|
|
25
25
|
'import/no-useless-path-segments': ['warn'],
|
|
26
26
|
'simple-import-sort/exports': ['warn'],
|
|
27
27
|
'simple-import-sort/imports': ['warn'],
|
|
28
|
-
}
|
|
29
|
-
}
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
30
|
]
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
3
|
import { ESLint } from 'eslint'
|
|
2
|
-
// eslint-disable-next-line import/no-internal-modules
|
|
3
4
|
|
|
5
|
+
// eslint-disable-next-line import/no-internal-modules
|
|
4
6
|
import { importConfig } from './import/index.js'
|
|
5
7
|
import { jsonConfig } from './json/index.js'
|
|
6
8
|
//import { markdownConfig } from './markdown'
|
|
@@ -20,4 +22,3 @@ export const config = [
|
|
|
20
22
|
...prettierConfig,
|
|
21
23
|
...unicornConfig,
|
|
22
24
|
]
|
|
23
|
-
|
package/src/json/index.ts
CHANGED
|
@@ -4,50 +4,57 @@ import jsoncParser from 'jsonc-eslint-parser'
|
|
|
4
4
|
export const jsonConfig = [
|
|
5
5
|
{
|
|
6
6
|
files: ['**/*.json', '**/*.jsonc', '**/*.json5'],
|
|
7
|
-
plugins: {
|
|
8
|
-
jsonc,
|
|
9
|
-
},
|
|
10
7
|
languageOptions: {
|
|
11
8
|
parser: jsoncParser,
|
|
12
9
|
parserOptions: {
|
|
13
10
|
extraFileExtensions: ['.json'],
|
|
14
|
-
}
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
plugins: {
|
|
14
|
+
jsonc,
|
|
15
15
|
},
|
|
16
16
|
rules: {
|
|
17
17
|
...jsonc.configs['all'].rules,
|
|
18
|
-
|
|
19
|
-
'
|
|
18
|
+
|
|
19
|
+
/// Support arrays with and without new lines but they can't mix
|
|
20
|
+
'jsonc/array-element-newline': ['error', 'consistent'],
|
|
21
|
+
|
|
20
22
|
'jsonc/auto': 'off',
|
|
23
|
+
|
|
24
|
+
/// see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html
|
|
25
|
+
'jsonc/comma-dangle': ['error', 'only-multiline'],
|
|
26
|
+
|
|
21
27
|
/// Indent with 2 spaces
|
|
22
28
|
'jsonc/indent': ['error', 2, {}],
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
|
|
30
|
+
/// Not all keys are camelCase
|
|
31
|
+
'jsonc/key-name-casing': 'off',
|
|
32
|
+
|
|
33
|
+
/// jsonc and json5 can have comments
|
|
34
|
+
'jsonc/no-comments': 'off',
|
|
35
|
+
|
|
25
36
|
/// Don't sort keys. We want to keep the order of keys as they are:
|
|
26
37
|
/// especially in arrays.
|
|
27
38
|
'jsonc/sort-keys': 'off',
|
|
28
|
-
/// Not all keys are camelCase
|
|
29
|
-
'jsonc/key-name-casing': 'off',
|
|
30
|
-
/// see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html
|
|
31
|
-
'jsonc/comma-dangle': ['error', 'only-multiline'],
|
|
32
39
|
},
|
|
33
40
|
},
|
|
34
41
|
{
|
|
35
42
|
files: ['**/*.json'],
|
|
36
|
-
plugins: {
|
|
37
|
-
jsonc,
|
|
38
|
-
},
|
|
39
43
|
languageOptions: {
|
|
40
44
|
parser: jsonc,
|
|
41
45
|
parserOptions: {
|
|
42
46
|
extraFileExtensions: ['.json'],
|
|
43
|
-
}
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
plugins: {
|
|
50
|
+
jsonc,
|
|
44
51
|
},
|
|
45
52
|
rules: {
|
|
46
53
|
/// Overrides the above configuration object.
|
|
47
54
|
/// No matter how much it would be cool to have comments in json files,
|
|
48
55
|
/// it's not supported by the json spec. We get errors tools like jq and
|
|
49
56
|
/// node.
|
|
50
|
-
'jsonc/no-comments': 'error'
|
|
57
|
+
'jsonc/no-comments': 'error',
|
|
51
58
|
},
|
|
52
|
-
}
|
|
59
|
+
},
|
|
53
60
|
]
|
package/src/prettier/index.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import prettier from 'eslint-plugin-prettier'
|
|
2
2
|
|
|
3
|
-
export const prettierConfig= [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
export const prettierConfig = [
|
|
4
|
+
{
|
|
5
|
+
plugins: { prettier },
|
|
6
|
+
rules: {
|
|
7
|
+
'prettier/prettier': [
|
|
8
|
+
'warn',
|
|
9
|
+
{
|
|
10
|
+
bracketSpacing: true,
|
|
11
|
+
endOfLine: 'lf',
|
|
12
|
+
experimentalTernaries: true,
|
|
13
|
+
printWidth: 150,
|
|
14
|
+
semi: false,
|
|
15
|
+
singleQuote: true,
|
|
16
|
+
tabWidth: 2,
|
|
17
|
+
trailingComma: 'all',
|
|
18
|
+
useTabs: false,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
20
22
|
},
|
|
21
|
-
|
|
23
|
+
prettier.configs?.recommended,
|
|
24
|
+
]
|
package/src/types.d.ts
CHANGED
package/src/typescript/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ts from '@typescript-eslint/eslint-plugin'
|
|
2
2
|
import tsParser from '@typescript-eslint/parser'
|
|
3
3
|
|
|
4
|
-
export const typescriptConfig:
|
|
4
|
+
export const typescriptConfig: unknown[] = [
|
|
5
5
|
{
|
|
6
6
|
files: ['*.ts', '*.d.ts', '*.tsx', '*.d.tsx', '*.js', '*.d.js', '*.jsx', '*.d.jsx'],
|
|
7
7
|
languageOptions: {
|
package/src/unicorn/index.ts
CHANGED
|
@@ -2,19 +2,20 @@ import unicorn from 'eslint-plugin-unicorn'
|
|
|
2
2
|
|
|
3
3
|
export const unicornConfig = [
|
|
4
4
|
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
plugins: { unicorn },
|
|
6
|
+
rules: {
|
|
7
|
+
'unicorn/catch-error-name': ['off'],
|
|
8
|
+
'unicorn/consistent-function-scoping': ['off'],
|
|
9
|
+
'unicorn/filename-case': ['off'],
|
|
10
|
+
'unicorn/new-for-builtins': ['off'],
|
|
11
|
+
'unicorn/no-array-callback-reference': ['off'],
|
|
12
|
+
'unicorn/no-await-expression-member': ['off'],
|
|
13
|
+
'unicorn/no-nested-ternary': ['off'],
|
|
14
|
+
'unicorn/no-null': ['off'],
|
|
15
|
+
'unicorn/number-literal-case': ['off'],
|
|
16
|
+
'unicorn/prefer-module': ['off'],
|
|
17
|
+
'unicorn/prefer-top-level-await': ['off'],
|
|
18
|
+
'unicorn/prevent-abbreviations': ['off'],
|
|
19
|
+
},
|
|
19
20
|
},
|
|
20
|
-
|
|
21
|
+
]
|