mirror of
https://github.com/xtr-dev/payload-billing.git
synced 2025-12-08 00:33:23 +00:00
- Add emoji accessibility labels (jsx-a11y/accessible-emoji) - Remove unused imports and variables - Fix async functions without await - Add dev directory to ESLint ignore list - Add eslint-disable comment for necessary console.error - Clean up unused route file All ESLint errors resolved (0 errors, 33 warnings remaining) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
69 lines
1.8 KiB
JavaScript
69 lines
1.8 KiB
JavaScript
// @ts-check
|
|
|
|
import payloadEsLintConfig from '@payloadcms/eslint-config'
|
|
|
|
export const defaultESLintIgnores = [
|
|
'**/.temp',
|
|
'**/.*', // ignore all dotfiles
|
|
'**/.git',
|
|
'**/.hg',
|
|
'**/.pnp.*',
|
|
'**/.svn',
|
|
'**/playwright.config.ts',
|
|
'**/vitest.config.js',
|
|
'**/tsconfig.tsbuildinfo',
|
|
'**/README.md',
|
|
'**/eslint.config.js',
|
|
'**/payload-types.ts',
|
|
'**/dist/',
|
|
'**/.yarn/',
|
|
'**/build/',
|
|
'**/node_modules/',
|
|
'**/temp/',
|
|
'**/dev/**', // Ignore dev demo directory
|
|
]
|
|
|
|
export default [
|
|
{
|
|
ignores: defaultESLintIgnores,
|
|
},
|
|
...payloadEsLintConfig,
|
|
{
|
|
rules: {
|
|
'no-restricted-exports': 'off',
|
|
// Disable all perfectionist rules
|
|
'perfectionist/sort-array-includes': 'off',
|
|
'perfectionist/sort-classes': 'off',
|
|
'perfectionist/sort-enums': 'off',
|
|
'perfectionist/sort-exports': 'off',
|
|
'perfectionist/sort-imports': 'off',
|
|
'perfectionist/sort-interfaces': 'off',
|
|
'perfectionist/sort-jsx-props': 'off',
|
|
'perfectionist/sort-maps': 'off',
|
|
'perfectionist/sort-named-exports': 'off',
|
|
'perfectionist/sort-named-imports': 'off',
|
|
'perfectionist/sort-object-types': 'off',
|
|
'perfectionist/sort-objects': 'off',
|
|
'perfectionist/sort-sets': 'off',
|
|
'perfectionist/sort-switch-case': 'off',
|
|
'perfectionist/sort-union-types': 'off',
|
|
'perfectionist/sort-variable-declarations': 'off',
|
|
'perfectionist/sort-intersection-types': 'off',
|
|
},
|
|
},
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
ecmaVersion: 'latest',
|
|
projectService: {
|
|
maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING: 40,
|
|
allowDefaultProject: ['scripts/*.ts', '*.js', '*.mjs', '*.spec.ts', '*.d.ts'],
|
|
},
|
|
// projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
]
|