-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.cjs
35 lines (34 loc) · 1.02 KB
/
.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
30
31
32
33
34
35
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: [
'next/core-web-vitals',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'prettier',
],
plugins: ['@typescript-eslint', 'prettier'],
parser: '@typescript-eslint/parser',
root: true,
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
rules: {
"prettier/prettier": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-unused-vars": "off", // handled by typescript
"react-hooks/exhaustive-deps": 'off',
"@typescript-eslint/no-empty-function": "off",
"@next/next/no-img-element": "off",
// TODO: enable later
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false,
}
],
},
};