generated from fuadbaskara/nextjs-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 1 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
38
39
40
41
42
43
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'plugin:react/recommended',
'plugin:import/typescript',
],
overrides: [
{
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react'],
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.eslint.json',
},
plugins: ['testing-library', 'prettier'],
rules: {
'react/function-component-definition': [
2,
{
namedComponents: 'function-declaration',
unnamedComponents: 'arrow-function',
},
],
'arrow-body-style': 'off',
'react/jsx-props-no-spreading': 'off',
'no-param-reassign': 'off',
'implicit-arrow-linebreak': 'off',
'@typescript-eslint/indent': 'off',
'import/extensions': 'off',
'object-curly-newline': 'off',
},
};