Commit
·
83191d3
1
Parent(s):
8514a3b
new lint rules
Browse files- eslint.config.mjs +8 -2
eslint.config.mjs
CHANGED
@@ -4,7 +4,13 @@ import { getNamingConventionRule, tsFileExtensions } from '@blitz/eslint-plugin/
|
|
4 |
|
5 |
export default [
|
6 |
{
|
7 |
-
ignores: [
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
},
|
9 |
...blitzPlugin.configs.recommended(),
|
10 |
{
|
@@ -38,7 +44,7 @@ export default [
|
|
38 |
patterns: [
|
39 |
{
|
40 |
group: ['../'],
|
41 |
-
message:
|
42 |
},
|
43 |
],
|
44 |
},
|
|
|
4 |
|
5 |
export default [
|
6 |
{
|
7 |
+
ignores: [
|
8 |
+
'**/dist',
|
9 |
+
'**/node_modules',
|
10 |
+
'**/.wrangler',
|
11 |
+
'**/bolt/build',
|
12 |
+
'**/.history',
|
13 |
+
],
|
14 |
},
|
15 |
...blitzPlugin.configs.recommended(),
|
16 |
{
|
|
|
44 |
patterns: [
|
45 |
{
|
46 |
group: ['../'],
|
47 |
+
message: 'Relative imports are not allowed. Please use \'~/\' instead.',
|
48 |
},
|
49 |
],
|
50 |
},
|