mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
816a474a46
* chore(deps-dev): bump oxlint-tsgolint from 0.1.6 to 0.21.1 Bumps [oxlint-tsgolint](https://github.com/oxc-project/tsgolint) from 0.1.6 to 0.21.1. - [Release notes](https://github.com/oxc-project/tsgolint/releases) - [Commits](https://github.com/oxc-project/tsgolint/compare/v0.1.6...v0.21.1) --- updated-dependencies: - dependency-name: oxlint-tsgolint dependency-version: 0.21.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: Adjust lint config for newer oxlint-tsgolint Pin oxlint to 1.50.0 and oxlint-tsgolint to 0.14.2. Older oxlint can't parse newer tsgolint diagnostic payloads, and tsgolint >=0.15 rejects moduleResolution: "node" — moving off it requires either "bundler" (currently breaks @hocuspocus@1.1.3 typings, which lack a types condition in their package.json exports) or "node16"/"nodenext" (would require explicit .js extensions on every relative import). Add per-package ignorePatterns since they no longer propagate from the root config when nested configs are present. Drop tsconfig baseUrl (typescript-go in tsgolint rejects it) and add a plugins/* path alias so cross-plugin imports keep resolving. The babel resolver is switched from babel-plugin-tsconfig-paths-module- resolver (which required baseUrl) to babel-plugin-module-resolver with explicit aliases. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
36 lines
785 B
JSON
36 lines
785 B
JSON
{
|
|
"extends": ["../.oxlintrc.json"],
|
|
"ignorePatterns": ["**/*.d.ts"],
|
|
"plugins": ["oxc", "eslint", "typescript", "react"],
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.{jsx,tsx}"],
|
|
"rules": {
|
|
"no-restricted-globals": [
|
|
"error",
|
|
{
|
|
"name": "crypto",
|
|
"message": "Do not use, does not work in environments without SSL."
|
|
}
|
|
],
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": ["mime-types"],
|
|
"message": "Do not use the mime-types package in the browser."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"plugins": ["import"]
|
|
}
|
|
],
|
|
"env": {
|
|
"jest": true,
|
|
"browser": true
|
|
}
|
|
}
|