Skip to content

Commit 889d1ad

Browse files
Andrewjeskaseambot
andauthored
ci: Prevent relative path imports (#464)
Co-authored-by: Seam Bot <[email protected]>
1 parent baf022d commit 889d1ad

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

.devcontainer/devcontainer.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,12 @@
2222
"8080": { "label": "Example" }
2323
},
2424
"postCreateCommand": "npm install",
25-
"remoteUser": "node"
25+
"remoteUser": "node",
26+
"customizations": {
27+
"vscode": {
28+
"settings": {
29+
"typescript.preferences.importModuleSpecifier": "non-relative"
30+
}
31+
}
32+
}
2633
}

.eslintrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
]
3535
}
3636
],
37-
"simple-import-sort/exports": "error"
37+
"simple-import-sort/exports": "error",
38+
"import/no-relative-parent-imports": "error"
3839
},
3940
"overrides": [
4041
{

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Temporary Items
236236

237237
# VisualStudioCode
238238
.vscode/*
239-
# !.vscode/settings.json
239+
!.vscode/settings.json
240240
# !.vscode/tasks.json
241241
# !.vscode/launch.json
242242
# !.vscode/extensions.json

.storybook/preview.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line import/no-relative-parent-imports
12
import '../src/index.scss'
23

34
import { SeamProvider } from '@seamapi/react'

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.preferences.importModuleSpecifier": "non-relative"
3+
}

api/fake-seam-connect.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { createFake } from '@seamapi/fake-seam-connect'
55
import axios from 'axios'
66
import getRawBody from 'raw-body'
77

8+
// eslint-disable-next-line import/no-relative-parent-imports
89
import { seedFake } from '../.storybook/seed-fake.js'
910

1011
// Taken from seam-connect

0 commit comments

Comments
 (0)