lint-suite 1.0.3 → 1.0.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/index.cjs +387 -51
- package/index.cjs.map +4 -4
- package/index.d.ts +304 -9
- package/index.d.ts.map +1 -1
- package/index.js +386 -58
- package/index.js.map +4 -4
- package/lib/angular-template.d.ts +2 -0
- package/lib/angular-template.d.ts.map +1 -1
- package/lib/base.d.ts.map +1 -1
- package/lib/javascript.d.ts +1 -1
- package/lib/javascript.d.ts.map +1 -1
- package/lib/jest.d.ts.map +1 -1
- package/lib/json.d.ts.map +1 -1
- package/lib/rules/explicit-accessibility.d.ts +10 -0
- package/lib/rules/explicit-accessibility.d.ts.map +1 -0
- package/lib/storybook.d.ts.map +1 -1
- package/lib/typescript.d.ts +227 -13
- package/lib/typescript.d.ts.map +1 -1
- package/package.json +6 -14
package/index.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
-
}) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined")
|
|
5
|
-
return require.apply(this, arguments);
|
|
6
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
-
});
|
|
8
|
-
|
|
9
1
|
// packages/lint-suite/src/lib/angular-template.ts
|
|
10
2
|
import nx from "@nx/eslint-plugin";
|
|
11
3
|
var angularTemplate = [
|
|
@@ -13,6 +5,8 @@ var angularTemplate = [
|
|
|
13
5
|
{
|
|
14
6
|
files: ["**/*.html"],
|
|
15
7
|
rules: {
|
|
8
|
+
"@angular-eslint/template/no-any": "error",
|
|
9
|
+
"@angular-eslint/template/no-duplicate-attributes": "error",
|
|
16
10
|
"@angular-eslint/template/button-has-type": "error",
|
|
17
11
|
"@angular-eslint/template/no-positive-tabindex": "error",
|
|
18
12
|
"@angular-eslint/template/valid-aria": "error",
|
|
@@ -64,18 +58,8 @@ var angular = [
|
|
|
64
58
|
|
|
65
59
|
// packages/lint-suite/src/lib/base.ts
|
|
66
60
|
import nx3 from "@nx/eslint-plugin";
|
|
67
|
-
import importPlugin from "eslint-plugin-import";
|
|
68
61
|
import stylistic from "@stylistic/eslint-plugin";
|
|
69
|
-
import
|
|
70
|
-
var packageExists = (name) => {
|
|
71
|
-
try {
|
|
72
|
-
__require.resolve(name);
|
|
73
|
-
return true;
|
|
74
|
-
} catch {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
var isPrettierAvailable = packageExists("prettier") && packageExists("eslint-config-prettier");
|
|
62
|
+
import importPluginX from "eslint-plugin-import-x";
|
|
79
63
|
var base = [
|
|
80
64
|
...nx3.configs["flat/base"],
|
|
81
65
|
{
|
|
@@ -89,7 +73,7 @@ var base = [
|
|
|
89
73
|
"**/*.cts",
|
|
90
74
|
"**/*.mts"
|
|
91
75
|
],
|
|
92
|
-
...
|
|
76
|
+
...importPluginX.flatConfigs.recommended
|
|
93
77
|
},
|
|
94
78
|
{
|
|
95
79
|
files: [
|
|
@@ -116,8 +100,43 @@ var base = [
|
|
|
116
100
|
"**/*.mts"
|
|
117
101
|
],
|
|
118
102
|
rules: {
|
|
119
|
-
"no-
|
|
103
|
+
"no-param-reassign": "error",
|
|
104
|
+
"no-alert": "error",
|
|
105
|
+
"no-console": ["warn", { allow: ["warn", "error"] }],
|
|
106
|
+
"no-debugger": "error",
|
|
107
|
+
eqeqeq: ["error", "always", { null: "ignore" }],
|
|
108
|
+
curly: ["error", "all"],
|
|
109
|
+
"prefer-const": ["error", { destructuring: "all" }],
|
|
110
|
+
"no-var": "error",
|
|
111
|
+
"object-shorthand": "error",
|
|
112
|
+
"prefer-arrow-callback": "error",
|
|
113
|
+
"no-useless-concat": "error",
|
|
114
|
+
"prefer-template": "error",
|
|
115
|
+
"no-nested-ternary": "error",
|
|
116
|
+
"no-return-await": "error",
|
|
117
|
+
"no-else-return": ["error", { allowElseIf: false }],
|
|
118
|
+
// Prefer early returns
|
|
119
|
+
"no-multi-assign": "error",
|
|
120
|
+
// Disallow chaining assignments
|
|
121
|
+
radix: "error",
|
|
122
|
+
// Require radix parameter for parseInt()
|
|
123
|
+
yoda: "error",
|
|
124
|
+
// Disallow yoda conditions (`if ("red" === color)`)
|
|
125
|
+
complexity: ["warn", 10],
|
|
126
|
+
// Warn if function complexity is high
|
|
127
|
+
"max-depth": ["warn", 4],
|
|
128
|
+
// Warn on deeply nested blocks
|
|
129
|
+
"max-lines-per-function": ["warn", 50],
|
|
130
|
+
// Warn on long functions
|
|
131
|
+
"max-params": ["warn", 4],
|
|
132
|
+
// Warn on functions with many parameters
|
|
133
|
+
"no-lonely-if": "error",
|
|
134
|
+
// Disallow if statements as the only statement in an else block
|
|
135
|
+
"grouped-accessor-pairs": ["error", "getBeforeSet"],
|
|
136
|
+
// Enforce consistency for getters/setters
|
|
120
137
|
"class-methods-use-this": "error",
|
|
138
|
+
"no-void": "error",
|
|
139
|
+
"no-underscore-dangle": "error",
|
|
121
140
|
"max-len": [
|
|
122
141
|
"error",
|
|
123
142
|
{
|
|
@@ -195,6 +214,8 @@ var base = [
|
|
|
195
214
|
{
|
|
196
215
|
files: ["**/*.spec.ts", "**/*.test.ts", "**/*.spec.js", "**/*.test.js"],
|
|
197
216
|
rules: {
|
|
217
|
+
"max-line-per-function": "off",
|
|
218
|
+
complexity: ["warn", { max: 1 }],
|
|
198
219
|
"max-lines": [
|
|
199
220
|
"error",
|
|
200
221
|
{
|
|
@@ -205,36 +226,6 @@ var base = [
|
|
|
205
226
|
]
|
|
206
227
|
}
|
|
207
228
|
},
|
|
208
|
-
isPrettierAvailable ? eslintConfigPrettier : {}
|
|
209
|
-
];
|
|
210
|
-
|
|
211
|
-
// packages/lint-suite/src/lib/typescript.ts
|
|
212
|
-
import nx4 from "@nx/eslint-plugin";
|
|
213
|
-
import importPlugin2 from "eslint-plugin-import";
|
|
214
|
-
var typescript = [
|
|
215
|
-
// NOTE: Checks for 'prettier' and 'eslint-plugin-prettier'
|
|
216
|
-
importPlugin2.flatConfigs.typescript,
|
|
217
|
-
...nx4.configs["flat/typescript"],
|
|
218
|
-
{
|
|
219
|
-
files: ["**/*.ts", "**/*.tsx", "**/*.cts", "**/*.mts"],
|
|
220
|
-
rules: {
|
|
221
|
-
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
222
|
-
"@typescript-eslint/consistent-type-imports": "error",
|
|
223
|
-
"@typescript-eslint/explicit-function-return-type": "warn",
|
|
224
|
-
"@typescript-eslint/no-empty-function": "error"
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
files: ["**/*.ts", "**/*.tsx", "**/*.cts", "**/*.mts"],
|
|
229
|
-
languageOptions: {
|
|
230
|
-
parserOptions: {
|
|
231
|
-
projectService: true
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
rules: {
|
|
235
|
-
"@typescript-eslint/prefer-readonly": "error"
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
229
|
{
|
|
239
230
|
files: ["**/*.action.ts"],
|
|
240
231
|
rules: {
|
|
@@ -249,16 +240,19 @@ var typescript = [
|
|
|
249
240
|
}
|
|
250
241
|
];
|
|
251
242
|
|
|
243
|
+
// packages/lint-suite/src/lib/javascript.ts
|
|
244
|
+
import nx4 from "@nx/eslint-plugin";
|
|
245
|
+
var javascript = nx4.configs["flat/javascript"];
|
|
246
|
+
|
|
252
247
|
// packages/lint-suite/src/lib/jest.ts
|
|
253
248
|
import jestEslint from "eslint-plugin-jest";
|
|
254
249
|
var jest = [
|
|
255
250
|
{
|
|
256
251
|
files: ["**/*.spec.ts", "**/*.test.ts", "**/*.spec.js", "**/*.test.js"],
|
|
257
|
-
...jestEslint.configs["flat/
|
|
252
|
+
...jestEslint.configs["flat/all"],
|
|
258
253
|
rules: {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
"jest/no-done-callback": "off"
|
|
254
|
+
"jest/no-done-callback": "off",
|
|
255
|
+
"jest/no-unbound-method": "error"
|
|
262
256
|
}
|
|
263
257
|
}
|
|
264
258
|
];
|
|
@@ -350,16 +344,350 @@ var storybook = [
|
|
|
350
344
|
}
|
|
351
345
|
];
|
|
352
346
|
|
|
353
|
-
// packages/lint-suite/src/lib/
|
|
347
|
+
// packages/lint-suite/src/lib/typescript.ts
|
|
354
348
|
import nx5 from "@nx/eslint-plugin";
|
|
355
|
-
|
|
349
|
+
import { createTypeScriptImportResolver } from "eslint-import-resolver-typescript";
|
|
350
|
+
import importPluginX2 from "eslint-plugin-import-x";
|
|
351
|
+
|
|
352
|
+
// packages/lint-suite/src/lib/rules/explicit-accessibility.ts
|
|
353
|
+
import { ESLintUtils, TSESTree } from "@typescript-eslint/utils";
|
|
354
|
+
var createRule = ESLintUtils.RuleCreator(
|
|
355
|
+
() => "https://eslint.org/docs/latest/rules/no-unused-private-class-members"
|
|
356
|
+
);
|
|
357
|
+
var defaultOptions = {
|
|
358
|
+
defaultAccessibility: "private"
|
|
359
|
+
};
|
|
360
|
+
var getNodeName = (node) => {
|
|
361
|
+
if (!node) {
|
|
362
|
+
return "<unknown>";
|
|
363
|
+
}
|
|
364
|
+
if ("key" in node && node.key) {
|
|
365
|
+
if (node.key.type === TSESTree.AST_NODE_TYPES.Identifier) {
|
|
366
|
+
return node.key.name;
|
|
367
|
+
}
|
|
368
|
+
if (node.key.type === TSESTree.AST_NODE_TYPES.PrivateIdentifier) {
|
|
369
|
+
return `#${node.key.name}`;
|
|
370
|
+
}
|
|
371
|
+
return "<computed/complex key>";
|
|
372
|
+
}
|
|
373
|
+
if ("kind" in node && node.kind === "constructor") {
|
|
374
|
+
return "constructor";
|
|
375
|
+
}
|
|
376
|
+
if (node.type === TSESTree.AST_NODE_TYPES.TSParameterProperty) {
|
|
377
|
+
const param = node.parameter;
|
|
378
|
+
if (param.type === TSESTree.AST_NODE_TYPES.Identifier) {
|
|
379
|
+
return param.name;
|
|
380
|
+
}
|
|
381
|
+
if (param.type === TSESTree.AST_NODE_TYPES.AssignmentPattern) {
|
|
382
|
+
if (param.left.type === TSESTree.AST_NODE_TYPES.Identifier) {
|
|
383
|
+
return param.left.name;
|
|
384
|
+
}
|
|
385
|
+
return "<destructured parameter>";
|
|
386
|
+
}
|
|
387
|
+
if (param.type === TSESTree.AST_NODE_TYPES.RestElement && param.argument.type === TSESTree.AST_NODE_TYPES.Identifier) {
|
|
388
|
+
return `...${param.argument.name}`;
|
|
389
|
+
}
|
|
390
|
+
return "<complex parameter>";
|
|
391
|
+
}
|
|
392
|
+
return "<unknown>";
|
|
393
|
+
};
|
|
394
|
+
var explicit_accessibility_default = createRule({
|
|
395
|
+
name: "explicit-accessibility",
|
|
396
|
+
meta: {
|
|
397
|
+
type: "suggestion",
|
|
398
|
+
docs: {
|
|
399
|
+
description: "Require explicit accessibility modifiers on class members"
|
|
400
|
+
},
|
|
401
|
+
fixable: "code",
|
|
402
|
+
schema: [
|
|
403
|
+
{
|
|
404
|
+
type: "object",
|
|
405
|
+
properties: {
|
|
406
|
+
defaultAccessibility: {
|
|
407
|
+
type: "string",
|
|
408
|
+
enum: ["public", "private", "protected"],
|
|
409
|
+
description: "The accessibility modifier to add if one is missing."
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
additionalProperties: false
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
messages: {
|
|
416
|
+
missingAccessibility: "Class member '{{ name }}' is missing an explicit accessibility modifier (public/private/protected)."
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
defaultOptions: [defaultOptions],
|
|
420
|
+
create(context, [options]) {
|
|
421
|
+
const { defaultAccessibility } = { ...defaultOptions, ...options };
|
|
422
|
+
const sourceCode = context.sourceCode;
|
|
423
|
+
function checkNode(node) {
|
|
424
|
+
if (node.accessibility) {
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
let reportNode = node;
|
|
428
|
+
const name = getNodeName(node);
|
|
429
|
+
if (node.type === TSESTree.AST_NODE_TYPES.MethodDefinition || node.type === TSESTree.AST_NODE_TYPES.PropertyDefinition) {
|
|
430
|
+
reportNode = node.key;
|
|
431
|
+
} else {
|
|
432
|
+
const param = node.parameter;
|
|
433
|
+
if (param.type === TSESTree.AST_NODE_TYPES.Identifier) {
|
|
434
|
+
reportNode = param;
|
|
435
|
+
} else if (param.type === TSESTree.AST_NODE_TYPES.AssignmentPattern && param.left.type === TSESTree.AST_NODE_TYPES.Identifier) {
|
|
436
|
+
reportNode = param.left;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
context.report({
|
|
440
|
+
node: reportNode,
|
|
441
|
+
messageId: "missingAccessibility",
|
|
442
|
+
data: { name },
|
|
443
|
+
fix(fixer) {
|
|
444
|
+
let tokenToInsertBefore = null;
|
|
445
|
+
let insertText = `${defaultAccessibility} `;
|
|
446
|
+
if (node.decorators.length > 0) {
|
|
447
|
+
const lastDecorator = node.decorators[node.decorators.length - 1];
|
|
448
|
+
tokenToInsertBefore = sourceCode.getTokenAfter(lastDecorator);
|
|
449
|
+
} else {
|
|
450
|
+
tokenToInsertBefore = sourceCode.getFirstToken(node);
|
|
451
|
+
}
|
|
452
|
+
if (node.type === TSESTree.AST_NODE_TYPES.TSParameterProperty && node.readonly) {
|
|
453
|
+
const firstToken = sourceCode.getFirstToken(node);
|
|
454
|
+
if (firstToken?.value === "readonly") {
|
|
455
|
+
tokenToInsertBefore = firstToken;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (!tokenToInsertBefore)
|
|
459
|
+
return null;
|
|
460
|
+
const tokenAfterInsertion = sourceCode.getTokenAfter(
|
|
461
|
+
tokenToInsertBefore,
|
|
462
|
+
{ includeComments: false }
|
|
463
|
+
);
|
|
464
|
+
const textBetween = sourceCode.text.slice(
|
|
465
|
+
tokenToInsertBefore.range[1],
|
|
466
|
+
tokenAfterInsertion?.range[0]
|
|
467
|
+
);
|
|
468
|
+
if (!/^\s/.test(textBetween)) {
|
|
469
|
+
insertText = ` ${insertText}`;
|
|
470
|
+
}
|
|
471
|
+
return fixer.insertTextBefore(tokenToInsertBefore, insertText);
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
return {
|
|
476
|
+
MethodDefinition(node) {
|
|
477
|
+
checkNode(node);
|
|
478
|
+
},
|
|
479
|
+
PropertyDefinition(node) {
|
|
480
|
+
checkNode(node);
|
|
481
|
+
},
|
|
482
|
+
TSParameterProperty(node) {
|
|
483
|
+
checkNode(node);
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
|
|
489
|
+
// packages/lint-suite/src/lib/typescript.ts
|
|
490
|
+
var localTypescriptRules = {
|
|
491
|
+
rules: {
|
|
492
|
+
"explicit-accessibility": explicit_accessibility_default
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
var typescript = [
|
|
496
|
+
// NOTE: Checks for 'prettier' and 'eslint-plugin-prettier'
|
|
497
|
+
importPluginX2.flatConfigs.typescript,
|
|
498
|
+
...nx5.configs["flat/typescript"],
|
|
499
|
+
{
|
|
500
|
+
files: ["**/*.ts", "**/*.tsx", "**/*.cts", "**/*.mts"],
|
|
501
|
+
plugins: { local: localTypescriptRules },
|
|
502
|
+
rules: {
|
|
503
|
+
"local/explicit-accessibility": "error",
|
|
504
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
505
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
506
|
+
"@typescript-eslint/no-empty-function": "error",
|
|
507
|
+
"@typescript-eslint/no-unused-vars": "error",
|
|
508
|
+
"@typescript-eslint/no-use-before-define": "error",
|
|
509
|
+
// A. Eliminating `any` (already covered by strict-type-checked, but explicit for clarity)
|
|
510
|
+
"@typescript-eslint/no-explicit-any": "error",
|
|
511
|
+
"@typescript-eslint/no-unsafe-assignment": "error",
|
|
512
|
+
"@typescript-eslint/no-unsafe-call": "error",
|
|
513
|
+
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
514
|
+
"@typescript-eslint/no-unsafe-return": "error",
|
|
515
|
+
"@typescript-eslint/no-unsafe-argument": "error",
|
|
516
|
+
// B. Explicit Annotations (partially covered, explicit module boundaries is key)
|
|
517
|
+
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
518
|
+
// Consider enabling if maximum explicitness is desired, even if verbose:
|
|
519
|
+
// C. Null/Undefined Safety (Requires strictNullChecks)
|
|
520
|
+
"@typescript-eslint/no-non-null-assertion": "error",
|
|
521
|
+
// D. Promise Handling (Supplementing plugin:promise/recommended)
|
|
522
|
+
"@typescript-eslint/no-floating-promises": [
|
|
523
|
+
"error",
|
|
524
|
+
{ ignoreVoid: true }
|
|
525
|
+
],
|
|
526
|
+
"@typescript-eslint/no-misused-promises": "error",
|
|
527
|
+
// Already in recommended-type-checked
|
|
528
|
+
"@typescript-eslint/promise-function-async": "error",
|
|
529
|
+
"@typescript-eslint/await-thenable": "error",
|
|
530
|
+
// Already in recommended-type-checked
|
|
531
|
+
// E. Best Practices & Potential Errors (Some covered by presets, fine-tuning here)
|
|
532
|
+
"@typescript-eslint/no-inferrable-types": "warn",
|
|
533
|
+
// Keep as warn or disable if inference is preferred
|
|
534
|
+
"@typescript-eslint/no-var-requires": "error",
|
|
535
|
+
// Use ES modules
|
|
536
|
+
"@typescript-eslint/require-await": "error",
|
|
537
|
+
"@typescript-eslint/restrict-template-expressions": [
|
|
538
|
+
"error",
|
|
539
|
+
{ allowNumber: true, allowBoolean: true }
|
|
540
|
+
],
|
|
541
|
+
// Allow numbers/booleans in templates
|
|
542
|
+
"@typescript-eslint/restrict-plus-operands": "error",
|
|
543
|
+
// Enforce consistent types for '+'
|
|
544
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
545
|
+
"@typescript-eslint/no-shadow": "error",
|
|
546
|
+
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
547
|
+
// Ensure switch on unions is exhaustive
|
|
548
|
+
"@typescript-eslint/no-unused-expressions": [
|
|
549
|
+
"error",
|
|
550
|
+
{ allowShortCircuit: true, allowTernary: true }
|
|
551
|
+
],
|
|
552
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
553
|
+
"@typescript-eslint/dot-notation": ["error", { allowKeywords: true }],
|
|
554
|
+
// Prefer dot notation where possible
|
|
555
|
+
// F. Consistency & Style (Some covered by stylistic-type-checked)
|
|
556
|
+
"@typescript-eslint/consistent-type-assertions": [
|
|
557
|
+
"error",
|
|
558
|
+
{ assertionStyle: "as", objectLiteralTypeAssertions: "never" }
|
|
559
|
+
],
|
|
560
|
+
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
|
561
|
+
"@typescript-eslint/consistent-type-imports": [
|
|
562
|
+
"error",
|
|
563
|
+
{ prefer: "type-imports", fixStyle: "separate-type-imports" }
|
|
564
|
+
],
|
|
565
|
+
"@typescript-eslint/naming-convention": [
|
|
566
|
+
"error",
|
|
567
|
+
{
|
|
568
|
+
selector: "objectLiteralProperty",
|
|
569
|
+
modifiers: ["requiresQuotes"],
|
|
570
|
+
format: null
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
selector: "objectLiteralProperty",
|
|
574
|
+
format: ["camelCase", "snake_case", "PascalCase"]
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
selector: "parameter",
|
|
578
|
+
format: ["camelCase"],
|
|
579
|
+
leadingUnderscore: "allow"
|
|
580
|
+
},
|
|
581
|
+
{ selector: "default", format: ["camelCase"] },
|
|
582
|
+
{ selector: "variable", format: ["camelCase", "UPPER_CASE"] },
|
|
583
|
+
{ selector: "function", format: ["camelCase"] },
|
|
584
|
+
{ selector: "typeLike", format: ["PascalCase"] },
|
|
585
|
+
{
|
|
586
|
+
selector: "property",
|
|
587
|
+
modifiers: ["requiresQuotes"],
|
|
588
|
+
format: null
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
selector: "property",
|
|
592
|
+
format: ["camelCase", "PascalCase", "snake_case"]
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
"import-x/order": [
|
|
596
|
+
"error",
|
|
597
|
+
{
|
|
598
|
+
groups: [
|
|
599
|
+
"builtin",
|
|
600
|
+
"external",
|
|
601
|
+
"internal",
|
|
602
|
+
["parent", "sibling"],
|
|
603
|
+
"index",
|
|
604
|
+
"unknown"
|
|
605
|
+
],
|
|
606
|
+
pathGroups: [
|
|
607
|
+
{ group: "external", pattern: "@angular/**", position: "before" },
|
|
608
|
+
{
|
|
609
|
+
pattern: "@*/shared/**",
|
|
610
|
+
group: "internal",
|
|
611
|
+
position: "before"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
pattern: "@*/frontend/**",
|
|
615
|
+
group: "internal",
|
|
616
|
+
position: "after"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
pattern: "@*/backend/**",
|
|
620
|
+
group: "internal",
|
|
621
|
+
position: "after"
|
|
622
|
+
}
|
|
623
|
+
],
|
|
624
|
+
pathGroupsExcludedImportTypes: ["@angular/**"],
|
|
625
|
+
"newlines-between": "always",
|
|
626
|
+
alphabetize: { order: "asc", caseInsensitive: true }
|
|
627
|
+
}
|
|
628
|
+
],
|
|
629
|
+
"import-x/no-unresolved": "error",
|
|
630
|
+
"import-x/no-duplicates": "error",
|
|
631
|
+
"import-x/prefer-default-export": "off",
|
|
632
|
+
"import-x/no-useless-path-segments": "error",
|
|
633
|
+
"import-x/newline-after-import": "error",
|
|
634
|
+
"import-x/first": "error",
|
|
635
|
+
"import-x/no-mutable-exports": "error"
|
|
636
|
+
},
|
|
637
|
+
settings: {
|
|
638
|
+
"import-x/resolver-next": [
|
|
639
|
+
createTypeScriptImportResolver({
|
|
640
|
+
alwaysTryTypes: true,
|
|
641
|
+
project: "tsconfig.base.json"
|
|
642
|
+
})
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
files: ["**/*.ts", "**/*.tsx", "**/*.cts", "**/*.mts"],
|
|
648
|
+
languageOptions: {
|
|
649
|
+
parserOptions: {
|
|
650
|
+
projectService: true
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
rules: {
|
|
654
|
+
"@typescript-eslint/prefer-readonly": "error"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
files: ["**/*.action.ts"],
|
|
659
|
+
rules: {
|
|
660
|
+
"@typescript-eslint/no-namespace": "off"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
files: ["**/*.spec.ts", "**/*.test.ts", "**/*.spec.js", "**/*.test.js"],
|
|
665
|
+
rules: {
|
|
666
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
667
|
+
"@typescript-eslint/no-unbound-method": "off"
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
];
|
|
671
|
+
|
|
672
|
+
// packages/lint-suite/src/index.ts
|
|
673
|
+
var recommended = [
|
|
674
|
+
...base,
|
|
675
|
+
...javascript,
|
|
676
|
+
...typescript,
|
|
677
|
+
...angular,
|
|
678
|
+
...angularTemplate,
|
|
679
|
+
...rxjs,
|
|
680
|
+
...jest,
|
|
681
|
+
...json,
|
|
682
|
+
...storybook
|
|
683
|
+
];
|
|
356
684
|
export {
|
|
357
685
|
angular,
|
|
358
686
|
angularTemplate,
|
|
359
|
-
base,
|
|
360
687
|
javascript,
|
|
361
688
|
jest,
|
|
362
689
|
json,
|
|
690
|
+
recommended,
|
|
363
691
|
rxjs,
|
|
364
692
|
storybook,
|
|
365
693
|
typescript
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../packages/lint-suite/src/lib/angular-template.ts", "../../../../packages/lint-suite/src/lib/angular.ts", "../../../../packages/lint-suite/src/lib/base.ts", "../../../../packages/lint-suite/src/lib/
|
|
4
|
-
"sourcesContent": ["import nx from '@nx/eslint-plugin';\r\n\r\nexport const angularTemplate = [\r\n ...nx.configs['flat/angular-template'],\r\n {\r\n files: ['**/*.html'],\r\n rules: {\r\n '@angular-eslint/template/button-has-type': 'error',\r\n '@angular-eslint/template/no-positive-tabindex': 'error',\r\n '@angular-eslint/template/valid-aria': 'error',\r\n '@angular-eslint/template/alt-text': 'error',\r\n '@angular-eslint/template/elements-content': 'error',\r\n '@angular-eslint/template/click-events-have-key-events': 'error',\r\n '@angular-eslint/template/mouse-events-have-key-events': 'error',\r\n '@angular-eslint/template/table-scope': 'error',\r\n '@angular-eslint/template/no-autofocus': 'error',\r\n '@angular-eslint/template/no-distracting-elements': 'error',\r\n '@angular-eslint/template/prefer-control-flow': 'error',\r\n '@angular-eslint/template/prefer-self-closing-tags': 'error',\r\n '@angular-eslint/template/prefer-ngsrc': 'error',\r\n '@angular-eslint/template/attributes-order': [\r\n 'error',\r\n {\r\n alphabetical: true,\r\n order: [\r\n 'STRUCTURAL_DIRECTIVE', // e.g. `*ngIf=\"true\"`, `*ngFor=\"let item of items\"`\r\n 'TEMPLATE_REFERENCE', // e.g. `<input #inputRef>`\r\n 'INPUT_BINDING', // e.g. `[id]=\"3\"`, `[attr.colspan]=\"colspan\"`, [style.width.%]=\"100\", [@triggerName]=\"expression\", `bind-id=\"handleChange()\"`\r\n 'TWO_WAY_BINDING', // e.g. `[(id)]=\"id\"`, `bindon-id=\"id\"\r\n 'ATTRIBUTE_BINDING', // e.g. `<input required>`, `id=\"3\"`\r\n 'OUTPUT_BINDING', // e.g. `(idChange)=\"handleChange()\"`, `on-id=\"handleChange()\"`\r\n ],\r\n },\r\n ],\r\n },\r\n },\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const angular = [\r\n ...nx.configs['flat/angular'],\r\n {\r\n files: ['**/*.ts'],\r\n rules: {\r\n '@angular-eslint/prefer-on-push-component-change-detection': 'error',\r\n },\r\n },\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\nimport importPlugin from 'eslint-plugin-import';\r\nimport stylistic from '@stylistic/eslint-plugin';\r\nimport eslintConfigPrettier from 'eslint-config-prettier/flat';\r\n\r\nimport type { Linter } from 'eslint';\r\n\r\nconst packageExists = (name: string): boolean => {\r\n try {\r\n require.resolve(name);\r\n return true;\r\n } catch {\r\n return false;\r\n }\r\n};\r\n\r\nconst isPrettierAvailable =\r\n packageExists('prettier') && packageExists('eslint-config-prettier');\r\n\r\nexport const base: Linter.Config[] = [\r\n ...nx.configs['flat/base'],\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n ],\r\n ...importPlugin.flatConfigs.recommended,\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n ],\r\n ...stylistic.configs.recommended,\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n ],\r\n rules: {\r\n 'no-console': 'warn',\r\n 'class-methods-use-this': 'error',\r\n 'max-len': [\r\n 'error',\r\n {\r\n code: 135,\r\n ignoreComments: true,\r\n },\r\n ],\r\n 'spaced-comment': [\r\n 2,\r\n 'always',\r\n {\r\n block: {\r\n exceptions: ['*'],\r\n },\r\n },\r\n ],\r\n '@stylistic/comma-dangle': [\r\n 'error',\r\n {\r\n functions: 'never',\r\n arrays: 'always-multiline',\r\n exports: 'always-multiline',\r\n imports: 'always-multiline',\r\n objects: 'always-multiline',\r\n enums: 'always-multiline',\r\n },\r\n ],\r\n '@stylistic/indent': [\r\n 'error',\r\n 2,\r\n {\r\n offsetTernaryExpressions: true,\r\n SwitchCase: 1,\r\n ignoredNodes: [\r\n 'TSTypeParameterInstantiation',\r\n 'FunctionExpression > .params > :matches(Decorator, :not(:first-child))',\r\n ],\r\n },\r\n ],\r\n 'sort-imports': [\r\n 'error',\r\n {\r\n ignoreCase: false,\r\n ignoreDeclarationSort: true,\r\n ignoreMemberSort: false,\r\n memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],\r\n allowSeparatedGroups: true,\r\n },\r\n ],\r\n },\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n '**/*.html',\r\n ],\r\n rules: {\r\n 'max-lines': [\r\n 'error',\r\n {\r\n max: 150,\r\n skipBlankLines: true,\r\n skipComments: true,\r\n },\r\n ],\r\n },\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n 'max-lines': [\r\n 'error',\r\n {\r\n max: 300,\r\n skipBlankLines: true,\r\n skipComments: true,\r\n },\r\n ],\r\n },\r\n },\r\n isPrettierAvailable ? eslintConfigPrettier : {},\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\nimport importPlugin from 'eslint-plugin-import';\r\n\r\nexport const typescript = [\r\n // NOTE: Checks for 'prettier' and 'eslint-plugin-prettier'\r\n importPlugin.flatConfigs.typescript,\r\n ...nx.configs['flat/typescript'],\r\n {\r\n files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],\r\n rules: {\r\n '@typescript-eslint/explicit-member-accessibility': 'error',\r\n '@typescript-eslint/consistent-type-imports': 'error',\r\n '@typescript-eslint/explicit-function-return-type': 'warn',\r\n '@typescript-eslint/no-empty-function': 'error',\r\n },\r\n },\r\n {\r\n files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],\r\n languageOptions: {\r\n parserOptions: {\r\n projectService: true,\r\n },\r\n },\r\n rules: {\r\n '@typescript-eslint/prefer-readonly': 'error',\r\n },\r\n },\r\n {\r\n files: ['**/*.action.ts'],\r\n rules: {\r\n 'max-classes-per-file': 'off',\r\n },\r\n },\r\n {\r\n files: ['**/*.state.ts'],\r\n rules: {\r\n 'class-methods-use-this': 'off',\r\n },\r\n },\r\n];\r\n", "import jestEslint from 'eslint-plugin-jest';\r\nimport type { Linter } from 'eslint';\r\n\r\nexport const jest: Linter.Config[] = [\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n ...jestEslint.configs['flat/recommended'],\r\n rules: {\r\n ...jestEslint.configs['flat/recommended'].rules,\r\n ...jestEslint.configs['flat/style'].rules,\r\n 'jest/no-done-callback': 'off',\r\n },\r\n },\r\n];\r\n", "import jsonEslint from 'eslint-plugin-json';\r\nimport type { Linter } from 'eslint';\r\n\r\nexport const json: Linter.Config[] = [\r\n {\r\n files: ['**/*.json'],\r\n ...jsonEslint.configs.recommended,\r\n },\r\n];\r\n", "import rxjsEslint from '@smarttools/eslint-plugin-rxjs';\r\nimport type { Linter } from 'eslint';\r\n\r\nexport const rxjs: Linter.Config[] = [\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n ],\r\n languageOptions: {\r\n parserOptions: {\r\n projectService: true,\r\n },\r\n },\r\n ...rxjsEslint.configs.recommended,\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n ],\r\n plugins: {\r\n rxjs: rxjsEslint,\r\n },\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n ],\r\n rules: {\r\n 'rxjs/prefer-observer': 'error',\r\n 'rxjs/finnish': 'warn',\r\n 'rxjs/no-ignored-error': 'warn',\r\n 'rxjs/no-unsafe-switchmap': 'error',\r\n 'rxjs/no-unsafe-takeuntil': 'error',\r\n 'rxjs/no-unsafe-catch': 'error',\r\n 'rxjs/no-unsafe-first': 'error',\r\n 'rxjs/no-topromise': 'error',\r\n 'rxjs/throw-error': 'error',\r\n 'rxjs/no-async-subscribe': 'off',\r\n },\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n 'rxjs/no-ignored-subscription': 'off',\r\n },\r\n },\r\n];\r\n", "import storybookEslint from 'eslint-plugin-storybook';\r\nimport type { Linter } from 'eslint';\r\n\r\nexport const storybook: Linter.Config[] = [\r\n ...storybookEslint.configs['flat/recommended'],\r\n {\r\n ignores: ['!.storybook'],\r\n files: ['**/*.stories.ts'],\r\n },\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const javascript = [...nx.configs['flat/javascript']];\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;AAAA,OAAO,QAAQ;AAER,IAAM,kBAAkB;AAAA,EAC7B,GAAG,GAAG,QAAQ,uBAAuB;AAAA,EACrC;AAAA,IACE,OAAO,CAAC,WAAW;AAAA,IACnB,OAAO;AAAA,MACL,4CAA4C;AAAA,MAC5C,iDAAiD;AAAA,MACjD,uCAAuC;AAAA,MACvC,qCAAqC;AAAA,MACrC,6CAA6C;AAAA,MAC7C,yDAAyD;AAAA,MACzD,yDAAyD;AAAA,MACzD,wCAAwC;AAAA,MACxC,yCAAyC;AAAA,MACzC,oDAAoD;AAAA,MACpD,gDAAgD;AAAA,MAChD,qDAAqD;AAAA,MACrD,yCAAyC;AAAA,MACzC,6CAA6C;AAAA,QAC3C;AAAA,QACA;AAAA,UACE,cAAc;AAAA,UACd,OAAO;AAA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", "nx", "nx", "nx", "
|
|
3
|
+
"sources": ["../../../../packages/lint-suite/src/lib/angular-template.ts", "../../../../packages/lint-suite/src/lib/angular.ts", "../../../../packages/lint-suite/src/lib/base.ts", "../../../../packages/lint-suite/src/lib/javascript.ts", "../../../../packages/lint-suite/src/lib/jest.ts", "../../../../packages/lint-suite/src/lib/json.ts", "../../../../packages/lint-suite/src/lib/rxjs.ts", "../../../../packages/lint-suite/src/lib/storybook.ts", "../../../../packages/lint-suite/src/lib/typescript.ts", "../../../../packages/lint-suite/src/lib/rules/explicit-accessibility.ts", "../../../../packages/lint-suite/src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import nx from '@nx/eslint-plugin';\r\n\r\nexport const angularTemplate = [\r\n ...nx.configs['flat/angular-template'],\r\n {\r\n files: ['**/*.html'],\r\n rules: {\r\n '@angular-eslint/template/no-any': 'error',\r\n '@angular-eslint/template/no-duplicate-attributes': 'error',\r\n '@angular-eslint/template/button-has-type': 'error',\r\n '@angular-eslint/template/no-positive-tabindex': 'error',\r\n '@angular-eslint/template/valid-aria': 'error',\r\n '@angular-eslint/template/alt-text': 'error',\r\n '@angular-eslint/template/elements-content': 'error',\r\n '@angular-eslint/template/click-events-have-key-events': 'error',\r\n '@angular-eslint/template/mouse-events-have-key-events': 'error',\r\n '@angular-eslint/template/table-scope': 'error',\r\n '@angular-eslint/template/no-autofocus': 'error',\r\n '@angular-eslint/template/no-distracting-elements': 'error',\r\n '@angular-eslint/template/prefer-control-flow': 'error',\r\n '@angular-eslint/template/prefer-self-closing-tags': 'error',\r\n '@angular-eslint/template/prefer-ngsrc': 'error',\r\n '@angular-eslint/template/attributes-order': [\r\n 'error',\r\n {\r\n alphabetical: true,\r\n order: [\r\n 'STRUCTURAL_DIRECTIVE', // e.g. `*ngIf=\"true\"`, `*ngFor=\"let item of items\"`\r\n 'TEMPLATE_REFERENCE', // e.g. `<input #inputRef>`\r\n 'INPUT_BINDING', // e.g. `[id]=\"3\"`, `[attr.colspan]=\"colspan\"`, [style.width.%]=\"100\", [@triggerName]=\"expression\", `bind-id=\"handleChange()\"`\r\n 'TWO_WAY_BINDING', // e.g. `[(id)]=\"id\"`, `bindon-id=\"id\"\r\n 'ATTRIBUTE_BINDING', // e.g. `<input required>`, `id=\"3\"`\r\n 'OUTPUT_BINDING', // e.g. `(idChange)=\"handleChange()\"`, `on-id=\"handleChange()\"`\r\n ],\r\n },\r\n ],\r\n },\r\n },\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const angular = [\r\n ...nx.configs['flat/angular'],\r\n {\r\n files: ['**/*.ts'],\r\n rules: {\r\n '@angular-eslint/prefer-on-push-component-change-detection': 'error',\r\n },\r\n },\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\nimport stylistic from '@stylistic/eslint-plugin';\r\nimport type { Linter } from 'eslint';\r\nimport importPluginX from 'eslint-plugin-import-x';\r\n\r\nexport const base: Linter.Config[] = [\r\n ...nx.configs['flat/base'],\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n ...importPluginX.flatConfigs.recommended\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n ...stylistic.configs.recommended\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n rules: {\r\n 'no-param-reassign': 'error',\r\n 'no-alert': 'error',\r\n 'no-console': ['warn', { allow: ['warn', 'error'] }],\r\n 'no-debugger': 'error',\r\n eqeqeq: ['error', 'always', { null: 'ignore' }],\r\n curly: ['error', 'all'],\r\n 'prefer-const': ['error', { destructuring: 'all' }],\r\n 'no-var': 'error',\r\n 'object-shorthand': 'error',\r\n 'prefer-arrow-callback': 'error',\r\n 'no-useless-concat': 'error',\r\n 'prefer-template': 'error',\r\n 'no-nested-ternary': 'error',\r\n 'no-return-await': 'error',\r\n 'no-else-return': ['error', { allowElseIf: false }], // Prefer early returns\r\n 'no-multi-assign': 'error', // Disallow chaining assignments\r\n radix: 'error', // Require radix parameter for parseInt()\r\n yoda: 'error', // Disallow yoda conditions (`if (\"red\" === color)`)\r\n complexity: ['warn', 10], // Warn if function complexity is high\r\n 'max-depth': ['warn', 4], // Warn on deeply nested blocks\r\n 'max-lines-per-function': ['warn', 50], // Warn on long functions\r\n 'max-params': ['warn', 4], // Warn on functions with many parameters\r\n 'no-lonely-if': 'error', // Disallow if statements as the only statement in an else block\r\n 'grouped-accessor-pairs': ['error', 'getBeforeSet'], // Enforce consistency for getters/setters\r\n 'class-methods-use-this': 'error',\r\n 'no-void': 'error',\r\n 'no-underscore-dangle': 'error',\r\n 'max-len': [\r\n 'error',\r\n {\r\n code: 135,\r\n ignoreComments: true\r\n }\r\n ],\r\n 'spaced-comment': [\r\n 2,\r\n 'always',\r\n {\r\n block: {\r\n exceptions: ['*']\r\n }\r\n }\r\n ],\r\n '@stylistic/comma-dangle': [\r\n 'error',\r\n {\r\n functions: 'never',\r\n arrays: 'always-multiline',\r\n exports: 'always-multiline',\r\n imports: 'always-multiline',\r\n objects: 'always-multiline',\r\n enums: 'always-multiline'\r\n }\r\n ],\r\n '@stylistic/indent': [\r\n 'error',\r\n 2,\r\n {\r\n offsetTernaryExpressions: true,\r\n SwitchCase: 1,\r\n ignoredNodes: [\r\n 'TSTypeParameterInstantiation',\r\n 'FunctionExpression > .params > :matches(Decorator, :not(:first-child))'\r\n ]\r\n }\r\n ],\r\n 'sort-imports': [\r\n 'error',\r\n {\r\n ignoreCase: false,\r\n ignoreDeclarationSort: true,\r\n ignoreMemberSort: false,\r\n memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],\r\n allowSeparatedGroups: true\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts',\r\n '**/*.html'\r\n ],\r\n rules: {\r\n 'max-lines': [\r\n 'error',\r\n {\r\n max: 150,\r\n skipBlankLines: true,\r\n skipComments: true\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n 'max-line-per-function': 'off',\r\n complexity: ['warn', { max: 1 }],\r\n 'max-lines': [\r\n 'error',\r\n {\r\n max: 300,\r\n skipBlankLines: true,\r\n skipComments: true\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n files: ['**/*.action.ts'],\r\n rules: {\r\n 'max-classes-per-file': 'off'\r\n }\r\n },\r\n {\r\n files: ['**/*.state.ts'],\r\n rules: {\r\n 'class-methods-use-this': 'off'\r\n }\r\n }\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\n\r\nexport const javascript = nx.configs['flat/javascript'];\r\n", "import type { Linter } from 'eslint';\r\nimport jestEslint from 'eslint-plugin-jest';\r\n\r\nexport const jest: Linter.Config[] = [\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n ...jestEslint.configs['flat/all'],\r\n rules: {\r\n 'jest/no-done-callback': 'off',\r\n 'jest/no-unbound-method': 'error'\r\n }\r\n }\r\n];\r\n", "import type { Linter } from 'eslint';\r\nimport jsonEslint from 'eslint-plugin-json';\r\n\r\nexport const json: Linter.Config[] = [\r\n {\r\n files: ['**/*.json'],\r\n ...jsonEslint.configs.recommended\r\n }\r\n];\r\n", "import rxjsEslint from '@smarttools/eslint-plugin-rxjs';\r\nimport type { Linter } from 'eslint';\r\n\r\nexport const rxjs: Linter.Config[] = [\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n languageOptions: {\r\n parserOptions: {\r\n projectService: true\r\n }\r\n },\r\n ...rxjsEslint.configs.recommended\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n plugins: {\r\n rxjs: rxjsEslint\r\n }\r\n },\r\n {\r\n files: [\r\n '**/*.js',\r\n '**/*.jsx',\r\n '**/*.cjs',\r\n '**/*.mjs',\r\n '**/*.ts',\r\n '**/*.tsx',\r\n '**/*.cts',\r\n '**/*.mts'\r\n ],\r\n rules: {\r\n 'rxjs/prefer-observer': 'error',\r\n 'rxjs/finnish': 'warn',\r\n 'rxjs/no-ignored-error': 'warn',\r\n 'rxjs/no-unsafe-switchmap': 'error',\r\n 'rxjs/no-unsafe-takeuntil': 'error',\r\n 'rxjs/no-unsafe-catch': 'error',\r\n 'rxjs/no-unsafe-first': 'error',\r\n 'rxjs/no-topromise': 'error',\r\n 'rxjs/throw-error': 'error',\r\n 'rxjs/no-async-subscribe': 'off'\r\n }\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n 'rxjs/no-ignored-subscription': 'off'\r\n }\r\n }\r\n];\r\n", "import type { Linter } from 'eslint';\r\nimport storybookEslint from 'eslint-plugin-storybook';\r\n\r\nexport const storybook: Linter.Config[] = [\r\n ...storybookEslint.configs['flat/recommended'],\r\n {\r\n ignores: ['!.storybook'],\r\n files: ['**/*.stories.ts']\r\n }\r\n];\r\n", "import nx from '@nx/eslint-plugin';\r\nimport { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';\r\nimport importPluginX from 'eslint-plugin-import-x';\r\n\r\nimport explicitAccessibilityRule from './rules/explicit-accessibility.js';\r\n\r\nconst localTypescriptRules = {\r\n rules: {\r\n 'explicit-accessibility': explicitAccessibilityRule\r\n }\r\n};\r\n\r\nexport const typescript = [\r\n // NOTE: Checks for 'prettier' and 'eslint-plugin-prettier'\r\n importPluginX.flatConfigs.typescript,\r\n ...nx.configs['flat/typescript'],\r\n {\r\n files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],\r\n plugins: { local: localTypescriptRules },\r\n rules: {\r\n 'local/explicit-accessibility': 'error',\r\n '@typescript-eslint/explicit-member-accessibility': 'error',\r\n '@typescript-eslint/explicit-function-return-type': 'error',\r\n '@typescript-eslint/no-empty-function': 'error',\r\n '@typescript-eslint/no-unused-vars': 'error',\r\n '@typescript-eslint/no-use-before-define': 'error',\r\n\r\n // A. Eliminating `any` (already covered by strict-type-checked, but explicit for clarity)\r\n '@typescript-eslint/no-explicit-any': 'error',\r\n '@typescript-eslint/no-unsafe-assignment': 'error',\r\n '@typescript-eslint/no-unsafe-call': 'error',\r\n '@typescript-eslint/no-unsafe-member-access': 'error',\r\n '@typescript-eslint/no-unsafe-return': 'error',\r\n '@typescript-eslint/no-unsafe-argument': 'error',\r\n\r\n // B. Explicit Annotations (partially covered, explicit module boundaries is key)\r\n '@typescript-eslint/explicit-module-boundary-types': 'error',\r\n // Consider enabling if maximum explicitness is desired, even if verbose:\r\n\r\n // C. Null/Undefined Safety (Requires strictNullChecks)\r\n '@typescript-eslint/no-non-null-assertion': 'error',\r\n\r\n // D. Promise Handling (Supplementing plugin:promise/recommended)\r\n '@typescript-eslint/no-floating-promises': [\r\n 'error',\r\n { ignoreVoid: true }\r\n ],\r\n '@typescript-eslint/no-misused-promises': 'error', // Already in recommended-type-checked\r\n '@typescript-eslint/promise-function-async': 'error',\r\n '@typescript-eslint/await-thenable': 'error', // Already in recommended-type-checked\r\n\r\n // E. Best Practices & Potential Errors (Some covered by presets, fine-tuning here)\r\n '@typescript-eslint/no-inferrable-types': 'warn', // Keep as warn or disable if inference is preferred\r\n '@typescript-eslint/no-var-requires': 'error', // Use ES modules\r\n '@typescript-eslint/require-await': 'error',\r\n '@typescript-eslint/restrict-template-expressions': [\r\n 'error',\r\n { allowNumber: true, allowBoolean: true }\r\n ], // Allow numbers/booleans in templates\r\n '@typescript-eslint/restrict-plus-operands': 'error', // Enforce consistent types for '+'\r\n '@typescript-eslint/prefer-as-const': 'error',\r\n '@typescript-eslint/no-shadow': 'error',\r\n '@typescript-eslint/switch-exhaustiveness-check': 'error', // Ensure switch on unions is exhaustive\r\n '@typescript-eslint/no-unused-expressions': [\r\n 'error',\r\n { allowShortCircuit: true, allowTernary: true }\r\n ],\r\n '@typescript-eslint/no-useless-constructor': 'error',\r\n '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }], // Prefer dot notation where possible\r\n\r\n // F. Consistency & Style (Some covered by stylistic-type-checked)\r\n '@typescript-eslint/consistent-type-assertions': [\r\n 'error',\r\n { assertionStyle: 'as', objectLiteralTypeAssertions: 'never' }\r\n ],\r\n '@typescript-eslint/consistent-type-definitions': ['error', 'type'],\r\n '@typescript-eslint/consistent-type-imports': [\r\n 'error',\r\n { prefer: 'type-imports', fixStyle: 'separate-type-imports' }\r\n ],\r\n '@typescript-eslint/naming-convention': [\r\n 'error',\r\n {\r\n selector: 'objectLiteralProperty',\r\n modifiers: ['requiresQuotes'],\r\n format: null\r\n },\r\n {\r\n selector: 'objectLiteralProperty',\r\n format: ['camelCase', 'snake_case', 'PascalCase']\r\n },\r\n {\r\n selector: 'parameter',\r\n format: ['camelCase'],\r\n leadingUnderscore: 'allow'\r\n },\r\n { selector: 'default', format: ['camelCase'] },\r\n { selector: 'variable', format: ['camelCase', 'UPPER_CASE'] },\r\n { selector: 'function', format: ['camelCase'] },\r\n { selector: 'typeLike', format: ['PascalCase'] },\r\n {\r\n selector: 'property',\r\n modifiers: ['requiresQuotes'],\r\n format: null\r\n },\r\n {\r\n selector: 'property',\r\n format: ['camelCase', 'PascalCase', 'snake_case']\r\n }\r\n ],\r\n 'import-x/order': [\r\n 'error',\r\n {\r\n groups: [\r\n 'builtin',\r\n 'external',\r\n 'internal',\r\n ['parent', 'sibling'],\r\n 'index',\r\n 'unknown'\r\n ],\r\n pathGroups: [\r\n { group: 'external', pattern: '@angular/**', position: 'before' },\r\n {\r\n pattern: '@*/shared/**',\r\n group: 'internal',\r\n position: 'before'\r\n },\r\n {\r\n pattern: '@*/frontend/**',\r\n group: 'internal',\r\n position: 'after'\r\n },\r\n {\r\n pattern: '@*/backend/**',\r\n group: 'internal',\r\n position: 'after'\r\n }\r\n ],\r\n pathGroupsExcludedImportTypes: ['@angular/**'],\r\n 'newlines-between': 'always',\r\n alphabetize: { order: 'asc', caseInsensitive: true }\r\n }\r\n ],\r\n 'import-x/no-unresolved': 'error',\r\n 'import-x/no-duplicates': 'error',\r\n 'import-x/prefer-default-export': 'off',\r\n 'import-x/no-useless-path-segments': 'error',\r\n 'import-x/newline-after-import': 'error',\r\n 'import-x/first': 'error',\r\n 'import-x/no-mutable-exports': 'error'\r\n },\r\n settings: {\r\n 'import-x/resolver-next': [\r\n createTypeScriptImportResolver({\r\n alwaysTryTypes: true,\r\n project: 'tsconfig.base.json'\r\n })\r\n ]\r\n }\r\n },\r\n {\r\n files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],\r\n languageOptions: {\r\n parserOptions: {\r\n projectService: true\r\n }\r\n },\r\n rules: {\r\n '@typescript-eslint/prefer-readonly': 'error'\r\n }\r\n },\r\n {\r\n files: ['**/*.action.ts'],\r\n rules: {\r\n '@typescript-eslint/no-namespace': 'off'\r\n }\r\n },\r\n {\r\n files: ['**/*.spec.ts', '**/*.test.ts', '**/*.spec.js', '**/*.test.js'],\r\n rules: {\r\n '@typescript-eslint/no-empty-function': 'off',\r\n '@typescript-eslint/no-unbound-method': 'off'\r\n }\r\n }\r\n];\r\n", "import { ESLintUtils, TSESTree } from '@typescript-eslint/utils';\r\n\r\nconst createRule = ESLintUtils.RuleCreator(\r\n () => 'https://eslint.org/docs/latest/rules/no-unused-private-class-members'\r\n);\r\n\r\ntype AccessibilityLevel = 'public' | 'private' | 'protected';\r\n\r\ntype Options = [\r\n {\r\n defaultAccessibility?: AccessibilityLevel;\r\n }\r\n];\r\n\r\nconst defaultOptions: Options[0] = {\r\n defaultAccessibility: 'private'\r\n};\r\n\r\nconst getNodeName = (\r\n node: TSESTree.Node | TSESTree.Token | null | undefined\r\n): string => {\r\n if (!node) {\r\n return '<unknown>';\r\n }\r\n\r\n /*\r\n * MethodDefinition or PropertyDefinition (check 'key' first)\r\n * Note: Check 'key' before 'kind' because MethodDefinition has both\r\n */\r\n if ('key' in node && node.key) {\r\n if (node.key.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n return node.key.name;\r\n }\r\n // Handle computed property names, private identifiers (#name), etc. if needed\r\n if (node.key.type === TSESTree.AST_NODE_TYPES.PrivateIdentifier) {\r\n return `#${node.key.name}`;\r\n }\r\n return '<computed/complex key>';\r\n }\r\n\r\n // Constructor specific check (if key check didn't catch it - unlikely for MethodDefinition)\r\n if ('kind' in node && node.kind === 'constructor') {\r\n return 'constructor';\r\n }\r\n\r\n // TSParameterProperty - handle its 'parameter' property\r\n if (node.type === TSESTree.AST_NODE_TYPES.TSParameterProperty) {\r\n const param = node.parameter; // Assign to variable for clarity & potentially better inference\r\n\r\n // Handle different parameter kinds:\r\n if (param.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n return param.name;\r\n }\r\n if (param.type === TSESTree.AST_NODE_TYPES.AssignmentPattern) {\r\n // Check the left side of the assignment\r\n if (param.left.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n return param.left.name; // Name is on the identifier being assigned to\r\n }\r\n /*\r\n * Parameter is an assignment pattern with destructuring (ArrayPattern/ObjectPattern)\r\n * You might want more sophisticated logic here to extract a name\r\n */\r\n return '<destructured parameter>';\r\n }\r\n // Handle other potential kinds like RestElement ([...args]), ArrayPattern, ObjectPattern\r\n if (\r\n param.type === TSESTree.AST_NODE_TYPES.RestElement &&\r\n param.argument.type === TSESTree.AST_NODE_TYPES.Identifier\r\n ) {\r\n return `...${param.argument.name}`;\r\n }\r\n\r\n return '<complex parameter>';\r\n }\r\n\r\n return '<unknown>';\r\n};\r\n\r\nexport default createRule<Options, 'missingAccessibility'>({\r\n name: 'explicit-accessibility',\r\n meta: {\r\n type: 'suggestion',\r\n docs: {\r\n description: 'Require explicit accessibility modifiers on class members'\r\n },\r\n fixable: 'code',\r\n schema: [\r\n {\r\n type: 'object',\r\n properties: {\r\n defaultAccessibility: {\r\n type: 'string',\r\n enum: ['public', 'private', 'protected'],\r\n description: 'The accessibility modifier to add if one is missing.'\r\n }\r\n },\r\n additionalProperties: false\r\n }\r\n ],\r\n messages: {\r\n missingAccessibility:\r\n \"Class member '{{ name }}' is missing an explicit accessibility modifier (public/private/protected).\"\r\n }\r\n },\r\n defaultOptions: [defaultOptions],\r\n\r\n create(context, [options]) {\r\n const { defaultAccessibility } = { ...defaultOptions, ...options };\r\n const sourceCode = context.sourceCode;\r\n\r\n function checkNode(\r\n node:\r\n | TSESTree.MethodDefinition\r\n | TSESTree.PropertyDefinition\r\n | TSESTree.TSParameterProperty\r\n ): void {\r\n if (node.accessibility) {\r\n return; // Already has modifier\r\n }\r\n\r\n let reportNode: TSESTree.Node | TSESTree.Token | undefined = node;\r\n const name = getNodeName(node);\r\n // Adjust report node for better highlighting\r\n if (\r\n node.type === TSESTree.AST_NODE_TYPES.MethodDefinition ||\r\n node.type === TSESTree.AST_NODE_TYPES.PropertyDefinition\r\n ) {\r\n reportNode = node.key;\r\n } else {\r\n const param = node.parameter;\r\n if (param.type === TSESTree.AST_NODE_TYPES.Identifier) {\r\n reportNode = param;\r\n } else if (\r\n param.type === TSESTree.AST_NODE_TYPES.AssignmentPattern &&\r\n param.left.type === TSESTree.AST_NODE_TYPES.Identifier\r\n ) {\r\n reportNode = param.left;\r\n }\r\n // Keep reportNode as the TSParameterProperty node itself if param isn't simple identifier\r\n }\r\n\r\n context.report({\r\n node: reportNode,\r\n messageId: 'missingAccessibility',\r\n data: { name },\r\n fix(fixer) {\r\n let tokenToInsertBefore: TSESTree.Token | null = null;\r\n let insertText = `${defaultAccessibility} `;\r\n\r\n if (node.decorators.length > 0) {\r\n const lastDecorator = node.decorators[node.decorators.length - 1];\r\n tokenToInsertBefore = sourceCode.getTokenAfter(lastDecorator);\r\n } else {\r\n tokenToInsertBefore = sourceCode.getFirstToken(node);\r\n }\r\n\r\n // Parameter properties need special handling if they also have 'readonly'\r\n if (\r\n node.type === TSESTree.AST_NODE_TYPES.TSParameterProperty &&\r\n node.readonly\r\n ) {\r\n // If readonly exists without accessibility, insert accessibility *before* readonly\r\n const firstToken = sourceCode.getFirstToken(node);\r\n if (firstToken?.value === 'readonly') {\r\n // double check it's the readonly token\r\n tokenToInsertBefore = firstToken;\r\n }\r\n // If insertion point wasn't decorators, use first token (which should be readonly)\r\n }\r\n\r\n if (!tokenToInsertBefore) return null;\r\n\r\n /*\r\n * If the token immediately after the insertion point isn't whitespace, add a space.\r\n * (Handles case where tokenToInsertBefore is the last decorator token)\r\n */\r\n const tokenAfterInsertion = sourceCode.getTokenAfter(\r\n tokenToInsertBefore,\r\n { includeComments: false }\r\n );\r\n const textBetween = sourceCode.text.slice(\r\n tokenToInsertBefore.range[1],\r\n tokenAfterInsertion?.range[0]\r\n );\r\n if (!/^\\s/.test(textBetween)) {\r\n insertText = ` ${insertText}`; // Add leading space if needed after decorator\r\n }\r\n\r\n return fixer.insertTextBefore(tokenToInsertBefore, insertText);\r\n }\r\n });\r\n }\r\n\r\n return {\r\n MethodDefinition(node: TSESTree.MethodDefinition): void {\r\n checkNode(node);\r\n },\r\n\r\n PropertyDefinition(node: TSESTree.PropertyDefinition): void {\r\n checkNode(node);\r\n },\r\n\r\n TSParameterProperty(node: TSESTree.TSParameterProperty): void {\r\n checkNode(node);\r\n }\r\n };\r\n }\r\n});\r\n", "import { angularTemplate } from './lib/angular-template.js';\r\nimport { angular } from './lib/angular.js';\r\nimport { base } from './lib/base.js';\r\nimport { javascript } from './lib/javascript.js';\r\nimport { jest } from './lib/jest.js';\r\nimport { json } from './lib/json.js';\r\nimport { rxjs } from './lib/rxjs.js';\r\nimport { storybook } from './lib/storybook.js';\r\nimport { typescript } from './lib/typescript.js';\r\n\r\nexport const recommended = [\r\n ...base,\r\n ...javascript,\r\n ...typescript,\r\n ...angular,\r\n ...angularTemplate,\r\n ...rxjs,\r\n ...jest,\r\n ...json,\r\n ...storybook\r\n];\r\n\r\nexport {\r\n typescript,\r\n angularTemplate,\r\n angular,\r\n javascript,\r\n rxjs,\r\n jest,\r\n json,\r\n storybook\r\n};\r\n"],
|
|
5
|
+
"mappings": ";AAAA,OAAO,QAAQ;AAER,IAAM,kBAAkB;AAAA,EAC7B,GAAG,GAAG,QAAQ,uBAAuB;AAAA,EACrC;AAAA,IACE,OAAO,CAAC,WAAW;AAAA,IACnB,OAAO;AAAA,MACL,mCAAmC;AAAA,MACnC,oDAAoD;AAAA,MACpD,4CAA4C;AAAA,MAC5C,iDAAiD;AAAA,MACjD,uCAAuC;AAAA,MACvC,qCAAqC;AAAA,MACrC,6CAA6C;AAAA,MAC7C,yDAAyD;AAAA,MACzD,yDAAyD;AAAA,MACzD,wCAAwC;AAAA,MACxC,yCAAyC;AAAA,MACzC,oDAAoD;AAAA,MACpD,gDAAgD;AAAA,MAChD,qDAAqD;AAAA,MACrD,yCAAyC;AAAA,MACzC,6CAA6C;AAAA,QAC3C;AAAA,QACA;AAAA,UACE,cAAc;AAAA,UACd,OAAO;AAAA,YACL;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,YACA;AAAA;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;ACtCA,OAAOA,SAAQ;AAER,IAAM,UAAU;AAAA,E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