python__django_tutorials/ticketing/ticketing-frontend/.eslintrc.cjs

32 lines
792 B
JavaScript

module.exports = {
root: true,
env: {
browser: true,
es2020: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'prettier', // Added Prettier to the end to disable conflicting rules
],
ignorePatterns: ['dist', 'build', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.3' } },
plugins: ['react-refresh'],
rules: {
'react/prop-types': 'off',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
},
overrides: [
{
files: ['**/*.test.jsx'],
globals: {
vi: 'readonly',
global: 'readonly',
},
},
],
};