forked from mldangelo/personal-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
29 lines (29 loc) · 803 Bytes
/
.eslintrc.cjs
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
// .eslintrc.cjs
module.exports = {
env: {
browser: true,
jest: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'next/core-web-vitals', // Next.js ESLint rules
],
parser: '@typescript-eslint/parser',
plugins: ['react', '@typescript-eslint'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'prettier/prettier': ['error', { singleQuote: true, semi: true }],
},
settings: {
react: {
version: 'detect', // Automatically detects the version of React
},
},
};