HiPhone_FE/.eslintrc.cjs

23 lines
601 B
JavaScript
Raw Normal View History

2023-09-28 22:11:18 +09:00
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
2023-10-16 22:51:40 +09:00
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
2023-09-28 22:11:18 +09:00
},
2023-10-16 22:51:40 +09:00
};