-
Notifications
You must be signed in to change notification settings - Fork 32
/
eslint.config.js
executable file
·45 lines (44 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
44
45
import { withNuxt } from './playground/.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'],
rules: {
'prettier/prettier': 'error',
classPrivateMethods: 'off',
'block-spacing': 'error',
'no-debugger': 'off',
'no-console': 'off',
'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',
'vue/html-self-closing': 'off' // prettier conflict
}
}).prepend(
eslintIgnores,
pluginSecurity.configs.recommended,
eslintPluginPrettierRecommended
);