mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
new lint rules
This commit is contained in:
parent
8514a3baaf
commit
83191d394b
@ -4,7 +4,13 @@ import { getNamingConventionRule, tsFileExtensions } from '@blitz/eslint-plugin/
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
ignores: ['**/dist', '**/node_modules', '**/.wrangler', '**/bolt/build', '**/.history'],
|
ignores: [
|
||||||
|
'**/dist',
|
||||||
|
'**/node_modules',
|
||||||
|
'**/.wrangler',
|
||||||
|
'**/bolt/build',
|
||||||
|
'**/.history',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
...blitzPlugin.configs.recommended(),
|
...blitzPlugin.configs.recommended(),
|
||||||
{
|
{
|
||||||
@ -38,7 +44,7 @@ export default [
|
|||||||
patterns: [
|
patterns: [
|
||||||
{
|
{
|
||||||
group: ['../'],
|
group: ['../'],
|
||||||
message: `Relative imports are not allowed. Please use '~/' instead.`,
|
message: 'Relative imports are not allowed. Please use \'~/\' instead.',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user