forked from jnt0r/vue-auth0-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 1.04 KB
/
.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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'@vue/standard',
// '@vue/airbnb',
'@vue/typescript/recommended',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'max-len': [ 'error', { code: 120, tabWidth: 4 } ],
indent: [ 'error', 4 ],
// semi: [ 'error', 'always' ],
semi: 'off',
'@typescript-eslint/semi': [ 'error' ],
quotes: [ 'error', 'single' ],
'quote-props': [ 'error', 'as-needed' ],
'comma-dangle': [ 'error', 'always-multiline' ],
'object-curly-spacing': [ 'error', 'always' ],
'array-bracket-spacing': [ 'error', 'always' ],
'no-trailing-spaces': [ 'error' ],
'arrow-parens': [ 'error', 'always' ],
'no-mixed-spaces-and-tabs': 'error',
'no-extra-semi': 'error',
'eol-last': [ 'error', 'always' ],
'no-multiple-empty-lines': [ 2, { max: 2, maxEOF: 0 } ],
},
};