-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
30 lines (30 loc) · 923 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
extends: [
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
ignorePatterns: ['node_modules/', 'next.config.js', '*.d.ts'],
rules: {
'consistent-return': 'warn',
'max-len': ['warn', 150],
'object-curly-newline': 'off',
'global-require': 'warn',
'no-mixed-operators': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'no-underscore-dangle': 'off',
'@typescript-eslint/ban-ts-ignore': 'warn',
},
};