-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
55 lines (54 loc) · 1.46 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const path = require('path');
module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser',
tsconfigRootDir: path.resolve(__dirname),
ecmaVersion: 2018,
sourceType: 'module',
extraFileExtensions: ['.vue'],
},
env: {
browser: true,
node: true,
jest: true,
serviceworker: true,
},
extends: [
'@nuxtjs/eslint-config-typescript',
'prettier/vue',
'plugin:nuxt/recommended',
'plugin:@typescript-eslint/recommended',
'eslint:recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:vue/recommended',
],
plugins: ['@typescript-eslint', 'prettier', 'vue'],
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-use-before-define': 0,
'no-async-promise-executor': 0,
'vue/max-attributes-per-line': 0,
'vue/no-v-html': 0,
'vue/html-self-closing': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/html-closing-bracket-newline': 0,
'vue/html-indent': 0,
'standard/no-callback-literal': 0,
'node/no-callback-literal': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
},
globals: {
CLIENT: false,
SERVER: false,
PRODUCTION: false,
DEVELOPMENT: false,
TEST: false,
SPA: false,
nodeRequire: false,
},
};