-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
37 lines (37 loc) · 1.02 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
30
31
32
33
34
35
36
37
/**
* @type {import("eslint").Linter.Config}
*/
module.exports = {
extends: ['airbnb', 'airbnb-typescript', 'eslint-config-prettier', 'next/core-web-vitals'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
ignorePatterns: ['.eslintrc.js', 'next.config.mjs', '__tests__/*', 'postcss.config.mjs'],
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json',
},
},
},
rules: {
'react/self-closing-comp': [
'error',
{
component: true,
html: false,
},
],
'import/prefer-default-export': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'react/jsx-no-useless-fragment': 'off',
'react/jsx-props-no-spreading': 'off',
'import/no-extraneous-dependencies': 'off',
//'@typescript-eslint/no-unused-vars': 'off',
},
};