Created the .eslintrc.cjs

This commit is contained in:
Mathias Wagner 2023-05-08 19:45:27 +02:00
parent 7df1d80e0f
commit 3df6eb357c
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

15
client/.eslintrc.cjs Normal file
View File

@ -0,0 +1,15 @@
module.exports = {
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': 'warn',
},
}