mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
47 lines
No EOL
1.1 KiB
JavaScript
47 lines
No EOL
1.1 KiB
JavaScript
import vuePlugin from 'eslint-plugin-vue';
|
|
import vueParser from 'vue-eslint-parser';
|
|
import tsParser from '@typescript-eslint/parser';
|
|
|
|
export default [
|
|
...vuePlugin.configs['flat/recommended'],
|
|
{
|
|
languageOptions: {
|
|
parser: vueParser,
|
|
parserOptions: {
|
|
parser: tsParser,
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
plugins: { vueParser },
|
|
rules: {
|
|
'semi': [
|
|
'error',
|
|
'always',
|
|
],
|
|
'comma-dangle': [
|
|
'error',
|
|
'always-multiline',
|
|
],
|
|
'no-trailing-spaces': 'error',
|
|
'quotes': [
|
|
'warn',
|
|
'single',
|
|
],
|
|
'prefer-template': 'warn',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/html-closing-bracket-spacing': 'off',
|
|
'vue/html-self-closing': 'off',
|
|
'vue/first-attribute-linebreak': 'off',
|
|
'vue/max-attributes-per-line': 'off',
|
|
'vue/html-closing-bracket-newline': 'off',
|
|
'vue/no-dupe-keys': 'off',
|
|
'vue/no-template-shadow': 'off',
|
|
'vue/v-on-event-hyphenation': 'off',
|
|
'vue/singleline-html-element-content-newline': 'off',
|
|
'indent': [
|
|
'error',
|
|
2,
|
|
],
|
|
},
|
|
},
|
|
]; |