servii-frontend/.eslintrc.cjs

26 lines
648 B
JavaScript
Raw Permalink Normal View History

2024-06-25 22:30:20 +00:00
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
"plugin:@typescript-eslint/recommended",
2024-06-25 22:30:20 +00:00
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: [
'react-refresh',
'@typescript-eslint',
],
2024-06-25 22:30:20 +00:00
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}