Skip to content

Commit

Permalink
updo & anti enum rule
Browse files Browse the repository at this point in the history
4.2.5
  • Loading branch information
arietrouw committed Dec 18, 2024
1 parent 2bcfbbf commit 9d0a044
Show file tree
Hide file tree
Showing 12 changed files with 1,415 additions and 2,457 deletions.
6 changes: 0 additions & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ nmHoistingLimits: none

nodeLinker: node-modules

packageExtensions:
eslint-config-react-app@*:
dependencies:
"@babel/plugin-syntax-flow": "*"
"@babel/plugin-transform-react-jsx": "*"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
spec: "https://mskelton.dev/yarn-outdated/v3"
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xylabs/config",
"version": "4.2.4",
"version": "4.2.5",
"description": "TypeScript project scripts",
"keywords": [
"xylabs",
Expand Down Expand Up @@ -40,30 +40,30 @@
"deploy-next-major": "yarn workspaces foreach --all version major --deferred && yarn build && yarn version apply --all --prerelease && yarn workspaces foreach --all --parallel npm publish --tag next",
"deploy-patch": "yarn workspaces foreach --all version patch --deferred && yarn deploy-common"
},
"resolutions": {
"eslint": "9.14.0"
},
"dependencies": {
"@xylabs/ts-scripts-yarn3": "workspace:^",
"knip": "^5.36.7"
"knip": "^5.41.0"
},
"devDependencies": {
"@eslint/json": "^0.6.0",
"@eslint/json": "^0.9.0",
"@types/json-schema": "^7.0.15",
"@types/node": "^22.9.0",
"@types/node": "^22.10.2",
"@xylabs/eslint-config-flat": "workspace:^",
"@xylabs/ts-scripts-yarn3": "workspace:^",
"@xylabs/tsconfig": "workspace:^",
"dotenv": "^16.4.5",
"eslint": "^9.14.0",
"eslint-import-resolver-typescript": "^3.6.3",
"dotenv": "^16.4.7",
"eslint": "^9.17.0",
"eslint-import-resolver-typescript": "^3.7.0",
"rimraf": "^6.0.1",
"typescript": "^5.6.3",
"vitest": "^2.1.4"
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"peerDependencies": {
"typescript": "^5"
},
"resolutions": {
"eslint": "9.14.0"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=20.16"
Expand Down
27 changes: 14 additions & 13 deletions packages/eslint-config-flat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/package.json",
"name": "@xylabs/eslint-config-flat",
"version": "4.2.4",
"version": "4.2.5",
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
"keywords": [
"xylabs",
Expand Down Expand Up @@ -36,25 +36,26 @@
"package-compile2": "yarn tsc -p tsconfig.json --module es2022 --outDir dist --rootDir src"
},
"dependencies": {
"@eslint/json": "^0.6.0",
"@stylistic/eslint-plugin": "^2.10.1",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"eslint": "^9.14.0",
"@eslint/json": "^0.9.0",
"@stylistic/eslint-plugin": "^2.12.1",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"eslint": "^9.17.0",
"eslint-plugin-depend": "^0.12.0",
"eslint-plugin-import-x": "^4.4.2",
"eslint-plugin-import-x": "^4.5.1",
"eslint-plugin-md": "^1.0.19",
"eslint-plugin-package-json": "^0.15.6",
"eslint-plugin-package-json": "^0.18.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sonarjs": "^2.0.4",
"eslint-plugin-unicorn": "^56.0.0",
"eslint-plugin-workspaces": "^0.10.1"
"eslint-plugin-sonarjs": "^3.0.1",
"eslint-plugin-unicorn": "^56.0.1",
"eslint-plugin-workspaces": "^0.10.1",
"jsonc-eslint-parser": "^2.4.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "workspace:^",
"@xylabs/tsconfig": "workspace:^",
"eslint": "^9.14.0",
"typescript": "^5.6.3"
"eslint": "^9.17.0",
"typescript": "^5.7.2"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 7 additions & 0 deletions packages/eslint-config-flat/src/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ export const typescriptConfig: Linter.Config = {
},
}],
'@stylistic/max-len': ['warn', { code: 160 }],
'no-restricted-syntax': [
'warn',
{
selector: 'TSEnumDeclaration',
message: 'Enums are disallowed. Consider using a union of string literals or a `const` object instead.',
},
],
'@typescript-eslint/member-ordering': [
'warn',
{
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
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/package.json",
"name": "@xylabs/eslint-config-react-flat",
"version": "4.2.4",
"version": "4.2.5",
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
"keywords": [
"xylabs",
Expand Down Expand Up @@ -33,18 +33,18 @@
"module": "./dist/node/index.mjs",
"types": "./dist/node/index.d.ts",
"dependencies": {
"@eslint-react/eslint-plugin": "^1.16.1",
"@typescript-eslint/parser": "^8.14.0",
"@eslint-react/eslint-plugin": "^1.20.1",
"@typescript-eslint/parser": "^8.18.1",
"@xylabs/eslint-config-flat": "workspace:^",
"eslint": "^9.14.0",
"eslint": "^9.17.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.12.0"
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.14.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "workspace:^",
"@xylabs/tsconfig": "workspace:^",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/ts-scripts-react-yarn3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xylabs/ts-scripts-react-yarn3",
"version": "4.2.4",
"version": "4.2.5",
"description": "TypeScript project scripts",
"keywords": [
"xylabs",
Expand Down Expand Up @@ -87,7 +87,7 @@
"@xylabs/tsconfig": "workspace:^",
"publint": "^0.2.12",
"tsup": "^8.3.5",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"peerDependencies": {
"typescript": "^5"
Expand Down
26 changes: 13 additions & 13 deletions packages/ts-scripts-yarn3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xylabs/ts-scripts-yarn3",
"version": "4.2.4",
"version": "4.2.5",
"description": "TypeScript project scripts",
"keywords": [
"xylabs",
Expand Down Expand Up @@ -88,23 +88,23 @@
"package-recompile": "tsup && publint"
},
"dependencies": {
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^12.1.1",
"@swc/core": "^1.9.2",
"@types/node": "^22.9.0",
"@rollup/plugin-typescript": "^12.1.2",
"@swc/core": "^1.10.1",
"@types/node": "^22.10.2",
"@types/yargs": "^17.0.33",
"@xylabs/tsconfig": "workspace:^",
"@xylabs/tsconfig-dom": "workspace:^",
"async-mutex": "^0.5.0",
"chalk": "^5.3.0",
"cosmiconfig": "^9.0.0",
"cosmiconfig-typescript-loader": "^6.0.0",
"cosmiconfig-typescript-loader": "^6.1.0",
"cpy": "^11.1.0",
"deepmerge": "^4.3.1",
"depcheck": "^1.4.7",
"esbuild": "^0.24.0",
"eslint": "^9.14.0",
"eslint": "^9.17.0",
"glob": "^11.0.0",
"jsonc-eslint-parser": "^2.4.0",
"license-checker": "^25.0.1",
Expand All @@ -115,19 +115,19 @@
"parse-git-config": "^3.0.0",
"publint": "^0.2.12",
"reflect-metadata": "^0.2.2",
"rollup": "^4.25.0",
"rollup": "^4.28.1",
"rollup-plugin-exclude-dependencies-from-bundle": "^1.1.23",
"rollup-plugin-node-externals": "^7.1.3",
"sort-package-json": "^2.10.1",
"rollup-plugin-node-externals": "^8.0.0",
"sort-package-json": "^2.12.0",
"supertest": "^7.0.0",
"ts-node": "^10.9.2",
"ts-prune": "^0.10.3",
"tsc-prog": "^2.3.0",
"tslib": "^2.8.1",
"tsup": "^8.3.5",
"typedoc": "^0.26.11",
"typedoc": "^0.27.5",
"types-package-json": "^2.0.39",
"vitest": "^2.1.4",
"vitest": "^2.1.8",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand All @@ -137,7 +137,7 @@
"@xylabs/tsconfig": "workspace:^",
"publint": "^0.2.12",
"rimraf": "^6.0.1",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"peerDependencies": {
"typescript": "^5"
Expand Down
8 changes: 4 additions & 4 deletions packages/ts-scripts-yarn3/src/actions/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export const compile = ({
}: CompileParams) => {
return pkg
? compilePackage({
pkg, publint, target, verbose, types,
})
pkg, publint, target, verbose, types,
})
: compileAll({
incremental, publint, target, verbose, jobs, types,
})
incremental, publint, target, verbose, jobs, types,
})
}

export const compilePackage = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/package.json",
"name": "@xylabs/tsconfig-dom",
"version": "4.2.4",
"version": "4.2.5",
"description": "Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
"keywords": [
"xylabs",
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/package.json",
"name": "@xylabs/tsconfig-react",
"version": "4.2.4",
"version": "4.2.5",
"description": "Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
"keywords": [
"xylabs",
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/package.json",
"name": "@xylabs/tsconfig",
"version": "4.2.4",
"version": "4.2.5",
"description": "Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
"keywords": [
"xylabs",
Expand Down
Loading

0 comments on commit 9d0a044

Please sign in to comment.