diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 25a76ab4..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,15 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Johannes Loher -// -// SPDX-License-Identifier: MIT - -module.exports = { - parser: "@typescript-eslint/parser", - parserOptions: { ecmaVersion: 2020, sourceType: "module" }, - env: { browser: true }, - extends: ["plugin:@typescript-eslint/recommended", "prettier"], - plugins: ["@typescript-eslint"], - overrides: [ - { files: ["./*.cjs"], rules: { "@typescript-eslint/no-var-requires": "off" } }, - { files: ["./spec/**/*"], env: { browser: false } }, - ], -}; diff --git a/commitlint.config.cjs b/commitlint.config.cjs deleted file mode 100644 index c52644d5..00000000 --- a/commitlint.config.cjs +++ /dev/null @@ -1,5 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Johannes Loher -// -// SPDX-License-Identifier: MIT - -module.exports = { extends: ["@commitlint/config-conventional"] }; diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 00000000..7401f777 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,8 @@ +// SPDX-FileCopyrightText: 2021 Johannes Loher +// +// SPDX-License-Identifier: MIT + +/** + * @type {import("@commitlint/types").UserConfig} + */ +export default { extends: ["@commitlint/config-conventional"] }; diff --git a/package.json b/package.json index e3048a08..f1e78aa4 100644 --- a/package.json +++ b/package.json @@ -93,5 +93,10 @@ "vitest": "3.0.6", "yargs": "17.7.2" }, - "packageManager": "pnpm@10.4.1" + "packageManager": "pnpm@10.4.1", + "pnpm": { + "onlyBuiltDependencies": [ + "@swc/core" + ] + } } diff --git a/.prettierrc.js b/prettier.config.js similarity index 76% rename from .prettierrc.js rename to prettier.config.js index d6ceb41d..c75da361 100644 --- a/.prettierrc.js +++ b/prettier.config.js @@ -2,6 +2,11 @@ // // SPDX-License-Identifier: MIT +// @ts-check + +/** + * @type {import("prettier").Config} + */ export default { semi: true, trailingComma: "all",