-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
30 lines (30 loc) · 912 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
/** @type {import('@typescript-eslint/utils').TSESLint.Linter.Config} */
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'airbnb', 'airbnb-typescript', 'turbo', 'prettier'],
plugins: ['@typescript-eslint'],
env: {
node: true,
browser: true,
es2022: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
settings: {
'import/resolver': {
typescript: {},
},
},
rules: {
'no-underscore-dangle': 'off',
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
'react/function-component-definition': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/prefer-default-export': 'off',
},
};