@taiga-ui/eslint-plugin-experience-next 0.537.0 → 0.539.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDefaultParserOptions(): Record<string, unknown>;
|
package/index.esm.js
CHANGED
|
@@ -599,9 +599,33 @@ var npmrcParser = /*#__PURE__*/Object.freeze({
|
|
|
599
599
|
});
|
|
600
600
|
|
|
601
601
|
const require$2 = createRequire(import.meta.url);
|
|
602
|
+
function projectJsonExist(filename) {
|
|
603
|
+
try {
|
|
604
|
+
const path = require$2('node:path').resolve(filename);
|
|
605
|
+
return require$2('node:fs').existsSync(path) ? path : '';
|
|
606
|
+
}
|
|
607
|
+
catch {
|
|
608
|
+
return '';
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
function getDefaultParserOptions() {
|
|
613
|
+
const tsconfig = projectJsonExist('tsconfig.eslint.json');
|
|
614
|
+
if (tsconfig) {
|
|
615
|
+
return { project: [tsconfig] };
|
|
616
|
+
}
|
|
617
|
+
return projectJsonExist('tsconfig.json')
|
|
618
|
+
? {
|
|
619
|
+
projectService: true,
|
|
620
|
+
tsconfigRootDir: process.cwd(),
|
|
621
|
+
}
|
|
622
|
+
: { projectService: false };
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
const require$1 = createRequire(import.meta.url);
|
|
602
626
|
function getAngularVersion() {
|
|
603
627
|
try {
|
|
604
|
-
const { major } = require$
|
|
628
|
+
const { major } = require$1('@angular/cli').VERSION;
|
|
605
629
|
return Number.parseInt(major, 10);
|
|
606
630
|
}
|
|
607
631
|
catch {
|
|
@@ -618,25 +642,7 @@ const modernAngularRules = {
|
|
|
618
642
|
templateLiteral: 19,
|
|
619
643
|
};
|
|
620
644
|
|
|
621
|
-
const require$1 = createRequire(import.meta.url);
|
|
622
|
-
function projectJsonExist(filename) {
|
|
623
|
-
try {
|
|
624
|
-
const path = require$1('node:path').resolve(filename);
|
|
625
|
-
return require$1('node:fs').existsSync(path) ? path : '';
|
|
626
|
-
}
|
|
627
|
-
catch {
|
|
628
|
-
return '';
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
|
|
632
645
|
const ALL_TS_JS_FILES = ['**/*.{js,mjs,ts,cjs,tsx,jsx}'];
|
|
633
|
-
const tsconfig = projectJsonExist('tsconfig.eslint.json');
|
|
634
|
-
const parserOptions$1 = tsconfig
|
|
635
|
-
? { project: [tsconfig] }
|
|
636
|
-
: {
|
|
637
|
-
projectService: true,
|
|
638
|
-
tsconfigRootDir: process.cwd(),
|
|
639
|
-
};
|
|
640
646
|
var recommended = defineConfig([
|
|
641
647
|
progress.configs['recommended-ci'],
|
|
642
648
|
{
|
|
@@ -698,7 +704,7 @@ var recommended = defineConfig([
|
|
|
698
704
|
errorOnUnknownASTType: true,
|
|
699
705
|
sourceType: 'module',
|
|
700
706
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
701
|
-
...
|
|
707
|
+
...getDefaultParserOptions(),
|
|
702
708
|
},
|
|
703
709
|
},
|
|
704
710
|
settings: {
|
|
@@ -931,6 +937,7 @@ var recommended = defineConfig([
|
|
|
931
937
|
'@typescript-eslint/prefer-destructuring': 'off',
|
|
932
938
|
'@typescript-eslint/prefer-find': 'error',
|
|
933
939
|
'@typescript-eslint/prefer-for-of': 'error',
|
|
940
|
+
'@typescript-eslint/prefer-function-type': 'off',
|
|
934
941
|
'@typescript-eslint/prefer-includes': 'error',
|
|
935
942
|
'@typescript-eslint/prefer-nullish-coalescing': 'off', // TODO: ['error', {ignorePrimitives: {boolean: true, number: true, string: true}}]
|
|
936
943
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/eslint-plugin-experience-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.539.0",
|
|
4
4
|
"description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
|
|
5
5
|
"homepage": "https://github.com/taiga-family/toolkit#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"type": "module",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@eslint/markdown": "8.0.
|
|
34
|
+
"@eslint/markdown": "8.0.2",
|
|
35
35
|
"@smarttools/eslint-plugin-rxjs": "1.0.22",
|
|
36
36
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
37
37
|
"angular-eslint": "20.7.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"eslint-plugin-file-progress": "3.0.2",
|
|
44
44
|
"eslint-plugin-import": "2.32.0",
|
|
45
45
|
"eslint-plugin-jest": "29.15.2",
|
|
46
|
-
"eslint-plugin-package-json": "1.
|
|
46
|
+
"eslint-plugin-package-json": "1.1.0",
|
|
47
47
|
"eslint-plugin-perfectionist": "5.9.0",
|
|
48
|
-
"eslint-plugin-playwright": "2.10.
|
|
48
|
+
"eslint-plugin-playwright": "2.10.4",
|
|
49
49
|
"eslint-plugin-prettier": "5.5.5",
|
|
50
50
|
"eslint-plugin-promise": "7.3.0",
|
|
51
51
|
"eslint-plugin-regexp": "3.1.0",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"eslint-plugin-unicorn": "64.0.0",
|
|
55
55
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
56
56
|
"globals": "17.6.0",
|
|
57
|
-
"typescript-eslint": "8.59.
|
|
57
|
+
"typescript-eslint": "8.59.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@typescript-eslint/rule-tester": "8.59.
|
|
60
|
+
"@typescript-eslint/rule-tester": "8.59.4"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"eslint": "^9.39.4",
|