Skip to content

Commit

Permalink
ci: Prevent relative path imports (#464)
Browse files Browse the repository at this point in the history
Co-authored-by: Seam Bot <[email protected]>
  • Loading branch information
Andrewjeska and seambot authored Sep 14, 2023
1 parent baf022d commit 889d1ad
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,12 @@
"8080": { "label": "Example" }
},
"postCreateCommand": "npm install",
"remoteUser": "node"
"remoteUser": "node",
"customizations": {
"vscode": {
"settings": {
"typescript.preferences.importModuleSpecifier": "non-relative"
}
}
}
}
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
]
}
],
"simple-import-sort/exports": "error"
"simple-import-sort/exports": "error",
"import/no-relative-parent-imports": "error"
},
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Temporary Items

# VisualStudioCode
.vscode/*
# !.vscode/settings.json
!.vscode/settings.json
# !.vscode/tasks.json
# !.vscode/launch.json
# !.vscode/extensions.json
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import/no-relative-parent-imports
import '../src/index.scss'

import { SeamProvider } from '@seamapi/react'
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.preferences.importModuleSpecifier": "non-relative"
}
1 change: 1 addition & 0 deletions api/fake-seam-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createFake } from '@seamapi/fake-seam-connect'
import axios from 'axios'
import getRawBody from 'raw-body'

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

// Taken from seam-connect
Expand Down

0 comments on commit 889d1ad

Please sign in to comment.