-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
42 lines (42 loc) · 1.16 KB
/
.eslintrc.js
File metadata and controls
42 lines (42 loc) · 1.16 KB
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
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'next/core-web-vitals', // Next.js rules
'plugin:@typescript-eslint/recommended',
// 'plugin:react-hooks/recommended',
'plugin:testing-library/react',
'plugin:jest-dom/recommended',
'plugin:jsx-a11y/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
// 'plugin:unused-imports/recommended',
'plugin:prettier/recommended', // Enables eslint-plugin-prettier + config-prettier
],
plugins: [
'@typescript-eslint',
// 'react-hooks',
'testing-library',
'jest-dom',
'jsx-a11y',
'import',
'unused-imports',
'prettier',
],
rules: {
'prettier/prettier': 'off', // Treat prettier issues as lint errors
'unused-imports/no-unused-imports': 'error',
'react/react-in-jsx-scope': 'off', // Next.js doesn't need it
// 'unused-imports/no-unused-vars': [
// 'warn',
// {
// vars: 'all',
// varsIgnorePattern: '^_',
// args: 'after-used',
// argsIgnorePattern: '^_',
// },
// ],
},
};