-
Notifications
You must be signed in to change notification settings - Fork 21
/
eslint.config.js
executable file
·43 lines (42 loc) · 1.11 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { withNuxt } from './.nuxt/eslint.config.mjs';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslintIgnores from './eslint.ignores.js';
import pluginSecurity from 'eslint-plugin-security';
export default withNuxt({
files: ['**/*.js', '**/*.vue'],
ignores: eslintIgnores,
rules: {
'prettier/prettier': 'error',
classPrivateMethods: 'off',
'block-spacing': 'error',
'no-debugger': 'off',
'no-console': 'off',
'no-empty-function': 'error',
'vue/no-v-html': 'off',
'vue/no-mutating-props': 'off',
'security/detect-non-literal-fs-filename': 'off',
complexity: [
'error',
{
max: 10
}
],
'no-multiple-empty-lines': [
'error',
{
max: 1,
maxEOF: 1
}
],
'vue/component-name-in-template-casing': [
'error',
'kebab-case',
{
registeredComponentsOnly: true,
ignores: []
}
],
'vue/multi-word-component-names': 'off'
}
}).prepend(pluginSecurity.configs.recommended, eslintPluginPrettierRecommended);
// .remove('nuxt/import-globals');