Skip to content

deps: Audit 03/12 #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 13, 2025
Merged
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
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

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

This file was deleted.

5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
node-version: [20, 22]
fail-fast: true
env:
YARN_IGNORE_NODE: 1
Expand All @@ -21,9 +21,6 @@ jobs:
- uses: moonrepo/setup-toolchain@v0
with:
auto-install: true
- uses: moonrepo/tool-version-action@v1
with:
node: ${{ matrix.node-version }}
- run: yarn install --immutable
- run: yarn setup
- run: moon ci --log debug --color
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
- uses: beemojs/conventional-pr-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 15 additions & 8 deletions .moon/tasks/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,35 @@ tasks:
- '@globs(tests)'
- '**/*.{md,mdx,yml,yaml,json}'

format-write:
command: 'prettier'
args:
- '--config'
- '@in(1)'
- '--ignore-path'
- '@in(0)'
- '--write'
- '.'
inputs:
- '/.prettierignore'
- '/.prettierrc.js'
local: true

# https://moonrepo.dev/docs/guides/examples/eslint
lint:
command: 'eslint'
args:
- '--ext'
- '.js,.jsx,.ts,.tsx'
- '--fix'
- '--report-unused-disable-directives'
- '--no-error-on-unmatched-pattern'
- '--exit-on-fatal-error'
- '--ignore-path'
- '@in(6)'
- '.'
inputs:
- '@globs(configs)'
- '@globs(sources)'
- '@globs(tests)'
- '@globs(typescript)'
- '**/.eslintrc'
- '**/.eslintrc.*'
- '/.eslintignore'
- '/.eslintrc.*'
- '/eslint.config.*'

# https://moonrepo.dev/docs/guides/examples/jest
test:
Expand Down
4 changes: 2 additions & 2 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ $schema: 'https://moonrepo.dev/schemas/toolchain.json'

# https://moonrepo.dev/docs/config/workspace#node
node:
version: '20.13.1'
version: '22.14.0'
packageManager: 'yarn'
yarn:
version: '4.2.2'
version: '4.7.0'

# Do not add an engines constraint as its abrasive for open source.
addEnginesConstraint: false
Expand Down
2 changes: 2 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node = "22.14.0"
yarn = "4.7.0"
894 changes: 0 additions & 894 deletions .yarn/releases/yarn-4.2.2.cjs

This file was deleted.

935 changes: 935 additions & 0 deletions .yarn/releases/yarn-4.7.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ logFilters:

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
yarnPath: .yarn/releases/yarn-4.7.0.cjs
53 changes: 53 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { defineConfig, globalIgnores } from 'eslint/config';
import moonConfig from 'eslint-config-moon';
import moonNodeConfig from 'eslint-config-moon/node';

const config = defineConfig([
globalIgnores([
'**/cjs/',
'**/coverage/',
'**/esm/',
'**/lib/',
'**/mjs/',
'**/node_modules/',
'**/*.d.ts',
'**/*.json',
'packages/eslint-config/*.js',
'packages/jest-preset/*.js',
]),
...moonConfig,
...moonNodeConfig,
{
rules: {
// Temporarily disabled
'unicorn/no-empty-file': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prefer-node-protocol': 'off',
},
},
{
files: ['packages/eslint-config/**/*'],
rules: { 'no-magic-numbers': 'off', 'sort-keys': 'off', 'import/no-default-export': 'off' },
},
{
files: ['packages/vscode-extension/**/*'],
rules: {
'max-classes-per-file': 'off',
'no-console': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
// We want to use exhaustive checks
'default-case': 'off',
// Random version conditionals
'no-magic-numbers': 'off',
// The `vscode` import isn't real
'import/no-unresolved': 'off',
// It doesnt like our `@moonrepo/types` package
'node/no-unpublished-import': 'off',
},
},
]);

// console.log(config);

export default config;
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"packages/*"
],
"devDependencies": {
"@babel/core": "^7.26.0",
"@moonrepo/cli": "^1.30.0",
"@babel/core": "^7.26.10",
"@moonrepo/cli": "^1.33.0",
"@moonrepo/dev": "workspace:*",
"eslint": "^8.57.1",
"eslint": "^9.22.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"lerna": "^8.1.9",
"lerna": "^8.2.1",
"packemon": "^4.1.1",
"prettier": "^3.4.1",
"typescript": "^5.7.2"
"prettier": "^3.5.3",
"typescript": "^5.8.2"
},
"packageManager": "yarn@4.2.2"
"packageManager": "yarn@4.7.0"
}
Loading