-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
39 lines (39 loc) · 1017 Bytes
/
.eslintrc.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
module.exports = {
root: true,
env: {
browser: true,
node: true
},
extends: [
'@nuxtjs/eslint-config-typescript',
'plugin:nuxt/recommended'
],
plugins: [
],
// add your custom rules here
rules: {
semi: ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'space-before-blocks': 'error',
'quote-props': ['error', 'as-needed'],
'eol-last': ['error', 'always'],
'prefer-template': 'error',
'comma-dangle': ['error', 'always-multiline'],
'array-bracket-spacing': ['error', 'always'],
'valid-jsdoc': ['error', { requireReturnType: false, requireParamType: true }],
'no-tabs': 'off',
indent: ['error', 'tab'],
'vue/html-indent': ['error', 'tab'],
'vue/html-self-closing': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/no-v-html': 'off'
},
ignorePatterns: [
'nuxt.config.ts',
'storybook/*',
'*.d.ts',
'.eslintrc.js',
'*.stories.js',
'static/payment-sw.js'
],
}