-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
37 lines (37 loc) · 969 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: {
browser: true,
amd: true,
node: true,
'cypress/globals': true,
},
plugins: ['@typescript-eslint', 'formatjs', 'cypress'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react/jsx-runtime',
'plugin:@next/next/recommended',
],
rules: {
'no-console': [1, { allow: ['warn', 'error'] }],
quotes: [2, 'single'],
'object-curly-spacing': [1, 'always'],
'formatjs/no-id': 1,
'react-hooks/exhaustive-deps': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
},
],
},
settings: {
react: {
version: 'detect',
},
},
};