33 lines
721 B
JavaScript
33 lines
721 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
"es2021": true,
|
|
"node": true,
|
|
"browser": false
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
'prettier'
|
|
],
|
|
ignorePatterns: [
|
|
"types/env.d.ts",
|
|
"node_modules/**",
|
|
"**/dist/**",
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 12,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['react-refresh', '@typescript-eslint'],
|
|
rules: {
|
|
'react-refresh/only-export-components': [
|
|
'warn',
|
|
{ allowConstantExport: true },
|
|
],
|
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
"react-hooks/exhaustive-deps": "off",
|
|
},
|
|
}
|