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