diff --git a/.eslintrc.json b/.eslintrc.json index 2e3271fe..2f117665 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -7,8 +7,7 @@ "extends": [ "eslint:recommended", "plugin:eslint-plugin/recommended", - "plugin:n/recommended", - "plugin:prettier/recommended" + "plugin:n/recommended" ], "rules": { "no-var": "error", @@ -21,7 +20,6 @@ { "pattern": "^(Enforce|Require|Disallow|Prefer).+\\.$" } ], "eslint-plugin/prefer-placeholders": "error", - "eslint-plugin/test-case-shorthand-strings": "error", - "prettier/prettier": "error" + "eslint-plugin/test-case-shorthand-strings": "error" } } diff --git a/package-lock.json b/package-lock.json index c7b3742c..649ee8af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,12 +12,10 @@ "@typescript-eslint/parser": "^7.17.0", "doctoc": "^2.2.1", "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", "eslint-doc-generator": "^1.7.1", "eslint-plugin-eslint-plugin": "^6.2.0", "eslint-plugin-jest": "^28.6.0", "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.2.1", "globals": "^15.8.0", "husky": "^9.1.1", "jest": "^29.7.0", @@ -1258,18 +1256,6 @@ "node": ">= 8" } }, - "node_modules/@pkgr/core": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", - "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", @@ -2926,18 +2912,6 @@ "eslint": ">=6.0.0" } }, - "node_modules/eslint-config-prettier": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", - "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, "node_modules/eslint-doc-generator": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/eslint-doc-generator/-/eslint-doc-generator-1.7.1.tgz", @@ -3219,36 +3193,6 @@ "eslint": ">=8.23.0" } }, - "node_modules/eslint-plugin-prettier": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.1.tgz", - "integrity": "sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.9.1" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": "*", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, "node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", @@ -3464,12 +3408,6 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", @@ -6419,18 +6357,6 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/pretty-format": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", @@ -7188,22 +7114,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/synckit": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.1.tgz", - "integrity": "sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A==", - "dev": true, - "dependencies": { - "@pkgr/core": "^0.1.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - } - }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", diff --git a/package.json b/package.json index f6003dc7..f851ba77 100644 --- a/package.json +++ b/package.json @@ -26,21 +26,15 @@ "lint": "npm-run-all \"lint:*\"", "lint:eslint-docs": "npm run update:eslint-docs && git diff --exit-code", "lint:js": "eslint --report-unused-disable-directives .", + "lint:prettier": "prettier --check .", "prepare": "husky", "test": "jest --coverage", "update:eslint-docs": "eslint-doc-generator && npm run format" }, "lint-staged": { - "{README.md,CONTRIBUTING.md}": [ - "doctoc --maxlevel 3 --notitle" - ], - "*.js": [ - "prettier --write", - "eslint --report-unused-disable-directives --fix" - ], - "*.+(json|md)": [ - "prettier --write" - ] + "*": "prettier --write --ignore-unknown", + "{README.md,CONTRIBUTING.md}": "doctoc --maxlevel 3 --notitle", + "*.js": "eslint --report-unused-disable-directives --fix" }, "prettier": { "proseWrap": "always", @@ -69,12 +63,10 @@ "@typescript-eslint/parser": "^7.17.0", "doctoc": "^2.2.1", "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", "eslint-doc-generator": "^1.7.1", "eslint-plugin-eslint-plugin": "^6.2.0", "eslint-plugin-jest": "^28.6.0", "eslint-plugin-n": "^17.9.0", - "eslint-plugin-prettier": "^5.2.1", "globals": "^15.8.0", "husky": "^9.1.1", "jest": "^29.7.0",