40 lines
880 B
JavaScript
40 lines
880 B
JavaScript
import js from '@eslint/js';
|
|
import pluginVue from 'eslint-plugin-vue';
|
|
import globals from 'globals';
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
'dist/**',
|
|
'node_modules/**',
|
|
'types/env.d.ts',
|
|
'types/web.d.ts',
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
...pluginVue.configs['flat/essential'],
|
|
{
|
|
files: ['**/*.{vue,js,jsx,cjs,mjs}'],
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'vue/html-self-closing': 'off',
|
|
'vue/max-attributes-per-line': 'off',
|
|
'vue/multiline-html-element-content-newline': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
'vue/singleline-html-element-content-newline': 'off',
|
|
},
|
|
},
|
|
];
|