-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
33 lines (33 loc) · 1.01 KB
/
.eslintrc.js
File metadata and controls
33 lines (33 loc) · 1.01 KB
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
module.exports = {
plugins: ['@typescript-eslint'],
parser: '@typescript-eslint/parser',
extends: [
'next/core-web-vitals',
'plugin:@typescript-eslint/recommended',
'airbnb',
'airbnb/hooks',
'plugin:valtio/recommended',
'prettier',
],
overrides: [{ files: ['*.tsx'], rules: { 'no-undef': 'off' } }],
rules: {
'no-use-before-define': 'off',
'valtio/state-snapshot-rule': 'warn',
'valtio/avoid-this-in-proxy': 'warn',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'react/function-component-definition': 'off',
'no-lone-blocks': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'consistent-return': 'off',
'arrow-body-style': 'off',
'no-nested-ternary': 'off',
'import/extensions': 'off',
'react/no-array-index-key': 'off',
'no-unused-vars': 'warn',
'no-shadow': 'warn',
'no-unused-expressions': 'warn',
},
}