-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.12 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
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
mocha: true,
},
extends: [
'eslint:recommended',
'plugin:security/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:vue/recommended',
'prettier',
],
parserOptions: {
parser: '@typescript-eslint/parser',
project: './tsconfig.eslint.json',
sourceType: 'module',
extraFileExtensions: ['.vue'],
},
plugins: ['eslint-plugin-security', '@typescript-eslint'],
rules: {
// disable semicolon
semi: 'off',
'@typescript-eslint/semi': ['error', 'never'],
// Disable semicolon on Interface and Type definitions
'@typescript-eslint/member-delimiter-style': 'off',
// Allow use of 'any'
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': [
'error',
{
allowArgumentsExplicitlyTypedAsAny: true,
},
],
// Allow explicit type declarations
'@typescript-eslint/no-inferrable-types': 'off',
'vue/multi-word-component-names': 'off',
},
}