@xylabs/eslint-config-flat 3.15.4 → 3.15.5
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/index.cjs +97 -81
- 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.mjs +95 -79
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/sonar/index.d.cts +1 -1
- package/dist/neutral/sonar/index.d.cts.map +1 -1
- package/dist/neutral/sonar/index.d.mts +1 -1
- package/dist/neutral/sonar/index.d.mts.map +1 -1
- package/dist/neutral/sonar/index.d.ts +1 -1
- package/dist/neutral/sonar/index.d.ts.map +1 -1
- package/dist/neutral/typescript/index.d.cts.map +1 -1
- package/dist/neutral/typescript/index.d.mts.map +1 -1
- package/dist/neutral/typescript/index.d.ts.map +1 -1
- package/dist/node/index.cjs +98 -82
- 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.mjs +96 -80
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/sonar/index.d.cts +1 -1
- package/dist/node/sonar/index.d.cts.map +1 -1
- package/dist/node/sonar/index.d.mts +1 -1
- package/dist/node/sonar/index.d.mts.map +1 -1
- package/dist/node/sonar/index.d.ts +1 -1
- package/dist/node/sonar/index.d.ts.map +1 -1
- package/dist/node/typescript/index.d.cts.map +1 -1
- package/dist/node/typescript/index.d.mts.map +1 -1
- package/dist/node/typescript/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/import/index.ts +1 -1
- package/src/index.ts +9 -9
- package/src/rules/index.ts +5 -5
- package/src/sonar/index.ts +2 -2
- package/src/types.d.ts +2 -2
- package/src/typescript/index.ts +7 -2
package/dist/neutral/index.cjs
CHANGED
|
@@ -75,7 +75,7 @@ var importConfig = {
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
plugins: {
|
|
78
|
-
import: import_eslint_plugin_import.default,
|
|
78
|
+
"import": import_eslint_plugin_import.default,
|
|
79
79
|
"simple-import-sort": import_eslint_plugin_simple_import_sort.default
|
|
80
80
|
},
|
|
81
81
|
settings: {
|
|
@@ -147,52 +147,6 @@ var importConfig = {
|
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
// src/prettier/index.ts
|
|
151
|
-
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
152
|
-
var prettierConfig = {
|
|
153
|
-
ignores: [
|
|
154
|
-
".yarn/**",
|
|
155
|
-
"jest.config.cjs",
|
|
156
|
-
"**/dist/**",
|
|
157
|
-
"dist",
|
|
158
|
-
"build/**",
|
|
159
|
-
"node_modules/**"
|
|
160
|
-
],
|
|
161
|
-
files: [
|
|
162
|
-
"**/*.ts",
|
|
163
|
-
"**/*.d.ts",
|
|
164
|
-
"**/*.tsx",
|
|
165
|
-
"**/*.d.tsx",
|
|
166
|
-
"**/*.ts",
|
|
167
|
-
"**/*.d.ts",
|
|
168
|
-
"**/*.jsx",
|
|
169
|
-
"**/*.d.jsx",
|
|
170
|
-
"*.mjs",
|
|
171
|
-
"*.d.mjs",
|
|
172
|
-
"*.d.cjs"
|
|
173
|
-
],
|
|
174
|
-
plugins: {
|
|
175
|
-
prettier: import_eslint_plugin_prettier.default
|
|
176
|
-
},
|
|
177
|
-
rules: {
|
|
178
|
-
...(import_eslint_plugin_prettier.default.configs?.recommended).rules,
|
|
179
|
-
"prettier/prettier": [
|
|
180
|
-
"warn",
|
|
181
|
-
{
|
|
182
|
-
bracketSpacing: true,
|
|
183
|
-
endOfLine: "lf",
|
|
184
|
-
experimentalTernaries: true,
|
|
185
|
-
printWidth: 150,
|
|
186
|
-
semi: false,
|
|
187
|
-
singleQuote: true,
|
|
188
|
-
tabWidth: 2,
|
|
189
|
-
trailingComma: "all",
|
|
190
|
-
useTabs: false
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
|
|
196
150
|
// src/rules/index.ts
|
|
197
151
|
var rulesConfig = {
|
|
198
152
|
ignores: [
|
|
@@ -204,7 +158,7 @@ var rulesConfig = {
|
|
|
204
158
|
"node_modules/**"
|
|
205
159
|
],
|
|
206
160
|
rules: {
|
|
207
|
-
complexity: [
|
|
161
|
+
"complexity": [
|
|
208
162
|
"error",
|
|
209
163
|
18
|
|
210
164
|
],
|
|
@@ -242,47 +196,28 @@ var rulesConfig = {
|
|
|
242
196
|
]
|
|
243
197
|
}
|
|
244
198
|
],
|
|
245
|
-
//'no-secrets/no-secrets': ['off'],
|
|
199
|
+
// 'no-secrets/no-secrets': ['off'],
|
|
246
200
|
"no-tabs": [
|
|
247
201
|
"error"
|
|
248
202
|
],
|
|
249
203
|
"no-unused-vars": "off",
|
|
250
204
|
"no-useless-escape": "off",
|
|
251
|
-
quotes: [
|
|
205
|
+
"quotes": [
|
|
252
206
|
2,
|
|
253
207
|
"single",
|
|
254
208
|
"avoid-escape"
|
|
255
209
|
],
|
|
256
210
|
"require-await": "error",
|
|
257
|
-
semi: [
|
|
211
|
+
"semi": [
|
|
258
212
|
"warn",
|
|
259
213
|
"never"
|
|
260
214
|
]
|
|
261
215
|
}
|
|
262
216
|
};
|
|
263
217
|
|
|
264
|
-
// src/sonar/index.ts
|
|
265
|
-
var import_eslint_plugin_sonarjs = __toESM(require("eslint-plugin-sonarjs"), 1);
|
|
266
|
-
var sonarConfig = {
|
|
267
|
-
ignores: [
|
|
268
|
-
".yarn/**",
|
|
269
|
-
"jest.config.cjs",
|
|
270
|
-
"**/dist/**",
|
|
271
|
-
"dist",
|
|
272
|
-
"build/**",
|
|
273
|
-
"node_modules/**"
|
|
274
|
-
],
|
|
275
|
-
...import_eslint_plugin_sonarjs.default.configs.recommended,
|
|
276
|
-
rules: {
|
|
277
|
-
...import_eslint_plugin_sonarjs.default.configs.recommended.rules,
|
|
278
|
-
"sonarjs/no-small-switch": [
|
|
279
|
-
"off"
|
|
280
|
-
]
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
|
|
284
218
|
// src/typescript/index.ts
|
|
285
|
-
var import_eslint_plugin = __toESM(require("@
|
|
219
|
+
var import_eslint_plugin = __toESM(require("@stylistic/eslint-plugin"), 1);
|
|
220
|
+
var import_eslint_plugin2 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
|
|
286
221
|
var import_parser2 = __toESM(require("@typescript-eslint/parser"), 1);
|
|
287
222
|
var typescriptConfig = {
|
|
288
223
|
ignores: [
|
|
@@ -314,10 +249,12 @@ var typescriptConfig = {
|
|
|
314
249
|
}
|
|
315
250
|
},
|
|
316
251
|
plugins: {
|
|
317
|
-
"@typescript-eslint":
|
|
252
|
+
"@typescript-eslint": import_eslint_plugin2.default,
|
|
253
|
+
"@stylistic": import_eslint_plugin.default
|
|
318
254
|
},
|
|
319
255
|
rules: {
|
|
320
|
-
...
|
|
256
|
+
...import_eslint_plugin2.default.configs.recommended.rules,
|
|
257
|
+
...import_eslint_plugin.default.configs["recommended-flat"].rules,
|
|
321
258
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
322
259
|
"warn",
|
|
323
260
|
{
|
|
@@ -325,7 +262,21 @@ var typescriptConfig = {
|
|
|
325
262
|
}
|
|
326
263
|
],
|
|
327
264
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
328
|
-
"@
|
|
265
|
+
"@stylistic/brace-style": [
|
|
266
|
+
"warn",
|
|
267
|
+
"1tbs",
|
|
268
|
+
{
|
|
269
|
+
allowSingleLine: true
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"@stylistic/quotes": [
|
|
273
|
+
"warn",
|
|
274
|
+
"single",
|
|
275
|
+
{
|
|
276
|
+
avoidEscape: true
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"@stylistic/member-delimiter-style": [
|
|
329
280
|
"error",
|
|
330
281
|
{
|
|
331
282
|
multiline: {
|
|
@@ -474,7 +425,7 @@ var typescriptConfig = {
|
|
|
474
425
|
argsIgnorePattern: "^_"
|
|
475
426
|
}
|
|
476
427
|
],
|
|
477
|
-
"
|
|
428
|
+
"semi": [
|
|
478
429
|
"warn",
|
|
479
430
|
"never"
|
|
480
431
|
]
|
|
@@ -561,16 +512,81 @@ var workspacesConfig = {
|
|
|
561
512
|
}
|
|
562
513
|
};
|
|
563
514
|
|
|
515
|
+
// src/prettier/index.ts
|
|
516
|
+
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
517
|
+
var prettierConfig = {
|
|
518
|
+
ignores: [
|
|
519
|
+
".yarn/**",
|
|
520
|
+
"jest.config.cjs",
|
|
521
|
+
"**/dist/**",
|
|
522
|
+
"dist",
|
|
523
|
+
"build/**",
|
|
524
|
+
"node_modules/**"
|
|
525
|
+
],
|
|
526
|
+
files: [
|
|
527
|
+
"**/*.ts",
|
|
528
|
+
"**/*.d.ts",
|
|
529
|
+
"**/*.tsx",
|
|
530
|
+
"**/*.d.tsx",
|
|
531
|
+
"**/*.ts",
|
|
532
|
+
"**/*.d.ts",
|
|
533
|
+
"**/*.jsx",
|
|
534
|
+
"**/*.d.jsx",
|
|
535
|
+
"*.mjs",
|
|
536
|
+
"*.d.mjs",
|
|
537
|
+
"*.d.cjs"
|
|
538
|
+
],
|
|
539
|
+
plugins: {
|
|
540
|
+
prettier: import_eslint_plugin_prettier.default
|
|
541
|
+
},
|
|
542
|
+
rules: {
|
|
543
|
+
...(import_eslint_plugin_prettier.default.configs?.recommended).rules,
|
|
544
|
+
"prettier/prettier": [
|
|
545
|
+
"warn",
|
|
546
|
+
{
|
|
547
|
+
bracketSpacing: true,
|
|
548
|
+
endOfLine: "lf",
|
|
549
|
+
experimentalTernaries: true,
|
|
550
|
+
printWidth: 150,
|
|
551
|
+
semi: false,
|
|
552
|
+
singleQuote: true,
|
|
553
|
+
tabWidth: 2,
|
|
554
|
+
trailingComma: "all",
|
|
555
|
+
useTabs: false
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
// src/sonar/index.ts
|
|
562
|
+
var import_eslint_plugin_sonarjs = __toESM(require("eslint-plugin-sonarjs"), 1);
|
|
563
|
+
var sonarConfig = {
|
|
564
|
+
ignores: [
|
|
565
|
+
".yarn/**",
|
|
566
|
+
"jest.config.cjs",
|
|
567
|
+
"**/dist/**",
|
|
568
|
+
"dist",
|
|
569
|
+
"build/**",
|
|
570
|
+
"node_modules/**"
|
|
571
|
+
],
|
|
572
|
+
...import_eslint_plugin_sonarjs.default.configs,
|
|
573
|
+
rules: {
|
|
574
|
+
...import_eslint_plugin_sonarjs.default.configs.recommended.rules,
|
|
575
|
+
"sonarjs/no-small-switch": [
|
|
576
|
+
"off"
|
|
577
|
+
]
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
|
|
564
581
|
// src/index.ts
|
|
565
582
|
var config = [
|
|
566
|
-
//markdownConfig,
|
|
583
|
+
// markdownConfig,
|
|
567
584
|
typescriptConfig,
|
|
568
|
-
//jsonConfig,
|
|
585
|
+
// jsonConfig,
|
|
569
586
|
unicornConfig,
|
|
570
587
|
workspacesConfig,
|
|
571
588
|
rulesConfig,
|
|
572
|
-
prettierConfig,
|
|
573
|
-
importConfig
|
|
574
|
-
sonarConfig
|
|
589
|
+
// prettierConfig,
|
|
590
|
+
importConfig
|
|
575
591
|
];
|
|
576
592
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/import/index.ts","../../src/prettier/index.ts","../../src/rules/index.ts","../../src/sonar/index.ts","../../src/typescript/index.ts","../../src/unicorn/index.ts","../../src/workspaces/index.ts"],"sourcesContent":["import { Linter } from 'eslint'\n\nimport { importConfig } from './import/index.ts'\n//import { jsonConfig } from './json/index.ts'\n//import { markdownConfig } from './markdown/index.ts'\nimport { prettierConfig } from './prettier/index.ts'\nimport { rulesConfig } from './rules/index.ts'\nimport { sonarConfig } from './sonar/index.ts'\nimport { typescriptConfig } from './typescript/index.ts'\nimport { unicornConfig } from './unicorn/index.ts'\nimport { workspacesConfig } from './workspaces/index.ts'\n\nexport const config: Linter.FlatConfig[] = [\n //markdownConfig,\n typescriptConfig,\n //jsonConfig,\n unicornConfig,\n workspacesConfig,\n rulesConfig,\n prettierConfig,\n importConfig,\n sonarConfig,\n]\n\nexport { importConfig } from './import/index.ts'\nexport { prettierConfig } from './prettier/index.ts'\nexport { rulesConfig } from './rules/index.ts'\nexport { sonarConfig } from './sonar/index.ts'\nexport { typescriptConfig } from './typescript/index.ts'\nexport { unicornConfig } from './unicorn/index.ts'\nexport { workspacesConfig } from './workspaces/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { ESLint, Linter } from 'eslint'\nimport importPlugin from 'eslint-plugin-import'\nimport simpleImportSort from 'eslint-plugin-simple-import-sort'\n\nexport const importConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n files: ['**/*.ts', '**/*.d.ts', '**/*.tsx', '**/*.d.tsx', '**/*.ts', '**/*.d.ts', '**/*.jsx', '**/*.d.jsx'],\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\n },\n },\n plugins: {\n import: importPlugin as ESLint.Plugin,\n 'simple-import-sort': simpleImportSort,\n },\n settings: {\n 'import/resolver': {\n typescript: {\n project: './tsconfig-eslint.json',\n },\n },\n },\n rules: {\n ...(importPlugin.configs.recommended as ESLint.ConfigData).rules,\n 'simple-import-sort/imports': ['warn'],\n 'simple-import-sort/exports': ['warn'],\n 'import/default': ['off'],\n 'import/named': ['off'],\n 'import/namespace': ['off'],\n 'import/no-absolute-path': ['warn'],\n 'import/no-cycle': [\n 'warn',\n {\n maxDepth: 2,\n },\n ],\n 'import/no-default-export': ['warn'],\n 'import/no-deprecated': ['off'],\n 'import/no-internal-modules': [\n 'warn',\n {\n allow: [\n // Allow imports to any index.js file\n '**/index.js',\n '**/index.ts',\n '**/index.jsx',\n '**/index.tsx',\n ],\n },\n ],\n 'import/no-named-as-default-member': ['off'],\n 'import/no-named-as-default': ['off'],\n 'import/no-restricted-paths': ['warn'],\n 'import/no-self-import': ['warn'],\n 'import/no-useless-path-segments': ['warn'],\n },\n}\n","import { ESLint, Linter } from 'eslint'\nimport prettier from 'eslint-plugin-prettier'\n\nexport const prettierConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n files: ['**/*.ts', '**/*.d.ts', '**/*.tsx', '**/*.d.tsx', '**/*.ts', '**/*.d.ts', '**/*.jsx', '**/*.d.jsx', '*.mjs', '*.d.mjs', '*.d.cjs'],\n plugins: { prettier },\n rules: {\n ...(prettier.configs?.recommended as ESLint.Plugin).rules,\n 'prettier/prettier': [\n 'warn',\n {\n bracketSpacing: true,\n endOfLine: 'lf',\n experimentalTernaries: true,\n printWidth: 150,\n semi: false,\n singleQuote: true,\n tabWidth: 2,\n trailingComma: 'all',\n useTabs: false,\n },\n ],\n },\n}\n","import { Linter } from 'eslint'\n\nexport const rulesConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n rules: {\n complexity: ['error', 18],\n 'max-depth': ['error', 6],\n 'max-lines': [\n 'error',\n {\n max: 512,\n skipBlankLines: true,\n },\n ],\n 'max-nested-callbacks': ['error', 6],\n 'max-statements': ['error', 32],\n 'no-restricted-imports': [\n 'warn',\n {\n paths: ['.', '..', '../..', '../../..', '../../../..', '../../../../..', '../../../../../..', '../../../../../../..'],\n },\n ],\n //'no-secrets/no-secrets': ['off'],\n 'no-tabs': ['error'],\n 'no-unused-vars': 'off',\n 'no-useless-escape': 'off',\n quotes: [2, 'single', 'avoid-escape'],\n 'require-await': 'error',\n semi: ['warn', 'never'],\n //'sort-keys-fix/sort-keys-fix': 'warn',\n },\n}\n","import { Linter } from 'eslint'\nimport sonarjsPlugin from 'eslint-plugin-sonarjs'\n\nexport const sonarConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n ...sonarjsPlugin.configs.recommended,\n rules: {\n ...sonarjsPlugin.configs.recommended.rules,\n 'sonarjs/no-small-switch': ['off'],\n },\n}\n","import tsPlugin from '@typescript-eslint/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport { ESLint, Linter } from 'eslint'\n\nexport const typescriptConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n files: ['**/*.ts', '**/*.d.ts', '**/*.tsx', '**/*.d.tsx', '**/*.ts', '**/*.d.ts', '**/*.jsx', '**/*.d.jsx'],\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\n },\n },\n plugins: {\n '@typescript-eslint': tsPlugin as unknown as ESLint.Plugin,\n },\n rules: {\n ...tsPlugin.configs.recommended.rules,\n '@typescript-eslint/explicit-member-accessibility': ['warn', { accessibility: 'no-public' }],\n '@typescript-eslint/explicit-module-boundary-types': 'off',\n '@typescript-eslint/member-delimiter-style': [\n 'error',\n {\n multiline: {\n delimiter: 'none',\n requireLast: true,\n },\n singleline: {\n delimiter: 'semi',\n requireLast: false,\n },\n },\n ],\n '@typescript-eslint/member-ordering': [\n 'warn',\n {\n default: {\n memberTypes: [\n 'signature',\n 'call-signature',\n 'public-static-field',\n 'protected-static-field',\n 'private-static-field',\n 'public-decorated-field',\n 'protected-decorated-field',\n 'private-decorated-field',\n 'public-instance-field',\n 'protected-instance-field',\n 'private-instance-field',\n 'public-abstract-field',\n 'protected-abstract-field',\n 'public-field',\n 'protected-field',\n 'private-field',\n 'static-field',\n 'instance-field',\n 'abstract-field',\n 'decorated-field',\n 'field',\n 'public-constructor',\n 'protected-constructor',\n 'private-constructor',\n 'constructor',\n ['public-static-get', 'public-static-set'],\n ['protected-static-get', 'protected-static-set'],\n ['private-static-get', 'private-static-set'],\n ['public-decorated-get', 'public-decorated-set'],\n ['protected-decorated-get', 'protected-decorated-set'],\n ['private-decorated-get', 'private-decorated-set'],\n ['public-instance-get', 'public-instance-set'],\n ['protected-instance-get', 'protected-instance-set'],\n ['private-instance-get', 'private-instance-set'],\n ['public-abstract-get', 'public-abstract-set'],\n ['protected-abstract-get', 'protected-abstract-set'],\n ['public-get', 'public-set'],\n ['protected-get', 'protected-set'],\n ['private-get', 'private-set'],\n ['static-get', 'static-set'],\n ['instance-get', 'instance-set'],\n ['abstract-get', 'abstract-set'],\n ['decorated-get', 'decorated-set'],\n 'get',\n 'set',\n 'public-static-method',\n 'protected-static-method',\n 'private-static-method',\n 'public-decorated-method',\n 'protected-decorated-method',\n 'private-decorated-method',\n 'public-instance-method',\n 'protected-instance-method',\n 'private-instance-method',\n 'public-abstract-method',\n 'protected-abstract-method',\n 'public-method',\n 'protected-method',\n 'private-method',\n 'static-method',\n 'instance-method',\n 'abstract-method',\n 'decorated-method',\n 'method',\n ],\n order: 'alphabetically',\n },\n },\n ],\n '@typescript-eslint/no-floating-promises': 'error',\n '@typescript-eslint/no-misused-promises': 'error',\n '@typescript-eslint/no-unused-vars': [\n 'warn',\n {\n argsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/semi': ['warn', 'never'],\n },\n}\n","import { ESLint, Linter } from 'eslint'\nimport unicornPlugin from 'eslint-plugin-unicorn'\n\nexport const unicornConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n plugins: { unicorn: unicornPlugin as ESLint.Plugin },\n rules: {\n ...(unicornPlugin.configs['flat/recommended'] as ESLint.ConfigData).rules,\n 'unicorn/catch-error-name': ['off'],\n 'unicorn/consistent-function-scoping': ['off'],\n 'unicorn/filename-case': ['off'],\n 'unicorn/new-for-builtins': ['off'],\n 'unicorn/no-array-callback-reference': ['off'],\n 'unicorn/no-await-expression-member': ['off'],\n 'unicorn/no-nested-ternary': ['off'],\n 'unicorn/no-null': ['off'],\n 'unicorn/number-literal-case': ['off'],\n 'unicorn/prefer-module': ['off'],\n 'unicorn/prefer-top-level-await': ['off'],\n 'unicorn/prevent-abbreviations': ['off'],\n },\n}\n","import { ESLint, Linter } from 'eslint'\nimport workspacesPlugin from 'eslint-plugin-workspaces'\n\nexport const workspacesConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n plugins: { workspaces: workspacesPlugin as ESLint.Plugin },\n rules: {\n ...(workspacesPlugin.configs.recommended as ESLint.ConfigData).rules,\n 'workspaces/no-relative-imports': ['off'],\n 'workspaces/require-dependency': ['off'],\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;;;;;;;ACFA,oBAAqB;AAErB,kCAAyB;AACzB,8CAA6B;AAEtB,IAAMA,eAAkC;EAC7CC,SAAS;IAAC;IAAY;IAAmB;IAAc;IAAQ;IAAY;;EAC3EC,OAAO;IAAC;IAAW;IAAa;IAAY;IAAc;IAAW;IAAa;IAAY;;EAC9FC,iBAAiB;IACfC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,SAAS;IACPC,QAAQC,4BA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QAAiBE,QAAQC,YAAkCF;IAC/D,kCAAkC;MAAC;;IACnC,iCAAiC;MAAC;;EACpC;AACF;;;APCO,IAAMG,SAA8B;;EAEzCC;;EAEAC;EACAC;EACAC;EACAC;EACAC;EACAC;;","names":["importConfig","ignores","files","languageOptions","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","plugins","import","importPlugin","simpleImportSort","settings","typescript","rules","configs","recommended","maxDepth","allow","prettierConfig","ignores","files","plugins","prettier","rules","configs","recommended","bracketSpacing","endOfLine","experimentalTernaries","printWidth","semi","singleQuote","tabWidth","trailingComma","useTabs","rulesConfig","ignores","rules","complexity","max","skipBlankLines","paths","quotes","semi","sonarConfig","ignores","sonarjsPlugin","configs","recommended","rules","import_parser","typescriptConfig","ignores","files","languageOptions","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","plugins","tsPlugin","rules","configs","recommended","accessibility","multiline","delimiter","requireLast","singleline","default","memberTypes","order","argsIgnorePattern","unicornConfig","ignores","plugins","unicorn","unicornPlugin","rules","configs","workspacesConfig","ignores","plugins","workspaces","workspacesPlugin","rules","configs","recommended","config","typescriptConfig","unicornConfig","workspacesConfig","rulesConfig","prettierConfig","importConfig","sonarConfig"]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/import/index.ts","../../src/rules/index.ts","../../src/typescript/index.ts","../../src/unicorn/index.ts","../../src/workspaces/index.ts","../../src/prettier/index.ts","../../src/sonar/index.ts"],"sourcesContent":["import { Linter } from 'eslint'\n\nimport { importConfig } from './import/index.ts'\n// import { jsonConfig } from './json/index.ts'\n// import { markdownConfig } from './markdown/index.ts'\n// import { prettierConfig } from './prettier/index.ts'\nimport { rulesConfig } from './rules/index.ts'\n// import { sonarConfig } from './sonar/index.ts'\nimport { typescriptConfig } from './typescript/index.ts'\nimport { unicornConfig } from './unicorn/index.ts'\nimport { workspacesConfig } from './workspaces/index.ts'\n\nexport const config: Linter.Config[] = [\n // markdownConfig,\n typescriptConfig,\n // jsonConfig,\n unicornConfig,\n workspacesConfig,\n rulesConfig,\n // prettierConfig,\n importConfig,\n // sonarConfig,\n]\n\nexport { importConfig } from './import/index.ts'\nexport { prettierConfig } from './prettier/index.ts'\nexport { rulesConfig } from './rules/index.ts'\nexport { sonarConfig } from './sonar/index.ts'\nexport { typescriptConfig } from './typescript/index.ts'\nexport { unicornConfig } from './unicorn/index.ts'\nexport { workspacesConfig } from './workspaces/index.ts'\n","import tsParser from '@typescript-eslint/parser'\nimport { ESLint, Linter } from 'eslint'\nimport importPlugin from 'eslint-plugin-import'\nimport simpleImportSort from 'eslint-plugin-simple-import-sort'\n\nexport const importConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n files: ['**/*.ts', '**/*.d.ts', '**/*.tsx', '**/*.d.tsx', '**/*.ts', '**/*.d.ts', '**/*.jsx', '**/*.d.jsx'],\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\n },\n },\n plugins: {\n 'import': importPlugin as ESLint.Plugin,\n 'simple-import-sort': simpleImportSort,\n },\n settings: {\n 'import/resolver': {\n typescript: {\n project: './tsconfig-eslint.json',\n },\n },\n },\n rules: {\n ...(importPlugin.configs.recommended as ESLint.ConfigData).rules,\n 'simple-import-sort/imports': ['warn'],\n 'simple-import-sort/exports': ['warn'],\n 'import/default': ['off'],\n 'import/named': ['off'],\n 'import/namespace': ['off'],\n 'import/no-absolute-path': ['warn'],\n 'import/no-cycle': [\n 'warn',\n {\n maxDepth: 2,\n },\n ],\n 'import/no-default-export': ['warn'],\n 'import/no-deprecated': ['off'],\n 'import/no-internal-modules': [\n 'warn',\n {\n allow: [\n // Allow imports to any index.js file\n '**/index.js',\n '**/index.ts',\n '**/index.jsx',\n '**/index.tsx',\n ],\n },\n ],\n 'import/no-named-as-default-member': ['off'],\n 'import/no-named-as-default': ['off'],\n 'import/no-restricted-paths': ['warn'],\n 'import/no-self-import': ['warn'],\n 'import/no-useless-path-segments': ['warn'],\n },\n}\n","import { Linter } from 'eslint'\n\nexport const rulesConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n rules: {\n 'complexity': ['error', 18],\n 'max-depth': ['error', 6],\n 'max-lines': [\n 'error',\n {\n max: 512,\n skipBlankLines: true,\n },\n ],\n 'max-nested-callbacks': ['error', 6],\n 'max-statements': ['error', 32],\n 'no-restricted-imports': [\n 'warn',\n {\n paths: ['.', '..', '../..', '../../..', '../../../..', '../../../../..', '../../../../../..', '../../../../../../..'],\n },\n ],\n // 'no-secrets/no-secrets': ['off'],\n 'no-tabs': ['error'],\n 'no-unused-vars': 'off',\n 'no-useless-escape': 'off',\n 'quotes': [2, 'single', 'avoid-escape'],\n 'require-await': 'error',\n 'semi': ['warn', 'never'],\n // 'sort-keys-fix/sort-keys-fix': 'warn',\n },\n}\n","import esStylistic from '@stylistic/eslint-plugin'\nimport tsPlugin from '@typescript-eslint/eslint-plugin'\nimport tsParser from '@typescript-eslint/parser'\nimport { ESLint, Linter } from 'eslint'\n\nexport const typescriptConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n files: ['**/*.ts', '**/*.d.ts', '**/*.tsx', '**/*.d.tsx', '**/*.ts', '**/*.d.ts', '**/*.jsx', '**/*.d.jsx'],\n languageOptions: {\n parser: tsParser,\n parserOptions: {\n ecmaFeatures: { modules: true },\n ecmaVersion: 'latest',\n project: './tsconfig-eslint.json',\n },\n },\n plugins: {\n '@typescript-eslint': tsPlugin as unknown as ESLint.Plugin,\n '@stylistic': esStylistic,\n },\n rules: {\n ...tsPlugin.configs.recommended.rules,\n ...esStylistic.configs['recommended-flat'].rules,\n '@typescript-eslint/explicit-member-accessibility': ['warn', { accessibility: 'no-public' }],\n '@typescript-eslint/explicit-module-boundary-types': 'off',\n '@stylistic/brace-style': ['warn', '1tbs', { allowSingleLine: true }],\n '@stylistic/quotes': ['warn', 'single', { avoidEscape: true }],\n '@stylistic/member-delimiter-style': [\n 'error',\n {\n multiline: {\n delimiter: 'none',\n requireLast: true,\n },\n singleline: {\n delimiter: 'semi',\n requireLast: false,\n },\n },\n ],\n '@typescript-eslint/member-ordering': [\n 'warn',\n {\n default: {\n memberTypes: [\n 'signature',\n 'call-signature',\n 'public-static-field',\n 'protected-static-field',\n 'private-static-field',\n 'public-decorated-field',\n 'protected-decorated-field',\n 'private-decorated-field',\n 'public-instance-field',\n 'protected-instance-field',\n 'private-instance-field',\n 'public-abstract-field',\n 'protected-abstract-field',\n 'public-field',\n 'protected-field',\n 'private-field',\n 'static-field',\n 'instance-field',\n 'abstract-field',\n 'decorated-field',\n 'field',\n 'public-constructor',\n 'protected-constructor',\n 'private-constructor',\n 'constructor',\n ['public-static-get', 'public-static-set'],\n ['protected-static-get', 'protected-static-set'],\n ['private-static-get', 'private-static-set'],\n ['public-decorated-get', 'public-decorated-set'],\n ['protected-decorated-get', 'protected-decorated-set'],\n ['private-decorated-get', 'private-decorated-set'],\n ['public-instance-get', 'public-instance-set'],\n ['protected-instance-get', 'protected-instance-set'],\n ['private-instance-get', 'private-instance-set'],\n ['public-abstract-get', 'public-abstract-set'],\n ['protected-abstract-get', 'protected-abstract-set'],\n ['public-get', 'public-set'],\n ['protected-get', 'protected-set'],\n ['private-get', 'private-set'],\n ['static-get', 'static-set'],\n ['instance-get', 'instance-set'],\n ['abstract-get', 'abstract-set'],\n ['decorated-get', 'decorated-set'],\n 'get',\n 'set',\n 'public-static-method',\n 'protected-static-method',\n 'private-static-method',\n 'public-decorated-method',\n 'protected-decorated-method',\n 'private-decorated-method',\n 'public-instance-method',\n 'protected-instance-method',\n 'private-instance-method',\n 'public-abstract-method',\n 'protected-abstract-method',\n 'public-method',\n 'protected-method',\n 'private-method',\n 'static-method',\n 'instance-method',\n 'abstract-method',\n 'decorated-method',\n 'method',\n ],\n order: 'alphabetically',\n },\n },\n ],\n '@typescript-eslint/no-floating-promises': 'error',\n '@typescript-eslint/no-misused-promises': 'error',\n '@typescript-eslint/no-unused-vars': [\n 'warn',\n {\n argsIgnorePattern: '^_',\n },\n ],\n 'semi': ['warn', 'never'],\n },\n}\n","import { ESLint, Linter } from 'eslint'\nimport unicornPlugin from 'eslint-plugin-unicorn'\n\nexport const unicornConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n plugins: { unicorn: unicornPlugin as ESLint.Plugin },\n rules: {\n ...(unicornPlugin.configs['flat/recommended'] as ESLint.ConfigData).rules,\n 'unicorn/catch-error-name': ['off'],\n 'unicorn/consistent-function-scoping': ['off'],\n 'unicorn/filename-case': ['off'],\n 'unicorn/new-for-builtins': ['off'],\n 'unicorn/no-array-callback-reference': ['off'],\n 'unicorn/no-await-expression-member': ['off'],\n 'unicorn/no-nested-ternary': ['off'],\n 'unicorn/no-null': ['off'],\n 'unicorn/number-literal-case': ['off'],\n 'unicorn/prefer-module': ['off'],\n 'unicorn/prefer-top-level-await': ['off'],\n 'unicorn/prevent-abbreviations': ['off'],\n },\n}\n","import { ESLint, Linter } from 'eslint'\nimport workspacesPlugin from 'eslint-plugin-workspaces'\n\nexport const workspacesConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n plugins: { workspaces: workspacesPlugin as ESLint.Plugin },\n rules: {\n ...(workspacesPlugin.configs.recommended as ESLint.ConfigData).rules,\n 'workspaces/no-relative-imports': ['off'],\n 'workspaces/require-dependency': ['off'],\n },\n}\n","import { ESLint, Linter } from 'eslint'\nimport prettier from 'eslint-plugin-prettier'\n\nexport const prettierConfig: Linter.FlatConfig = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n files: ['**/*.ts', '**/*.d.ts', '**/*.tsx', '**/*.d.tsx', '**/*.ts', '**/*.d.ts', '**/*.jsx', '**/*.d.jsx', '*.mjs', '*.d.mjs', '*.d.cjs'],\n plugins: { prettier },\n rules: {\n ...(prettier.configs?.recommended as ESLint.Plugin).rules,\n 'prettier/prettier': [\n 'warn',\n {\n bracketSpacing: true,\n endOfLine: 'lf',\n experimentalTernaries: true,\n printWidth: 150,\n semi: false,\n singleQuote: true,\n tabWidth: 2,\n trailingComma: 'all',\n useTabs: false,\n },\n ],\n },\n}\n","import { Linter } from 'eslint'\nimport sonarjsPlugin from 'eslint-plugin-sonarjs'\n\nexport const sonarConfig: Linter.Config = {\n ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'],\n ...sonarjsPlugin.configs,\n rules: {\n ...sonarjsPlugin.configs.recommended.rules,\n 'sonarjs/no-small-switch': ['off'],\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;;;;;;;ACFA,oBAAqB;AAErB,kCAAyB;AACzB,8CAA6B;AAEtB,IAAMA,eAAkC;EAC7CC,SAAS;IAAC;IAAY;IAAmB;IAAc;IAAQ;IAAY;;EAC3EC,OAAO;IAAC;IAAW;IAAa;IAAY;IAAc;IAAW;IAAa;IAAY;;EAC9FC,iBAAiB;IACfC,QAAQC,cAAAA;IACRC,eAAe;MACbC,cAAc;QAAEC,SAAS;MAAK;MAC9BC,aAAa;MACbC,SAAS;IACX;EACF;EACAC,SAAS;IACP,UAAUC,4BAAAA;IACV,sBAAsBC,wCAAAA;EACxB;EACAC,UAAU;IACR,mBAAmB;MACjBC,YAAY;QACVL,SAAS;MACX;IACF;EACF;EACAM,OAAO;IACL,GAAIJ,4BAAAA,QAAaK,QAAQC,YAAkCF;IAC3D,8BAA8B;MAAC;;IAC/B,8BAA8B;MAAC;;IAC/B,kBAAkB;MAAC;;IACnB,gBAAgB;MAAC;;IACjB,o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B;MAAC;;EAC9B;AACF;;;APEO,IAAME,SAA0B;;EAErCC;;EAEAC;EACAC;EACAC;;EAEAC;;","names":["importConfig","ignores","files","languageOptions","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","plugins","importPlugin","simpleImportSort","settings","typescript","rules","configs","recommended","maxDepth","allow","rulesConfig","ignores","rules","max","skipBlankLines","paths","import_eslint_plugin","import_parser","typescriptConfig","ignores","files","languageOptions","parser","tsParser","parserOptions","ecmaFeatures","modules","ecmaVersion","project","plugins","tsPlugin","esStylistic","rules","configs","recommended","accessibility","allowSingleLine","avoidEscape","multiline","delimiter","requireLast","singleline","default","memberTypes","order","argsIgnorePattern","unicornConfig","ignores","plugins","unicorn","unicornPlugin","rules","configs","workspacesConfig","ignores","plugins","workspaces","workspacesPlugin","rules","configs","recommended","prettierConfig","ignores","files","plugins","prettier","rules","configs","recommended","bracketSpacing","endOfLine","experimentalTernaries","printWidth","semi","singleQuote","tabWidth","trailingComma","useTabs","sonarConfig","ignores","sonarjsPlugin","configs","rules","recommended","config","typescriptConfig","unicornConfig","workspacesConfig","rulesConfig","importConfig"]}
|
package/dist/neutral/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
-
export declare const config: Linter.
|
|
2
|
+
export declare const config: Linter.Config[];
|
|
3
3
|
export { importConfig } from './import/index.ts';
|
|
4
4
|
export { prettierConfig } from './prettier/index.ts';
|
|
5
5
|
export { rulesConfig } from './rules/index.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAY/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAY/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAUjC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA"}
|
package/dist/neutral/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
-
export declare const config: Linter.
|
|
2
|
+
export declare const config: Linter.Config[];
|
|
3
3
|
export { importConfig } from './import/index.ts';
|
|
4
4
|
export { prettierConfig } from './prettier/index.ts';
|
|
5
5
|
export { rulesConfig } from './rules/index.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAY/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAY/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAUjC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
|
-
export declare const config: Linter.
|
|
2
|
+
export declare const config: Linter.Config[];
|
|
3
3
|
export { importConfig } from './import/index.ts';
|
|
4
4
|
export { prettierConfig } from './prettier/index.ts';
|
|
5
5
|
export { rulesConfig } from './rules/index.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAY/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAY/B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAUjC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ var importConfig = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
plugins: {
|
|
35
|
-
import: importPlugin,
|
|
35
|
+
"import": importPlugin,
|
|
36
36
|
"simple-import-sort": simpleImportSort
|
|
37
37
|
},
|
|
38
38
|
settings: {
|
|
@@ -104,52 +104,6 @@ var importConfig = {
|
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
// src/prettier/index.ts
|
|
108
|
-
import prettier from "eslint-plugin-prettier";
|
|
109
|
-
var prettierConfig = {
|
|
110
|
-
ignores: [
|
|
111
|
-
".yarn/**",
|
|
112
|
-
"jest.config.cjs",
|
|
113
|
-
"**/dist/**",
|
|
114
|
-
"dist",
|
|
115
|
-
"build/**",
|
|
116
|
-
"node_modules/**"
|
|
117
|
-
],
|
|
118
|
-
files: [
|
|
119
|
-
"**/*.ts",
|
|
120
|
-
"**/*.d.ts",
|
|
121
|
-
"**/*.tsx",
|
|
122
|
-
"**/*.d.tsx",
|
|
123
|
-
"**/*.ts",
|
|
124
|
-
"**/*.d.ts",
|
|
125
|
-
"**/*.jsx",
|
|
126
|
-
"**/*.d.jsx",
|
|
127
|
-
"*.mjs",
|
|
128
|
-
"*.d.mjs",
|
|
129
|
-
"*.d.cjs"
|
|
130
|
-
],
|
|
131
|
-
plugins: {
|
|
132
|
-
prettier
|
|
133
|
-
},
|
|
134
|
-
rules: {
|
|
135
|
-
...(prettier.configs?.recommended).rules,
|
|
136
|
-
"prettier/prettier": [
|
|
137
|
-
"warn",
|
|
138
|
-
{
|
|
139
|
-
bracketSpacing: true,
|
|
140
|
-
endOfLine: "lf",
|
|
141
|
-
experimentalTernaries: true,
|
|
142
|
-
printWidth: 150,
|
|
143
|
-
semi: false,
|
|
144
|
-
singleQuote: true,
|
|
145
|
-
tabWidth: 2,
|
|
146
|
-
trailingComma: "all",
|
|
147
|
-
useTabs: false
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
|
|
153
107
|
// src/rules/index.ts
|
|
154
108
|
var rulesConfig = {
|
|
155
109
|
ignores: [
|
|
@@ -161,7 +115,7 @@ var rulesConfig = {
|
|
|
161
115
|
"node_modules/**"
|
|
162
116
|
],
|
|
163
117
|
rules: {
|
|
164
|
-
complexity: [
|
|
118
|
+
"complexity": [
|
|
165
119
|
"error",
|
|
166
120
|
18
|
|
167
121
|
],
|
|
@@ -199,46 +153,27 @@ var rulesConfig = {
|
|
|
199
153
|
]
|
|
200
154
|
}
|
|
201
155
|
],
|
|
202
|
-
//'no-secrets/no-secrets': ['off'],
|
|
156
|
+
// 'no-secrets/no-secrets': ['off'],
|
|
203
157
|
"no-tabs": [
|
|
204
158
|
"error"
|
|
205
159
|
],
|
|
206
160
|
"no-unused-vars": "off",
|
|
207
161
|
"no-useless-escape": "off",
|
|
208
|
-
quotes: [
|
|
162
|
+
"quotes": [
|
|
209
163
|
2,
|
|
210
164
|
"single",
|
|
211
165
|
"avoid-escape"
|
|
212
166
|
],
|
|
213
167
|
"require-await": "error",
|
|
214
|
-
semi: [
|
|
168
|
+
"semi": [
|
|
215
169
|
"warn",
|
|
216
170
|
"never"
|
|
217
171
|
]
|
|
218
172
|
}
|
|
219
173
|
};
|
|
220
174
|
|
|
221
|
-
// src/sonar/index.ts
|
|
222
|
-
import sonarjsPlugin from "eslint-plugin-sonarjs";
|
|
223
|
-
var sonarConfig = {
|
|
224
|
-
ignores: [
|
|
225
|
-
".yarn/**",
|
|
226
|
-
"jest.config.cjs",
|
|
227
|
-
"**/dist/**",
|
|
228
|
-
"dist",
|
|
229
|
-
"build/**",
|
|
230
|
-
"node_modules/**"
|
|
231
|
-
],
|
|
232
|
-
...sonarjsPlugin.configs.recommended,
|
|
233
|
-
rules: {
|
|
234
|
-
...sonarjsPlugin.configs.recommended.rules,
|
|
235
|
-
"sonarjs/no-small-switch": [
|
|
236
|
-
"off"
|
|
237
|
-
]
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
|
|
241
175
|
// src/typescript/index.ts
|
|
176
|
+
import esStylistic from "@stylistic/eslint-plugin";
|
|
242
177
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
|
243
178
|
import tsParser2 from "@typescript-eslint/parser";
|
|
244
179
|
var typescriptConfig = {
|
|
@@ -271,10 +206,12 @@ var typescriptConfig = {
|
|
|
271
206
|
}
|
|
272
207
|
},
|
|
273
208
|
plugins: {
|
|
274
|
-
"@typescript-eslint": tsPlugin
|
|
209
|
+
"@typescript-eslint": tsPlugin,
|
|
210
|
+
"@stylistic": esStylistic
|
|
275
211
|
},
|
|
276
212
|
rules: {
|
|
277
213
|
...tsPlugin.configs.recommended.rules,
|
|
214
|
+
...esStylistic.configs["recommended-flat"].rules,
|
|
278
215
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
279
216
|
"warn",
|
|
280
217
|
{
|
|
@@ -282,7 +219,21 @@ var typescriptConfig = {
|
|
|
282
219
|
}
|
|
283
220
|
],
|
|
284
221
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
285
|
-
"@
|
|
222
|
+
"@stylistic/brace-style": [
|
|
223
|
+
"warn",
|
|
224
|
+
"1tbs",
|
|
225
|
+
{
|
|
226
|
+
allowSingleLine: true
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"@stylistic/quotes": [
|
|
230
|
+
"warn",
|
|
231
|
+
"single",
|
|
232
|
+
{
|
|
233
|
+
avoidEscape: true
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"@stylistic/member-delimiter-style": [
|
|
286
237
|
"error",
|
|
287
238
|
{
|
|
288
239
|
multiline: {
|
|
@@ -431,7 +382,7 @@ var typescriptConfig = {
|
|
|
431
382
|
argsIgnorePattern: "^_"
|
|
432
383
|
}
|
|
433
384
|
],
|
|
434
|
-
"
|
|
385
|
+
"semi": [
|
|
435
386
|
"warn",
|
|
436
387
|
"never"
|
|
437
388
|
]
|
|
@@ -518,17 +469,82 @@ var workspacesConfig = {
|
|
|
518
469
|
}
|
|
519
470
|
};
|
|
520
471
|
|
|
472
|
+
// src/prettier/index.ts
|
|
473
|
+
import prettier from "eslint-plugin-prettier";
|
|
474
|
+
var prettierConfig = {
|
|
475
|
+
ignores: [
|
|
476
|
+
".yarn/**",
|
|
477
|
+
"jest.config.cjs",
|
|
478
|
+
"**/dist/**",
|
|
479
|
+
"dist",
|
|
480
|
+
"build/**",
|
|
481
|
+
"node_modules/**"
|
|
482
|
+
],
|
|
483
|
+
files: [
|
|
484
|
+
"**/*.ts",
|
|
485
|
+
"**/*.d.ts",
|
|
486
|
+
"**/*.tsx",
|
|
487
|
+
"**/*.d.tsx",
|
|
488
|
+
"**/*.ts",
|
|
489
|
+
"**/*.d.ts",
|
|
490
|
+
"**/*.jsx",
|
|
491
|
+
"**/*.d.jsx",
|
|
492
|
+
"*.mjs",
|
|
493
|
+
"*.d.mjs",
|
|
494
|
+
"*.d.cjs"
|
|
495
|
+
],
|
|
496
|
+
plugins: {
|
|
497
|
+
prettier
|
|
498
|
+
},
|
|
499
|
+
rules: {
|
|
500
|
+
...(prettier.configs?.recommended).rules,
|
|
501
|
+
"prettier/prettier": [
|
|
502
|
+
"warn",
|
|
503
|
+
{
|
|
504
|
+
bracketSpacing: true,
|
|
505
|
+
endOfLine: "lf",
|
|
506
|
+
experimentalTernaries: true,
|
|
507
|
+
printWidth: 150,
|
|
508
|
+
semi: false,
|
|
509
|
+
singleQuote: true,
|
|
510
|
+
tabWidth: 2,
|
|
511
|
+
trailingComma: "all",
|
|
512
|
+
useTabs: false
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
// src/sonar/index.ts
|
|
519
|
+
import sonarjsPlugin from "eslint-plugin-sonarjs";
|
|
520
|
+
var sonarConfig = {
|
|
521
|
+
ignores: [
|
|
522
|
+
".yarn/**",
|
|
523
|
+
"jest.config.cjs",
|
|
524
|
+
"**/dist/**",
|
|
525
|
+
"dist",
|
|
526
|
+
"build/**",
|
|
527
|
+
"node_modules/**"
|
|
528
|
+
],
|
|
529
|
+
...sonarjsPlugin.configs,
|
|
530
|
+
rules: {
|
|
531
|
+
...sonarjsPlugin.configs.recommended.rules,
|
|
532
|
+
"sonarjs/no-small-switch": [
|
|
533
|
+
"off"
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
|
|
521
538
|
// src/index.ts
|
|
522
539
|
var config = [
|
|
523
|
-
//markdownConfig,
|
|
540
|
+
// markdownConfig,
|
|
524
541
|
typescriptConfig,
|
|
525
|
-
//jsonConfig,
|
|
542
|
+
// jsonConfig,
|
|
526
543
|
unicornConfig,
|
|
527
544
|
workspacesConfig,
|
|
528
545
|
rulesConfig,
|
|
529
|
-
prettierConfig,
|
|
530
|
-
importConfig
|
|
531
|
-
sonarConfig
|
|
546
|
+
// prettierConfig,
|
|
547
|
+
importConfig
|
|
532
548
|
];
|
|
533
549
|
export {
|
|
534
550
|
config,
|