-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.eslintrc.js
43 lines (43 loc) · 933 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
35
36
37
38
39
40
41
42
43
module.exports = {
env: {
browser: true,
es6: true,
commonjs: true,
jest: true,
'vue/setup-compiler-macros': true,
},
extends: [
'standard',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:vue/vue3-essential',
'prettier',
],
globals: {
RALLIE_BUS_STORE: true,
},
settings: {
react: {
version: 'detect',
},
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'react-hooks', 'vue', '@typescript-eslint'],
// 0-ignore; 1-warn; 2-error
rules: {
'linebreak-style': [2, 'unix'],
semi: [2, 'never'],
'react/prop-types': 0, // prop-types can be valid by ts
'react-hooks/rules-of-hooks': 2,
'react-hooks/exhaustive-deps': 2,
'node/no-callback-literal': 0,
},
}