Skip to content

Commit 8355c0e

Browse files
committed
Add devup-ui/components to default noDeps
1 parent ea8b1c8 commit 8355c0e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

eslint.config.mjs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { configs } from 'eslint-plugin-devup'
1+
import devupUi from '@devup-ui/eslint-plugin'
2+
import devup from 'eslint-plugin-devup'
23
import eslintPlugin from 'eslint-plugin-eslint-plugin'
34
import jsonc from 'eslint-plugin-jsonc'
45
import globals from 'globals'
6+
57
export default [
68
{
79
ignores: [
@@ -10,7 +12,9 @@ export default [
1012
],
1113
},
1214
// eslint-plugin-devup
13-
...configs.recommended,
15+
...devup.configs.recommended.filter(
16+
(config) => !('plugins' in config && '@devup-ui' in config.plugins),
17+
),
1418
// eslint-plugin-jsonc
1519
...jsonc.configs['flat/recommended-with-json'],
1620
...jsonc.configs['flat/recommended-with-jsonc'],
@@ -51,6 +55,10 @@ export default [
5155
// eslint-plugin rule
5256
{
5357
...eslintPlugin.configs.recommended,
54-
// files: ['packages/eslint-plugin/**/*.{js,jsx,ts,tsx}'],
58+
files: ['packages/eslint-plugin/**/*.{js,jsx,ts,tsx}'],
5559
},
60+
{
61+
ignores: ['packages/eslint-plugin/**/*.md'],
62+
},
63+
...devupUi.configs.recommended,
5664
]

packages/eslint-plugin/src/configs/__tests__/__snapshots__/recommended.test.ts.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ exports[`recommended > export recommended config 1`] = `
2020
"schema": [],
2121
"type": "problem",
2222
},
23+
"name": "css-utils-literal-only",
2324
},
2425
"no-duplicate-value": {
2526
"create": [Function],
@@ -36,6 +37,7 @@ exports[`recommended > export recommended config 1`] = `
3637
"schema": [],
3738
"type": "problem",
3839
},
40+
"name": "no-duplicate-value",
3941
},
4042
"no-useless-responsive": {
4143
"create": [Function],
@@ -52,6 +54,7 @@ exports[`recommended > export recommended config 1`] = `
5254
"schema": [],
5355
"type": "problem",
5456
},
57+
"name": "no-useless-responsive",
5558
},
5659
"no-useless-tailing-nulls": {
5760
"create": [Function],
@@ -68,6 +71,7 @@ exports[`recommended > export recommended config 1`] = `
6871
"schema": [],
6972
"type": "problem",
7073
},
74+
"name": "no-useless-tailing-nulls",
7175
},
7276
},
7377
},

0 commit comments

Comments
 (0)