diff --git a/.eslintrc b/.eslintrc index 2c6d6b5..f6f8081 100644 --- a/.eslintrc +++ b/.eslintrc @@ -13,7 +13,7 @@ "ecmaVersion": 2018, "sourceType": "module" }, - "plugins": ["unicorn", "header", "@vitest"], + "plugins": ["unicorn", "@tony.ganchev/header", "@vitest"], "rules": { "@typescript-eslint/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }], "@typescript-eslint/interface-name-prefix": "off", @@ -26,7 +26,7 @@ "eqeqeq": "error", "no-return-await": "error", "require-await": "error", - "header/header": [ + "@tony.ganchev/header/header": [ "error", "line", [" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"] diff --git a/package-lock.json b/package-lock.json index 9912b69..ddd1122 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "devDependencies": { "@cloudscape-design/build-tools": "github:cloudscape-design/build-tools#main", "@testing-library/react": "^11.2.7", + "@tony.ganchev/eslint-plugin-header": "^3.3.1", "@types/react": "^16.14.21", "@types/react-dom": "^16.9.14", "@typescript-eslint/eslint-plugin": "^8.24.1", @@ -22,7 +23,6 @@ "@vitest/eslint-plugin": "^1.3.13", "eslint": "^8.57.1", "eslint-config-prettier": "^6.15.0", - "eslint-plugin-header": "3.1.0", "eslint-plugin-prettier": "^3.4.1", "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", @@ -425,74 +425,6 @@ "@keyv/serialize": "^1.1.1" } }, - "node_modules/@cloudscape-design/build-tools": { - "version": "3.0.0", - "resolved": "git+ssh://git@github.com/cloudscape-design/build-tools.git#5686cc0c51bac7d610a72d2d054e9a5e349bf917", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "lodash": "^4.0.0", - "minimatch": "^10.0.1" - }, - "bin": { - "prepare-package-lock": "lib/scripts/prepare-package-lock.js" - }, - "peerDependencies": { - "stylelint": "^16.8.1" - } - }, - "node_modules/@cloudscape-design/build-tools/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@cloudscape-design/build-tools/node_modules/brace-expansion": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz", - "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@cloudscape-design/build-tools/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.2" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@cloudscape-design/component-toolkit": { - "version": "1.0.0-beta.138", - "resolved": "https://registry.npmjs.org/@cloudscape-design/component-toolkit/-/component-toolkit-1.0.0-beta.138.tgz", - "integrity": "sha512-soKxjnmFvY5XroSVqsD0FkYI2ZclF0FipdM8cfrF+eGhuOe5Vs2kcVH+OJz4ZYJddgwaGHCbTO6s0iOA16yVeA==", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.3.1", - "weekstart": "^2.0.0" - }, - "peerDependencies": { - "react": ">=16.8.0" - } - }, "node_modules/@csstools/color-helpers": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.0.1.tgz", @@ -1802,6 +1734,16 @@ "react-dom": "*" } }, + "node_modules/@tony.ganchev/eslint-plugin-header": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@tony.ganchev/eslint-plugin-header/-/eslint-plugin-header-3.3.1.tgz", + "integrity": "sha512-/Fj0+DaXbBfrlXmd3wBZkB8TIwGT3N++y/oTYxRABK/gzNxjgcBjt63xBpuHCYIXmH1EwuALd6XS1fzNG4S0zg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": ">=7.7.0" + } + }, "node_modules/@types/aria-query": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-4.2.2.tgz", @@ -3852,16 +3794,6 @@ "eslint": ">=3.14.1" } }, - "node_modules/eslint-plugin-header": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-header/-/eslint-plugin-header-3.1.0.tgz", - "integrity": "sha512-jKKcwMsB0/ftBv3UVmuQir1f8AmXzTS9rdzPkileW8/Nz9ivdea8vOU1ZrMbX+WH6CpwnHEo3403baSHk40Mag==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "eslint": ">=7.7.0" - } - }, "node_modules/eslint-plugin-prettier": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz", diff --git a/package.json b/package.json index ef2472d..6961788 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "devDependencies": { "@cloudscape-design/build-tools": "github:cloudscape-design/build-tools#main", "@testing-library/react": "^11.2.7", + "@tony.ganchev/eslint-plugin-header": "^3.3.1", "@types/react": "^16.14.21", "@types/react-dom": "^16.9.14", "@typescript-eslint/eslint-plugin": "^8.24.1", @@ -59,7 +60,6 @@ "@vitest/eslint-plugin": "^1.3.13", "eslint": "^8.57.1", "eslint-config-prettier": "^6.15.0", - "eslint-plugin-header": "3.1.0", "eslint-plugin-prettier": "^3.4.1", "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0",