@taiga-ui/eslint-plugin-experience-next 0.485.0 → 0.487.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.
- package/index.esm.js +18 -13
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -549,6 +549,9 @@ var recommended = defineConfig([
|
|
|
549
549
|
'**.git/**',
|
|
550
550
|
'**/.idea/**',
|
|
551
551
|
'**/LICENSE',
|
|
552
|
+
'**/llms-full.html',
|
|
553
|
+
'**/import-map.md',
|
|
554
|
+
'**/sitemap.xml',
|
|
552
555
|
],
|
|
553
556
|
},
|
|
554
557
|
{
|
|
@@ -876,9 +879,10 @@ var recommended = defineConfig([
|
|
|
876
879
|
'import/enforce-node-protocol-usage': ['error', 'always'],
|
|
877
880
|
'import/export': 'off',
|
|
878
881
|
'import/first': 'error',
|
|
882
|
+
'import/namespace': 'off',
|
|
879
883
|
'import/newline-after-import': ['error', { count: 1 }],
|
|
880
884
|
'import/no-absolute-path': 'error',
|
|
881
|
-
'import/no-cycle': '
|
|
885
|
+
'import/no-cycle': 'off',
|
|
882
886
|
'import/no-duplicates': ['error', { 'prefer-inline': true }],
|
|
883
887
|
'import/no-extraneous-dependencies': 'off',
|
|
884
888
|
'import/no-mutable-exports': 'error',
|
|
@@ -1304,7 +1308,6 @@ var recommended = defineConfig([
|
|
|
1304
1308
|
extends: [playwright.configs['flat/recommended']],
|
|
1305
1309
|
rules: {
|
|
1306
1310
|
'@taiga-ui/experience-next/no-playwright-empty-fill': 'error',
|
|
1307
|
-
'@taiga-ui/experience-next/no-restricted-attr-values': 'off',
|
|
1308
1311
|
'compat/compat': 'off',
|
|
1309
1312
|
'jest/prefer-importing-jest-globals': 'off',
|
|
1310
1313
|
'playwright/consistent-spacing-between-blocks': 'error',
|
|
@@ -1343,7 +1346,6 @@ var recommended = defineConfig([
|
|
|
1343
1346
|
files: ['**/*.spec.ts'],
|
|
1344
1347
|
extends: [jest.configs['flat/recommended']],
|
|
1345
1348
|
rules: {
|
|
1346
|
-
'@taiga-ui/experience-next/no-restricted-attr-values': 'off',
|
|
1347
1349
|
'@typescript-eslint/no-extraneous-class': 'off',
|
|
1348
1350
|
'compat/compat': 'off',
|
|
1349
1351
|
'jest/expect-expect': 'off',
|
|
@@ -1431,7 +1433,6 @@ var recommended = defineConfig([
|
|
|
1431
1433
|
files: ['**/*.cy.ts'],
|
|
1432
1434
|
plugins: { cypress },
|
|
1433
1435
|
rules: {
|
|
1434
|
-
'@taiga-ui/experience-next/no-restricted-attr-values': 'off',
|
|
1435
1436
|
'compat/compat': 'off',
|
|
1436
1437
|
'cypress/no-unnecessary-waiting': 'off',
|
|
1437
1438
|
'cypress/unsafe-to-chain-command': 'off',
|
|
@@ -1481,25 +1482,33 @@ var recommended = defineConfig([
|
|
|
1481
1482
|
const allPackageJSONs = globSync('**/package.json', {
|
|
1482
1483
|
ignore: ['**/node_modules/**', '**/dist/**'],
|
|
1483
1484
|
}).filter((path) => !readJSON(path).private);
|
|
1484
|
-
|
|
1485
|
-
|
|
1485
|
+
function pattern(type) {
|
|
1486
|
+
return allPackageJSONs.map((p) => p.replaceAll(/\\+/g, '/').replace('package.json', type));
|
|
1487
|
+
}
|
|
1486
1488
|
var taigaSpecific = defineConfig([
|
|
1487
1489
|
{
|
|
1488
|
-
files:
|
|
1490
|
+
files: pattern('**/*.ts'),
|
|
1489
1491
|
ignores: ['**/*.spec.ts', '**/*.cy.ts'],
|
|
1490
1492
|
rules: {
|
|
1491
1493
|
'@taiga-ui/experience-next/no-deep-imports': 'off',
|
|
1492
1494
|
'@taiga-ui/experience-next/prefer-deep-imports': [
|
|
1493
1495
|
'error',
|
|
1494
1496
|
{
|
|
1495
|
-
importFilter:
|
|
1497
|
+
importFilter: allPackageJSONs
|
|
1498
|
+
.map((path) => readJSON(path).name)
|
|
1499
|
+
.filter(Boolean),
|
|
1496
1500
|
strict: !!process.env.CI,
|
|
1497
1501
|
},
|
|
1498
1502
|
],
|
|
1499
1503
|
},
|
|
1500
1504
|
},
|
|
1501
1505
|
{
|
|
1502
|
-
files:
|
|
1506
|
+
files: pattern('**/*.html'),
|
|
1507
|
+
ignores: [
|
|
1508
|
+
// Angular ESLint virtual files for inline templates in spec/cy files
|
|
1509
|
+
'**/*.spec.ts/**/*.html',
|
|
1510
|
+
'**/*.cy.ts/**/*.html',
|
|
1511
|
+
],
|
|
1503
1512
|
rules: {
|
|
1504
1513
|
'@taiga-ui/experience-next/no-restricted-attr-values': [
|
|
1505
1514
|
'error',
|
|
@@ -1511,10 +1520,6 @@ var taigaSpecific = defineConfig([
|
|
|
1511
1520
|
],
|
|
1512
1521
|
},
|
|
1513
1522
|
},
|
|
1514
|
-
{
|
|
1515
|
-
files: ['**/demo/**/*.html'],
|
|
1516
|
-
rules: { '@taiga-ui/experience-next/no-restricted-attr-values': 'off' },
|
|
1517
|
-
},
|
|
1518
1523
|
{
|
|
1519
1524
|
files: ['**/*.ts'],
|
|
1520
1525
|
rules: {
|