-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.16 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
/** @type {import('eslint').Linter.Config} */
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: [
'@vercel/style-guide/eslint/node',
'@vercel/style-guide/eslint/browser',
'@vercel/style-guide/eslint/react',
'@vercel/style-guide/eslint/next',
].map(require.resolve),
plugins: ['@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-unused-vars': 0,
'react/button-has-type': 'off',
'import/no-named-as-default': 'off',
'import/no-default-export': 'off',
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'@typescript-eslint/consistent-type-imports': [
'error',
{
disallowTypeAnnotations: false,
},
],
'eslint-comments/require-description': 'off',
'import/no-unresolved': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/display-name': 'off',
},
};