-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
28 lines (28 loc) · 711 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
module.exports = {
parser: '@typescript-eslint/parser',
settings: {
react: {
version: 'detect',
},
},
env: {
browser: true,
jest: true,
node: true, // This allows module.exports syntax in config files.
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:jsx-a11y/strict',
'plugin:jest/recommended',
'plugin:jest/style',
'plugin:prettier/recommended', // Should always be last in the array.
],
plugins: ['simple-import-sort'],
rules: {
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
'no-unused-vars': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
};