Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
noahnu committed Nov 6, 2024
1 parent f547297 commit ca308e8
Show file tree
Hide file tree
Showing 42 changed files with 2,698 additions and 2,356 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc.js

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: (!contains(github.event.head_commit.message, '[skip ci]'))
steps:
- uses: noahnu/.github/.github/actions/setup-node@main

lint:
name: Lint
runs-on: ubuntu-latest
needs: [prepare]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: noahnu/.github/.github/actions/setup-node@main

- name: Build Lint Plugins
run: |
yarn workspace @noahnu/eslint-import-resolver-require prepack
- name: Run Lint
run: |
yarn lint:ci
Expand All @@ -30,7 +33,6 @@ jobs:
name: Build
runs-on: ubuntu-latest
needs: [prepare]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: noahnu/.github/.github/actions/setup-node@main

Expand All @@ -42,7 +44,6 @@ jobs:
name: Test
runs-on: ubuntu-latest
needs: [prepare]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: noahnu/.github/.github/actions/setup-node@main

Expand All @@ -54,7 +55,7 @@ jobs:
name: Preview
runs-on: ubuntu-latest
needs: [prepare]
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.event_name == 'pull_request'"
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: write
Expand Down
4 changes: 4 additions & 0 deletions .monoweave/509929e5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@noahnu/inject-inline-html-webpack-plugin": patch
---
Initial release.
8 changes: 8 additions & 0 deletions .monoweave/bb412937.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@noahnu/eslint-config": major
"@noahnu/eslint-import-resolver-require": major
"@noahnu/unused-files": patch
---
Update ESLint config and plugins to ESLint v9.

Update misc. dependencies.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/iron
lts/jod
18 changes: 10 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"eslint.useFlatConfig": true,
"prettier.enable": false
}
14 changes: 12 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ npmRegistries:
//registry.npmjs.org/:
npmAuthToken: "${NPM_PUBLISH_TOKEN:-invalid}"

enableTransparentWorkspaces: false

logFilters:
- pattern: "doesn't provide eslint-plugin-import (*), requested by eslint-import-resolver-typescript"
level: discard

supportedArchitectures:
os:
- current
- darwin
- linux

cpu:
- current
- x86
- x64
- arm64
21 changes: 21 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// @ts-check

// @ts-expect-error missing types
require('tsx/cjs')

const eslintConfig = require('@noahnu/eslint-config')

/**
* @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigArray}
*/
const config = [
...eslintConfig,
{
languageOptions: {
parserOptions: { project: './tsconfig.lint.json', tsconfigRootDir: __dirname },
},
},
{ ignores: ['**/coverage', '**/reports', '**/.*', 'packages/**/*.js', '**/lib'] },
]

module.exports = config
11 changes: 0 additions & 11 deletions monoweave.config.js

This file was deleted.

10 changes: 10 additions & 0 deletions monoweave.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# https://monoweave.github.io/monoweave/configuration/
preset: "monoweave/preset-manual"
maxConcurrentWrites: 1
changesetIgnorePatterns:
- "**/*.test.{ts,tsx,mts,cts}"
- "**/*.md"
commitIgnorePatterns:
- '\[skip-ci\]'
autoCommitMessage: "chore: releasing packages [skip-ci]"
47 changes: 23 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,40 @@
"registry": "https://registry.npmjs.org/"
},
"workspaces": [
"packages/*"
"packages/*",
"packages/eslint/*",
"packages/webpack-plugins/*"
],
"packageManager": "yarn@4.3.0",
"packageManager": "yarn@4.5.1+sha512.341db9396b6e289fecc30cd7ab3af65060e05ebff4b3b47547b278b9e67b08f485ecd8c79006b405446262142c7a38154445ef7f17c1d5d1de7d90bf9ce7054d",
"devDependencies": {
"@jest/types": "^29.6.3",
"@monoweave/plugin-github": "^2.3.0",
"@noahnu/eslint-config": "^1.0.0",
"@tophat/commitizen-adapter": "^1.0.2",
"@tophat/commitlint-config": "^1.0.2",
"@tophat/conventional-changelog-config": "^1.0.1",
"@monoweave/plugin-github": "^2.7.0",
"@noahnu/eslint-config": "workspace:^",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.6",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@yarnpkg/core": "^4.1.1",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@typescript-eslint/utils": "^8.13.0",
"@yarnpkg/sdks": "^3.1.3",
"@yarnpkg/types": "^4.0.0",
"commitizen": "^4.3.0",
"eslint": "^8.57.0",
"esbuild": "^0.24.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-node": "^0.3.9",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.6",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"typescript": "5.4.5"
"tsx": "^4.19.2",
"typescript": "^5.6.3"
},
"scripts": {
"clean": "rm -rf reports && yarn workspaces foreach -vpi --worktree run clean",
Expand All @@ -66,7 +66,6 @@
"release": "monoweave --log-level 0 --plugins @monoweave/plugin-github"
},
"dependencies": {
"@monoweave/cli": "^1.5.0",
"@monoweave/types": "^1.5.0"
"@monoweave/cli": "^1.10.0"
}
}
14 changes: 0 additions & 14 deletions packages/eslint-config/src/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/eslint-config/src/jest/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": {
"type": "git",
"url": "https://github.com/noahnu/nodejs-tools.git",
"directory": "packages/eslint-config"
"directory": "packages/eslint/eslint-config"
},
"license": "MIT",
"author": {
Expand All @@ -14,8 +14,7 @@
},
"scripts": {
"clean": "run workspace:clean \"$(pwd)\"",
"prepack": "run workspace:build \"$(pwd)\"",
"run-local": "run -T ts-node --transpileOnly ./src/bin.ts"
"prepack": "run workspace:build \"$(pwd)\""
},
"main": "./src/index.ts",
"exports": {
Expand Down Expand Up @@ -52,35 +51,40 @@
],
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/eslint": "^8.56.10",
"@types/eslint": "^9.6.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.6",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@typescript-eslint/utils": "^7.13.1",
"eslint": "^8.57.0",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@typescript-eslint/utils": "^8.13.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-node": "^0.3.9",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import-x": "^0.5.3",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.3.2"
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import-x": "^4.4.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3",
"typescript": "^5.6.3"
},
"dependencies": {
"@eslint/js": "^9.14.0",
"@noahnu/eslint-import-resolver-require": "workspace:^0.0.5",
"debug": "^4.3.5",
"eslint-import-resolver-typescript": "^3.6.1"
"@types/eslint-config-prettier": "^6.11.3",
"debug": "^4.3.7",
"eslint-import-resolver-typescript": "^3.6.3",
"globals": "^15.12.0",
"typescript-eslint": "^8.13.0"
},
"peerDependencies": {
"@noahnu/eslint-import-resolver-require": "workspace:^0.0.5",
"@typescript-eslint/eslint-plugin": ">=7.13.1",
"@typescript-eslint/parser": ">=7.13.1",
"eslint": ">=8.57.0",
"@typescript-eslint/eslint-plugin": ">=8.0.0",
"@typescript-eslint/parser": ">=8.0.0",
"eslint": ">=9.0.0",
"eslint-config-prettier": ">=9.1.0",
"eslint-import-resolver-node": ">=0.3.9",
"eslint-import-resolver-typescript": ">=3.6.1",
"eslint-plugin-import-x": ">=0.5.3",
"eslint-plugin-import-x": ">=4.4.0",
"eslint-plugin-jest": ">=28.6.0",
"eslint-plugin-prettier": ">=5.1.3",
"prettier": ">=3.3.2",
Expand Down
Loading

0 comments on commit ca308e8

Please sign in to comment.