Skip to content

Commit

Permalink
updo and added ability to import internal on scoped packages
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Oct 8, 2024
1 parent 4aab451 commit 356c88f
Show file tree
Hide file tree
Showing 10 changed files with 3,452 additions and 1,003 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
"@xylabs/ts-scripts-yarn3": "workspace:^"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/jest": "^29.5.13",
"@types/json-schema": "^7.0.15",
"@types/node": "^22.5.0",
"@types/node": "^22.7.5",
"@xylabs/eslint-config-flat": "workspace:^",
"@xylabs/ts-scripts-yarn3": "workspace:^",
"@xylabs/tsconfig": "workspace:^",
"eslint": "^9.9.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint": "^9.12.0",
"eslint-import-resolver-typescript": "^3.6.3",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"jest-sorted": "^1.0.15",
"rimraf": "^6.0.1",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"peerDependencies": {
"typescript": "^5"
Expand Down
23 changes: 12 additions & 11 deletions packages/eslint-config-flat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,28 @@
"package-compile2": "yarn tsc -p tsconfig.json --module es2022 --outDir dist --rootDir src"
},
"dependencies": {
"@stylistic/eslint-plugin": "^2.6.4",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"eslint": "^9.9.0",
"eslint-plugin-depend": "^0.10.0",
"eslint-plugin-import-x": "^3.1.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"eslint": "^9.12.0",
"eslint-plugin-depend": "^0.11.0",
"eslint-plugin-import-x": "^4.3.1",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-md": "^1.0.19",
"eslint-plugin-package-json": "^0.15.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sonarjs": "^1.0.4",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-sonarjs": "^2.0.3",
"eslint-plugin-unicorn": "^56.0.0",
"eslint-plugin-workspaces": "^0.10.1",
"jsonc-eslint-parser": "^2.4.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "workspace:^",
"@xylabs/tsconfig": "workspace:^",
"eslint": "^9.9.0",
"typescript": "^5.5.4"
"eslint": "^9.12.0",
"typescript": "^5.6.2"
},
"publishConfig": {
"access": "public"
}
}
}
1 change: 1 addition & 0 deletions packages/eslint-config-flat/src/import/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const importConfig: Linter.Config = {
'warn',
{
allow: [
'@*/**', // Allow imports from any @scoped package
// Allow imports to any index.js file
'**/index.js',
'**/index.ts',
Expand Down
14 changes: 7 additions & 7 deletions packages/eslint-config-react-flat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@
"module": "./dist/node/index.mjs",
"types": "./dist/node/index.d.ts",
"dependencies": {
"@eslint-react/eslint-plugin": "^1.12.0",
"@eslint-react/eslint-plugin": "^1.14.3",
"@xylabs/eslint-config-flat": "workspace:^",
"eslint": "^9.9.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-refresh": "^0.4.10",
"globals": "^15.9.0"
"eslint": "^9.12.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-refresh": "^0.4.12",
"globals": "^15.10.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "workspace:^",
"@xylabs/tsconfig": "workspace:^",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"publishConfig": {
"access": "public"
}
}
}
8 changes: 4 additions & 4 deletions packages/ts-scripts-react-yarn3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
"@types/yargs": "^17.0.33",
"@xylabs/ts-scripts-yarn3": "workspace:^",
"@xylabs/tsconfig": "workspace:^",
"publint": "^0.2.10",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
"publint": "^0.2.11",
"tsup": "^8.3.0",
"typescript": "^5.6.2"
},
"peerDependencies": {
"typescript": "^5"
Expand All @@ -98,4 +98,4 @@
"publishConfig": {
"access": "public"
}
}
}
36 changes: 18 additions & 18 deletions packages/ts-scripts-yarn3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@
"package-recompile": "tsup && publint"
},
"dependencies": {
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^11.1.6",
"@swc/core": "^1.7.14",
"@types/node": "^22.5.0",
"@rollup/plugin-typescript": "^12.1.0",
"@swc/core": "^1.7.28",
"@types/node": "^22.7.5",
"@types/yargs": "^17.0.33",
"@xylabs/tsconfig": "workspace:^",
"@xylabs/tsconfig-dom": "workspace:^",
Expand All @@ -102,45 +102,45 @@
"cosmiconfig-typescript-loader": "^5.0.0",
"cpy": "^11.1.0",
"depcheck": "^1.4.7",
"esbuild": "^0.23.1",
"eslint": "^9.9.0",
"esbuild": "^0.24.0",
"eslint": "^9.12.0",
"glob": "^11.0.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"jest-mock-extended": "^3.0.7",
"jest-mock-extended": "^4.0.0-beta1",
"jest-sorted": "^1.0.15",
"jsonc-eslint-parser": "^2.4.0",
"license-checker": "^25.0.1",
"node-cmd": "^5.0.0",
"npm-check-updates": "^17.1.0",
"npm-check-updates": "^17.1.3",
"npm-package-json-lint": "^8.0.0",
"npm-package-json-lint-config-default": "^7.0.1",
"parse-git-config": "^3.0.0",
"publint": "^0.2.10",
"publint": "^0.2.11",
"reflect-metadata": "^0.2.2",
"rollup": "^4.21.0",
"rollup": "^4.24.0",
"rollup-plugin-exclude-dependencies-from-bundle": "^1.1.23",
"rollup-plugin-node-externals": "^7.1.3",
"sort-package-json": "^2.10.1",
"supertest": "^7.0.0",
"ts-jest": "^29.2.4",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"ts-prune": "^0.10.3",
"tsc-prog": "^2.3.0",
"tslib": "^2.6.3",
"tsup": "^8.2.4",
"typedoc": "^0.26.6",
"tslib": "^2.7.0",
"tsup": "^8.3.0",
"typedoc": "^0.26.8",
"types-package-json": "^2.0.39",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/eslint": "^9.6.0",
"@types/eslint": "^9.6.1",
"@types/license-checker": "^25.0.6",
"@types/parse-git-config": "^3.0.4",
"@xylabs/tsconfig": "workspace:^",
"publint": "^0.2.10",
"publint": "^0.2.11",
"rimraf": "^6.0.1",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"peerDependencies": {
"typescript": "^5"
Expand All @@ -152,4 +152,4 @@
"publishConfig": {
"access": "public"
}
}
}
4 changes: 1 addition & 3 deletions packages/ts-scripts-yarn3/src/actions/cycle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { cwd } from 'node:process'

import { ESLint } from 'eslint'

export const cycle = async () => {
Expand All @@ -10,7 +8,7 @@ export const cycle = async () => {
const results = await eslint.lintFiles(['src/**/*.ts*', 'packages/**/src/**/*.ts*'])

const formatter = await eslint.loadFormatter('stylish')
const resultText = formatter.format(results, { cwd: cwd(), rulesMeta: {} })
const resultText = formatter.format(results)
console.log(resultText)

return results.length
Expand Down
4 changes: 2 additions & 2 deletions packages/tsconfig-dom-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"package-compile": "echo Compiled"
},
"dependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^22.5.0",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.5",
"@types/reflect-metadata": "^0.1.0",
"@xylabs/tsconfig-dom": "workspace:^",
"jest-extended": "^4.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/tsconfig-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"jest-sorted": "^1.0.15"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^22.5.0",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.5",
"@types/reflect-metadata": "^0.1.0",
"@xylabs/ts-scripts-yarn3": "workspace:^",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"peerDependencies": {
"typescript": "^5"
Expand Down
Loading

0 comments on commit 356c88f

Please sign in to comment.