-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.mjs
36 lines (36 loc) · 1.01 KB
/
.eslintrc.mjs
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
module.exports = {
env: { browser: true, es2020: true },
extends: [
// 'next/core-web-vitals',
'plugin:react/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'.imports.eslintrc.js',
],
settings: {
react: {
version: 'detect'
}
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['@typescript-eslint', 'prettier', 'eslint-plugin-import', 'eslint-plugin-import-helpers'],
rules: {
'prettier/prettier': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/ban-types': 'off',
'react/display-name': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-misused-promises': 'off',
},
globals: {
location: true
}
}