-
Notifications
You must be signed in to change notification settings - Fork 62
/
.eslintrc.js
60 lines (60 loc) · 1.49 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
56
57
58
59
60
module.exports = {
root: true,
extends: [
'plugin:vue/essential',
'eslint:recommended',
'plugin:prettier/recommended',
],
rules: {
eqeqeq: 2,
},
parserOptions: {
ecmaVersion: 2021, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
useJSXTextNode: true,
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
amd: true,
node: true,
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest', // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
useJSXTextNode: true,
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
env: {
browser: true,
jest: true,
node: true,
},
extends: [
'plugin:vue/essential',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint', 'jsx-a11y'],
rules: {
'@typescript-eslint/no-unused-vars': 0,
'react/no-jsx-bind': 0,
'jsx-quotes': [1, 'prefer-single'],
'eqeqeq': 2,
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': ['off'],
},
},
],
};