Skip to content
Closed
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
27 changes: 15 additions & 12 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
import header from "eslint-plugin-header";
import header from "@tony.ganchev/eslint-plugin-header";
import importPlugin from "eslint-plugin-import";

// https://github.com/Stuk/eslint-plugin-header/issues/57#issuecomment-2378485611
header.rules.header.meta.schema = false;

export default tseslint.config(
{
ignores: ["*.config.*", "dist/**"],
Expand Down Expand Up @@ -37,14 +34,20 @@ export default tseslint.config(
"guard-for-in": "error",
"header/header": [
1,
"block",
[
"!",
" * Copyright (c) Microsoft Corporation. All rights reserved.",
" * Licensed under the MIT License.",
" ",
],
1,
{
header: {
commentType: "block",
lines: [
"!",
" * Copyright (c) Microsoft Corporation. All rights reserved.",
" * Licensed under the MIT License.",
" ",
],
},
trailingEmptyLines: {
minimum: 1
}
}
],
"id-denylist": "off",
"id-match": "off",
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
"devDependencies": {
"@playwright/test": "^1.58.2",
"@storybook/react-vite": "^10.2.14",
"@tony.ganchev/eslint-plugin-header": "^3.2.4",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"downlevel-dts": "^0.11.0",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.32.0",
"monosize": "^0.8.0",
"monosize-bundler-webpack": "^0.3.1",
Expand All @@ -67,4 +67,4 @@
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1"
}
}
}