-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into deps/js/openai-4.x
- Loading branch information
Showing
64 changed files
with
565 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Array } from "effect"; | ||
|
||
import type { ESConfig } from "./utils.js"; | ||
|
||
export const jsdoc = (config: readonly ESConfig[]): readonly ESConfig[] => | ||
Array.appendAll(config, [ | ||
{ | ||
rules: { | ||
"jsdoc/require-description": [ | ||
"error", | ||
{ exemptedBy: ["inheritdoc", "internal"] }, | ||
], | ||
// conflicts with tsdoc | ||
"jsdoc/check-tag-names": "off", | ||
}, | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import type { PartialDeep } from "type-fest"; | ||
import { Array } from "effect"; | ||
import { testsFilePatterns } from "eslint-config-sheriff"; | ||
|
||
import type { ESConfig } from "./utils.js"; | ||
|
||
import type { Options } from "./index.js"; | ||
|
||
export const vitest = | ||
(options: PartialDeep<Options>) => | ||
(config: readonly ESConfig[]): readonly ESConfig[] => { | ||
if (!options.enabled?.tests) { | ||
return config; | ||
} | ||
|
||
return Array.appendAll(config, [ | ||
{ | ||
files: [...testsFilePatterns], | ||
rules: { | ||
// this rule is too buggy | ||
"vitest/require-hook": "off", | ||
// in tests non-null assertions are fine | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
}, | ||
}, | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { createBase } from "@local/eslint/deprecated"; | ||
import { create } from "@local/eslint"; | ||
|
||
export default [ | ||
...createBase(import.meta.dirname), | ||
...create(import.meta.dirname, { | ||
enabled: { | ||
frontend: false, | ||
playwright: false, | ||
tests: true, | ||
storybook: false, | ||
}, | ||
}), | ||
{ | ||
rules: { | ||
"@typescript-eslint/no-redeclare": "off", | ||
"unicorn/filename-case": "off", | ||
"func-names": "off", | ||
"canonical/filename-no-index": "off", | ||
"@typescript-eslint/no-empty-object-type": [ | ||
"error", | ||
{ allowInterfaces: "with-single-extends" }, | ||
], | ||
"fsecond/prefer-destructured-optionals": "off", | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.