forked from romgain/jest-websocket-mock
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
26 lines (26 loc) · 606 Bytes
/
.eslintrc.cjs
File metadata and controls
26 lines (26 loc) · 606 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
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier',
'react-app',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'simple-import-sort', 'react-refresh'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
},
env: {
browser: true,
es2020: true,
node: true,
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'react-refresh/only-export-components': 'off',
},
};