forked from freb97/nuxt-strapi-blocks-renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
52 lines (52 loc) · 1.78 KB
/
.eslintrc.cjs
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
46
47
48
49
50
51
52
module.exports = {
root: true,
extends: [
'@nuxt/eslint-config',
],
plugins: [
'@stylistic',
],
env: {
node: true,
},
parser: 'vue-eslint-parser',
ignorePatterns: ['dist/', 'node_modules/'],
parserOptions: {
ecmaVersion: 8,
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
rules: {
'func-style': ['warn'],
'vue/multi-word-component-names': 'off',
'vue/no-setup-props-destructure': 'off',
'vue/no-multiple-template-root': 'off',
'vue/html-indent': ['warn', 4],
'vue/script-indent': ['warn', 4, {
'baseIndent': 1,
}],
'@stylistic/arrow-parens': ['warn'],
'@stylistic/arrow-spacing': ['warn'],
'@stylistic/max-len': ['warn', 120 ],
'@stylistic/semi': ['warn', 'always'],
'@stylistic/brace-style': ['warn', 'stroustrup'],
'@stylistic/quotes': ['warn', 'single'],
'@stylistic/func-call-spacing': ['warn'],
'@stylistic/block-spacing': ['warn'],
'@stylistic/comma-spacing': ['warn'],
'@stylistic/keyword-spacing': ['warn'],
'@stylistic/type-annotation-spacing': ['warn'],
'@stylistic/object-curly-spacing': ['warn', 'always'],
'@stylistic/comma-dangle': ['warn', {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'only-multiline',
'exports': 'only-multiline',
'functions': 'only-multiline',
}],
'@typescript-eslint/prefer-function-type': ['warn'],
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-import-type-side-effects': ['warn'],
'@typescript-eslint/explicit-function-return-type': ['warn'],
},
};