mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-07-17 16:38:59 +00:00
32 lines
No EOL
791 B
JavaScript
32 lines
No EOL
791 B
JavaScript
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
import globals from 'globals'
|
|
import js from '@eslint/js'
|
|
import pluginVue from 'eslint-plugin-vue'
|
|
import skipFormatting from 'eslint-config-prettier/flat'
|
|
|
|
export default defineConfig([
|
|
{
|
|
name: 'app/files-to-lint',
|
|
files: ['**/*.{vue,js,mjs,jsx}'],
|
|
},
|
|
globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']),
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
__APP_VERSION__: "readable",
|
|
},
|
|
},
|
|
},
|
|
js.configs.recommended,
|
|
...pluginVue.configs['flat/essential'],
|
|
skipFormatting,
|
|
{
|
|
files: ['**/*.{vue,js}'],
|
|
rules: {
|
|
"vue/multi-word-component-names": "off",
|
|
"vue/require-default-prop": "off",
|
|
"vue/no-v-html": "off",
|
|
},
|
|
},
|
|
]) |