Files

36 lines
786 B
JavaScript

const biomeSupportedRules = require('./biome-supported')
module.exports = {
extends: [require.resolve('./base.js')],
env: {
browser: true,
node: false,
},
plugins: ['react', 'react-hooks', 'no-relative-import-paths', 'local-rules'],
ignorePatterns: ['**/__generated__/'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
rules: {
// Disable all ESLint rules that have been migrated to Biome
...biomeSupportedRules,
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: 'detect',
},
},
overrides: [
{
files: ['*.ts', '*.tsx'],
excludedFiles: ['**/__mocks__/**', '*.d.ts'],
rules: {
'import/no-unused-modules': ['error', { unusedExports: true }],
},
},
],
}