-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
50 lines (50 loc) · 1.23 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
module.exports = {
extends: [
'airbnb',
'airbnb-typescript',
'next/core-web-vitals',
'plugin:tailwindcss/recommended',
'plugin:storybook/recommended',
],
plugins: ['@typescript-eslint', 'import'],
parserOptions: {
project: './tsconfig.json'
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: './tsconfig.json'
},
},
},
rules: {
'no-tabs': 'off',
indent: 'off',
'sort-keys': 'off',
'prettier/prettier': ['off', {
useTabs: false
}],
'@typescript-eslint/indent': ['error', 'tab'],
'react/jsx-indent': ['error', 'tab'],
'react/jsx-indent-props': ['error', 'tab'],
'react/react-in-jsx-scope': 'off',
'no-underscore-dangle': 'off',
'no-plusplus': ['error', {
'allowForLoopAfterthoughts': true
}],
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/anchor-is-valid': ['error', {
'components': ['Link'],
'specialLink': ['hrefLeft', 'hrefRight'],
'aspects': ['invalidHref', 'preferButton']
}],
'@next/next/no-img-element': 'off',
'import/no-anonymous-default-export': 'off',
'react/require-default-props': 'off',
'tailwindcss/no-custom-classname': 'off',
}
};