-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
43 lines (42 loc) · 1.46 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
const path = require('path');
module.exports = {
extends: ['next', 'plugin:storybook/recommended'],
rules: {
'import/no-anonymous-default-export': 'off',
'react/no-unescaped-entities': 0,
'react/display-name': 'off',
},
ignorePatterns: ['src/**/*.stories.js', 'src/**/*.stories.tsx', 'src/tours'],
overrides: [
{
files: ['src/**/*.ts', 'src/**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
tsConfigRootDir: path.resolve(__dirname),
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'next/core-web-vitals',
],
rules: {
'@typescript-eslint/no-unsafe-assessment': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/require-await': ['error'],
'@typescript-eslint/no-unsafe-return': ['error'],
'@typescript-eslint/no-unsafe-call': ['error'],
'@typescript-eslint/no-unsafe-argument': ['error'],
'@typescript-eslint/no-unsafe-member-access': ['error'],
'@typescript-eslint/no-non-null-assertion': ['error'],
'@typescript-eslint/ban-ts-comment': 'off',
'no-unused-vars': 'off',
'require-await': 'off',
},
},
],
};