⚙️ Add Prettier and ESLint config with pre-commit (#640)

This commit is contained in:
Alejandra
2024-03-08 00:08:07 +01:00
committed by GitHub
parent 6c41e30263
commit 1b8b42cee5
8 changed files with 3572 additions and 221 deletions

View File

@@ -1,18 +0,0 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}