-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
34 lines (34 loc) · 844 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
module.exports = {
parserOptions: {
parser: '@typescript-eslint/parser',
},
extends: [
'plugin:@typescript-eslint/recommended',
'@nuxtjs',
'plugin:prettier/recommended',
'prettier/standard',
'prettier/@typescript-eslint',
'prettier/vue',
],
plugins: ['@typescript-eslint', 'vue', 'prettier'],
rules: {
'@typescript-eslint/prefer-interface': "off",
'@typescript-eslint/no-var-requires': 2,
'@typescript-eslint/no-object-literal-type-assertion': [
'error',
{ allowAsParameter: true },
],
'@typescript-eslint/explicit-function-return-type': [
'error',
{
allowExpressions: true,
allowTypedFunctionExpressions: true,
},
],
},
settings: {
node: {
tryExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.node'],
},
},
}