-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.35 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
44
45
46
47
48
49
50
51
52
53
module.exports = {
extends: ['next', 'airbnb', 'plugin:prettier/recommended'],
env: {
browser: true,
es2021: true,
jest: true,
},
rules: {
'react/react-in-jsx-scope': 0,
'react/state-in-constructor': 0,
'react/function-component-definition': 0,
'react/prop-types': 0,
'react/require-default-props': 0,
'jsx-a11y/anchor-is-valid': [
2,
{
components: ['Link'],
specialLink: ['hrefLeft', 'hrefRight'],
aspects: ['invalidHref', 'preferButton'],
},
],
'no-console': [2, { allow: ['warn', 'error'] }],
},
overrides: [
{
files: '**/*.ts?(x)',
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: ['airbnb-typescript', 'plugin:prettier/recommended'],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'./jest.config.ts',
'./test/jest.common.ts',
'./test/jest.client.ts',
'./test/jest.lint.ts',
'./test/jest.setup.ts',
'./lib/utils.ts',
'**/*.test.ts',
'**/*.test.tsx',
'tailwind.config.ts',
],
},
],
},
},
],
};