Skip to content

Commit 124c58f

Browse files
committed
test(integrations/import): migrate fixture to flat config
1 parent dd29176 commit 124c58f

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

tests/integrations/eslint-plugin-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Integration with eslint-plugin-import', () => {
3535
return
3636
}
3737

38-
cp.execSync(`${ESLINT} --no-config-lookup a.vue`, {
38+
cp.execSync(`${ESLINT} --config eslint.config.mjs a.vue`, {
3939
cwd: PLUGIN_DIR,
4040
stdio: 'inherit'
4141
})

tests/integrations/eslint-plugin-import/.eslintrc.json

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import vueEslintParser from 'vue-eslint-parser'
2+
import eslintPluginImport from 'eslint-plugin-import'
3+
import eslintPluginVue from 'eslint-plugin-vue'
4+
5+
export default [
6+
{
7+
files: ['*.vue'],
8+
languageOptions: {
9+
parser: vueEslintParser,
10+
parserOptions: {
11+
sourceType: 'module',
12+
ecmaVersion: 2015
13+
}
14+
},
15+
plugins: {
16+
import: eslintPluginImport,
17+
vue: eslintPluginVue
18+
},
19+
rules: {
20+
'import/default': 'warn',
21+
'import/namespace': 'warn'
22+
},
23+
settings: {
24+
'import/extensions': ['.js', '.vue']
25+
}
26+
}
27+
]

0 commit comments

Comments
 (0)