-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (30 loc) · 1007 Bytes
/
.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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:react-hooks/recommended',
'plugin:@next/next/recommended',
],
plugins: ['react', '@emotion', '@typescript-eslint'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './bin/tsconfig.json'],
},
root: true,
rules: {
'@emotion/pkg-renaming': 'error',
// 'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
// '@typescript-eslint/no-unsafe-assignment': 0,
// '@typescript-eslint/no-misused-promises': 0,
// '@typescript-eslint/no-unsafe-member-access': 0,
// '@typescript-eslint/no-unsafe-return': 0,
// '@typescript-eslint/no-unsafe-call': 0,
// '@typescript-eslint/no-floating-promises': 0,
// 'prefer-const': 0,
'no-debugger': 'warn', // instead of default error
'no-undef': 'off',
indent: 'off',
},
};