From 08cbf8dfee05e6900d8d9ead3f26e9d138e9a072 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 21 Apr 2024 09:57:32 +1200 Subject: [PATCH] chore: drop the `tools` from `regenerate-docs` command and remove other old references to `tools` (#1561) * chore: remove references to old `tools` directory * chore: drop the `tools` from `regenerate-docs` command --- .eslintrc.js | 8 +------- .github/workflows/nodejs.yml | 4 ++-- package.json | 2 +- tsconfig.json | 2 +- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index f5c296ce2..32a2a9c05 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -98,17 +98,11 @@ module.exports = { globals, }, { - files: ['src/**/*', 'dangerfile.ts', 'tools/*', './jest.config.ts'], + files: ['src/**/*', 'dangerfile.ts', './jest.config.ts'], parserOptions: { sourceType: 'module', }, }, - { - files: ['tools/*'], - rules: { - 'node/shebang': 'off', - }, - }, { files: ['.eslintrc.js', 'babel.config.js'], rules: { diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 75256d525..6e3e035c3 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -137,12 +137,12 @@ jobs: - name: install run: yarn - name: regenerate docs - run: yarn tools:regenerate-docs + run: yarn regenerate-docs - name: report regenerated docs run: | git diff --name-only \ | xargs -I '{}' bash -c \ - 'echo "::error file={}::This needs to be regenerated by running \`tools:regenerate-docs\`" && false' + 'echo "::error file={}::This needs to be regenerated by running \`yarn regenerate-docs\`" && false' release: permissions: diff --git a/package.json b/package.json index 482f12897..31528756d 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "prettier:write": "prettier --write 'docs/**/*.md' README.md '.github/**' package.json tsconfig.json src/globals.json .yarnrc.yml", "postpublish": "pinst --enable", "test": "jest", - "tools:regenerate-docs": "yarn prepack && eslint-doc-generator", + "regenerate-docs": "yarn prepack && eslint-doc-generator", "typecheck": "tsc -p ." }, "commitlint": { diff --git a/tsconfig.json b/tsconfig.json index 6993dce26..bf3a1fbf5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,6 @@ "skipLibCheck": false }, "files": ["eslint-remote-tester.config.ts"], - "include": ["src/**/*", "tools/**/*"], + "include": ["src/**/*"], "exclude": ["src/rules/__tests__/fixtures/**/*"] }