forked from yours-org/yours-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
25 lines (25 loc) · 822 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
module.exports = {
root: true,
env: { browser: true, es2020: true, node: true },
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended'],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['@typescript-eslint', 'react-refresh'],
rules: {
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'@typescript-eslint/no-var-requires': 'off', // Disable the rule that disallows require statements
'@typescript-eslint/ban-ts-comment': 'off', // Disable the rule that disallows @ts-ignore comments
},
settings: {
react: {
version: 'detect',
},
},
};