-
-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy path.eslintrc.js
More file actions
34 lines (33 loc) · 708 Bytes
/
.eslintrc.js
File metadata and controls
34 lines (33 loc) · 708 Bytes
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 = {
ignorePatterns: ['!**/*'],
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:cypress/recommended',
],
plugins: ['vitest-globals'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
settings: {
react: {
version: 'detect',
},
},
env: {
browser: true,
node: true,
es6: true,
'vitest-globals/env': true,
},
rules: {
'arrow-body-style': ['error', 'as-needed'],
curly: 'error',
// I'll probably add some typescript types instead
'react/prop-types': 'off',
},
};