Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -561,14 +561,11 @@ export const lint = task({
description: "Runs eslint on the compiler and scripts sources.",
run: async () => {
const folder = ".";
const formatter = cmdLineOptions.ci ? "stylish" : "autolinkable-stylish";
const args = [
"node_modules/eslint/bin/eslint",
"--cache",
"--cache-location",
`${folder}/.eslintcache`,
"--format",
formatter,
"--report-unused-disable-directives",
"--max-warnings",
"0",
Expand Down
5 changes: 4 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
regexpPlugin.configs["flat/recommended"],
regexpPlugin.configs.recommended,
{
plugins: {
local: {
Expand Down Expand Up @@ -94,6 +94,9 @@ export default tseslint.config(
"no-cond-assign": "off",
"no-control-regex": "off",
"no-inner-declarations": "off",
"no-useless-assignment": "off",
"no-unassigned-vars": "off",
"preserve-caught-error": "off",

// @typescript-eslint/eslint-plugin
"@typescript-eslint/naming-convention": [
Expand Down
2 changes: 1 addition & 1 deletion knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"ignore": [
"scripts/failed-tests.d.cts"
],
"ignoreDependencies": ["c8", "eslint-formatter-autolinkable-stylish", "mocha-fivemat-progress-reporter", "monocart-coverage-reports"],
"ignoreDependencies": ["c8", "mocha-fivemat-progress-reporter", "monocart-coverage-reports"],
"ignoreExportsUsedInFile": {
"enum": true,
"interface": true,
Expand Down
2,622 changes: 1,116 additions & 1,506 deletions package-lock.json

Large diffs are not rendered by default.

33 changes: 16 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@dprint/formatter": "^0.4.1",
"@dprint/typescript": "0.93.4",
"@esfx/canceltoken": "^1.0.0",
"@eslint/js": "^9.39.1",
"@eslint/js": "^10.0.1",
"@octokit/rest": "^22.0.1",
"@types/chai": "^4.3.20",
"@types/minimist": "^1.2.5",
Expand All @@ -51,36 +51,35 @@
"@types/node": "latest",
"@types/source-map-support": "^0.5.10",
"@types/which": "^3.0.4",
"@typescript-eslint/rule-tester": "^8.47.0",
"@typescript-eslint/type-utils": "^8.47.0",
"@typescript-eslint/utils": "^8.47.0",
"azure-devops-node-api": "^15.1.1",
"@typescript-eslint/rule-tester": "^8.56.0",
"@typescript-eslint/type-utils": "^8.56.0",
"@typescript-eslint/utils": "^8.56.0",
"azure-devops-node-api": "^15.1.3",
"c8": "^10.1.3",
"chai": "^4.5.0",
"chokidar": "^4.0.3",
"diff": "^8.0.2",
"diff": "^8.0.3",
"dprint": "^0.49.1",
"esbuild": "^0.27.0",
"eslint": "^9.39.1",
"eslint-formatter-autolinkable-stylish": "^1.4.0",
"eslint-plugin-regexp": "^2.10.0",
"fast-xml-parser": "^5.3.2",
"esbuild": "^0.27.3",
"eslint": "^10.0.1",
"eslint-plugin-regexp": "^3.0.0",
"fast-xml-parser": "^5.3.7",
"glob": "^10.5.0",
"globals": "^16.5.0",
"hereby": "^1.11.1",
"globals": "^17.3.0",
"hereby": "^1.12.0",
"jsonc-parser": "^3.3.1",
"knip": "^5.70.0",
"knip": "^5.84.1",
"minimist": "^1.2.8",
"mocha": "^10.8.2",
"mocha-fivemat-progress-reporter": "^0.1.0",
"monocart-coverage-reports": "^2.12.9",
"ms": "^2.1.3",
"picocolors": "^1.1.1",
"playwright": "^1.56.1",
"playwright": "^1.58.2",
"source-map-support": "^0.5.21",
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0",
"typescript-eslint": "^8.56.0",
"which": "^3.0.1"
},
"overrides": {
Expand Down Expand Up @@ -112,7 +111,7 @@
},
"packageManager": "npm@8.19.4",
"volta": {
"node": "20.1.0",
"node": "22.22.0",
"npm": "8.19.4"
}
}
2 changes: 1 addition & 1 deletion scripts/build/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const unset = Symbol();
* @returns {() => T}
*/
export function memoize(fn) {
/** @type {T | unset} */
/** @type {T | typeof unset} */
let value = unset;
return () => {
if (value === unset) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/eslint/rules/argument-trivia.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const unset = Symbol();
* @returns {() => T}
*/
function memoize(fn) {
/** @type {T | unset} */
/** @type {T | typeof unset} */
let value = unset;
return () => {
if (value === unset) {
Expand Down Expand Up @@ -43,7 +43,7 @@ module.exports = createRule({
defaultOptions: [],

create(context) {
const sourceCode = context.getSourceCode();
const sourceCode = context.sourceCode;
const sourceCodeText = sourceCode.getText();

/** @type {(name: string) => boolean} */
Expand Down
2 changes: 1 addition & 1 deletion scripts/eslint/rules/jsdoc-format.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = createRule({
defaultOptions: [],

create(context) {
const sourceCode = context.getSourceCode();
const sourceCode = context.sourceCode;
const atInternal = "@internal";
const jsdocStart = "/**";

Expand Down