-
Notifications
You must be signed in to change notification settings - Fork 373
/
.eslintrc.js
29 lines (29 loc) · 1.03 KB
/
.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
module.exports = {
extends: [
'next/core-web-vitals',
'prettier',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
plugins: ['prettier', 'import', 'simple-import-sort', '@typescript-eslint'],
rules: {
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
'prettier/prettier': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'warn',
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
'import/no-named-as-default': 'error',
'import/no-unresolved': 'warn',
// disabled as with the static export Image does not make to much sense
'@next/next/no-img-element': 'off',
'react/self-closing-comp': 'warn',
'react/display-name': 'off',
},
};