-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (30 loc) · 906 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
module.exports = {
plugins: ['@typescript-eslint'],
extends: [
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'prettier',
'plugin:storybook/recommended',
],
rules: {
'import/no-anonymous-default-export': 'off',
'no-console': [
'error',
{
allow: ['info', 'warn', 'error'],
},
],
'react/display-name': 'off',
'react/jsx-curly-brace-presence': [1, 'always'],
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
// allow explicit any --> we swear to use it wisely 🤞
'@typescript-eslint/no-explicit-any': 'off',
// allow underscore as unused variable
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
// allow empty interfaces
'@typescript-eslint/no-empty-interface': 'off',
},
}