Skip to content

Commit 5a9318f

Browse files
committed
Migrate config files
1 parent 1effa75 commit 5a9318f

File tree

6 files changed

+30
-19
lines changed

6 files changed

+30
-19
lines changed

biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
33
"extends": ["@sumup-oss/foundry/biome"]
44
}

eslint.config.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,26 @@
1313
* limitations under the License.
1414
*/
1515

16-
import { configs } from '@sumup-oss/foundry/eslint';
16+
import { configs, defineConfig } from '@sumup-oss/foundry/eslint';
1717
import vitest from '@vitest/eslint-plugin';
1818

19-
export default [
20-
configs.ignore,
19+
export default defineConfig([
20+
configs.ignores,
2121
configs.javascript,
22-
configs.typescript,
23-
configs.browser,
24-
configs.tests({ plugins: { vitest } }),
25-
configs.openSource,
2622
{
23+
extends: [configs.typescript],
2724
languageOptions: {
2825
parserOptions: {
2926
projectService: true,
27+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
3028
tsconfigRootDir: import.meta.dirname,
3129
},
3230
},
3331
},
34-
];
32+
configs.browser,
33+
configs.node,
34+
{
35+
extends: [vitest.configs.recommended, configs.tests],
36+
},
37+
configs.openSource,
38+
]);

lint-staged.config.cjs renamed to husky.config.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
* limitations under the License.
1414
*/
1515

16-
module.exports = require('@sumup-oss/foundry/lint-staged')();
16+
const { defineConfig } = require('@sumup-oss/foundry/husky');
17+
18+
module.exports = defineConfig();

.huskyrc.cjs renamed to lint-staged.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
* limitations under the License.
1414
*/
1515

16-
module.exports = require('@sumup-oss/foundry/husky')();
16+
import { defineConfig } from '@sumup-oss/foundry/lint-staged';
17+
18+
export default defineConfig();

package-lock.json

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"dev": "npm run start",
2929
"build": "tsc",
3030
"docs": "typedoc",
31-
"lint": "biome check && eslint src",
32-
"lint:fix": "biome check --write && eslint src --fix",
31+
"lint": "biome check && eslint .",
32+
"lint:fix": "biome check --write && eslint . --fix",
3333
"test": "vitest",
3434
"test:ci": "vitest run --coverage",
3535
"check:security": "audit-ci --critical",
@@ -50,6 +50,7 @@
5050
"jest-extended": "^6.0.0",
5151
"license-checker": "^25.0.1",
5252
"temporal-polyfill": "^0.3.0",
53+
"tinyspy": "^4.0.4",
5354
"typedoc": "^0.28.1",
5455
"typedoc-github-wiki-theme": "^2.1.0",
5556
"typedoc-plugin-markdown": "^4.3.1",

0 commit comments

Comments
 (0)