mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-28 06:42:56 +00:00
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
import blitzPlugin from '@blitz/eslint-plugin';
|
|
import { jsFileExtensions } from '@blitz/eslint-plugin/dist/configs/javascript.js';
|
|
import { getNamingConventionRule, tsFileExtensions } from '@blitz/eslint-plugin/dist/configs/typescript.js';
|
|
|
|
export default [
|
|
{
|
|
ignores: ['**/dist', '**/node_modules', '**/.wrangler', '**/bolt/build'],
|
|
},
|
|
...blitzPlugin.configs.recommended(),
|
|
{
|
|
rules: {
|
|
'@blitz/catch-error-name': 'off',
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.tsx'],
|
|
rules: {
|
|
...getNamingConventionRule({}, true),
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.d.ts'],
|
|
rules: {
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
|
|
rules: {
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
patterns: [
|
|
{
|
|
group: ['../'],
|
|
message: `Relative imports are not allowed. Please use '~/' instead.`,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|