nerf eslint to only lint vue files since vue support in biome is experimental
This commit is contained in:
parent
1c53ac84cc
commit
7f54d11834
7 changed files with 13 additions and 22 deletions
|
|
@ -1,14 +1,17 @@
|
|||
import js from '@eslint/js'
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import vue from 'eslint-plugin-vue'
|
||||
import globals from 'globals'
|
||||
|
||||
export default [
|
||||
export default defineConfig([
|
||||
...vue.configs['flat/recommended'],
|
||||
js.configs.recommended,
|
||||
globalIgnores([
|
||||
'**/*.js', 'build/', 'dist/', 'config/',
|
||||
]),
|
||||
{
|
||||
files: ['**/*.js', '**/*.mjs', '**/*.vue'],
|
||||
ignores: ['build/*.js', 'config/*.js'],
|
||||
|
||||
files: ['src/**/*.vue'],
|
||||
plugins: { js },
|
||||
extends: ['js/recommended'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2024,
|
||||
sourceType: 'module',
|
||||
|
|
@ -26,11 +29,8 @@ export default [
|
|||
},
|
||||
|
||||
rules: {
|
||||
'arrow-parens': 0,
|
||||
'generator-star-spacing': 0,
|
||||
'no-debugger': 0,
|
||||
'vue/require-prop-types': 0,
|
||||
'vue/multi-word-component-names': 0,
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue