Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Oct 14, 2024
1 parent fd8465b commit a332e51
Show file tree
Hide file tree
Showing 12 changed files with 943 additions and 817 deletions.
19 changes: 0 additions & 19 deletions .eslintrc.cjs

This file was deleted.

14 changes: 12 additions & 2 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified bun.lockb
Binary file not shown.
23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import baseConfig from "@arnaud-barre/eslint-config";
import tseslint from "typescript-eslint";

export default tseslint.config(
...baseConfig,
{
languageOptions: {
parserOptions: {
project: ["./tsconfig.json", "./src/client/tsconfig.json"],
},
},
rules: {
"require-unicode-regexp": "off",
"no-param-reassign": "off",
},
},
{
files: ["src/client.d.ts"],
rules: {
"@arnaud-barre/no-default-export": "off",
},
},
);
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "scripts/bundle.ts",
"tsc": "tsc && tsc -p src/client/tsconfig.json",
"lint": "bun lint-ci --fix --cache",
"lint-ci": "eslint src scripts --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint-ci": "eslint src scripts --max-warnings 0",
"prettier": "bun prettier-ci --write",
"prettier-ci": "prettier --cache --check '*.{js,json,md}' '{.github,src,scripts}/**/*.{js,ts,yml}' '!**/*.min.js'",
"ci": "tsc && bun lint-ci && bun prettier-ci && bun run build && cd dist && bun link && cd ../template && bun link @arnaud-barre/rds && bun ci"
Expand All @@ -20,30 +20,30 @@
]
},
"peerDependencies": {
"@arnaud-barre/downwind": "^0.7.1",
"eslint": "^8",
"@arnaud-barre/downwind": "^0.7.6",
"eslint": "^9",
"typescript": "^5"
},
"dependencies": {
"@arnaud-barre/config-loader": "^0.7.1",
"@swc/core": "^1.3.99",
"chokidar": "^3.5.3",
"es-module-lexer": "^1.4.1",
"esbuild": "^0.19",
"lightningcss": "^1.22.1",
"ws": "^8.14.2"
"@swc/core": "^1.7.35",
"chokidar": "^3.6.0",
"es-module-lexer": "^1.5.4",
"esbuild": "^0.24.0",
"lightningcss": "^1.27.0",
"ws": "^8.18.0"
},
"devDependencies": {
"@arnaud-barre/downwind": "^0.7.1",
"@arnaud-barre/eslint-config": "^4.0.0",
"@arnaud-barre/downwind": "^0.7.6",
"@arnaud-barre/eslint-config": "^5.0.1",
"@arnaud-barre/prettier-plugin-sort-imports": "^0.1.3",
"@arnaud-barre/tnode": "^0.19.2",
"@types/eslint": "^8.44.8",
"@types/node": "^20.10.3",
"@types/react": "^18.2.41",
"@types/ws": "^8.5.10",
"eslint": "^8.55.0",
"@types/eslint": "^9.6.1",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/ws": "^8.5.12",
"eslint": "^9.12.0",
"prettier": "3.0.3",
"typescript": "~5.3"
"typescript": "~5.5"
}
}
1 change: 0 additions & 1 deletion src/client/inspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ const clearOverlay = () => {
const current = document.querySelector<HTMLElement>(
"[data-click-to-component-target]",
);
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
if (current) delete current.dataset["clickToComponentTarget"];
currentTarget = undefined;
};
Expand Down
2 changes: 1 addition & 1 deletion src/server/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const getBodyJson = <T>(req: IncomingMessage) =>
try {
resolve(JSON.parse(body));
} catch (e) {
reject(e);
reject(e as Error);
}
});
});
2 changes: 1 addition & 1 deletion src/server/downwind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ const convertTargets = (
.map((v) => parseInt(v, 10));
if (!isNaN(major) && !isNaN(minor)) {
const version = (major << 16) | (minor << 8);
if (!targets[browser] || version < targets[browser]!) {
if (!targets[browser] || version < targets[browser]) {
targets[browser] = version;
}
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/server/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const initScanner = ({
}
} else {
const result = statSync(resolvedUrl, { throwIfNoEntry: false });
if (!result || !result.isFile()) {
if (!result?.isFile()) {
throw new RDSError({
message: `${resolvedUrl} is not a file`,
file: url,
Expand Down
20 changes: 10 additions & 10 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "rds preview",
"local-css": "downwind -o src/local.css",
"lint": "bun lint-ci --fix --cache",
"lint-ci": "eslint ./ --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint-ci": "eslint . --max-warnings 0",
"prettier": "bun prettier-ci --write",
"prettier-ci": "prettier --ignore-path=.gitignore --check '**/*.{ts,tsx,cjs,html,css,json,md,svg}'",
"ci": "tsc && bun lint-ci && bun prettier-ci && bun run build"
Expand All @@ -23,18 +23,18 @@
]
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@arnaud-barre/downwind": "^0.7.3",
"@arnaud-barre/eslint-config": "^4.0.2",
"@arnaud-barre/downwind": "^0.7.6",
"@arnaud-barre/eslint-config": "^5.0.1",
"@arnaud-barre/prettier-plugin-sort-imports": "^0.1.3",
"@arnaud-barre/rds": "^0.7.3",
"@prettier/plugin-xml": "^3.2.2",
"@types/react-dom": "^18.2.18",
"eslint": "^8.56.0",
"@arnaud-barre/rds": "^0.7.9",
"@prettier/plugin-xml": "^3.4.1",
"@types/react-dom": "^18.3.1",
"eslint": "^9.12.0",
"prettier": "3.0.3",
"typescript": "~5.3"
"typescript": "~5.5"
}
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"verbatimModuleSyntax": true,
"noEmit": true,

Expand Down
Loading

0 comments on commit a332e51

Please sign in to comment.