-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
37 lines (37 loc) · 1.15 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
module.exports = {
env: {
es6: true,
browser: true,
node: true,
},
overrides: [
{
files: [
'*.vue',
],
plugins: [
'@typescript-eslint',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: {
/*
At least one TS script is required for this to work or you will receive the
following error:
"You have used a rule which requires parserServices to be generated. You must
therefore provide a value for the "parserOptions.project" property for
@typescript-eslint/parser."
*/
'<template>': 'espree',
js: '@typescript-eslint/parser',
ts: '@typescript-eslint/parser',
},
project: ['./tsconfig.json'],
extraFileExtensions: ['.vue'],
},
rules: {
'@typescript-eslint/await-thenable': 'error',
},
},
],
}