Skip to content

Commit

Permalink
Upgrade deps and ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
newcat committed Apr 9, 2024
1 parent f5cd471 commit 9ac6612
Show file tree
Hide file tree
Showing 14 changed files with 535 additions and 1,411 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

41 changes: 0 additions & 41 deletions .eslintrc.json

This file was deleted.

54 changes: 54 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// @ts-check

import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import vueParser from "vue-eslint-parser";
import eslintConfigPrettier from "eslint-config-prettier";

export default tseslint.config(
{
ignores: ["dist", "node_modules"],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
// @ts-expect-error - `pluginVue.configs` is not properly typed
...pluginVue.configs["flat/recommended"],
eslintConfigPrettier,
{
languageOptions: {
parser: vueParser,
parserOptions: {
parser: tseslint.parser,
project: true,
tsconfigRootDir: "./",
extraFileExtensions: [".vue"],
},
},
rules: {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"no-implied-eval": "off",
"@typescript-eslint/no-implied-eval": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"require-await": "off",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/unbound-method": "error",
"vue/html-indent": ["warn", 4],
"vue/no-mutating-props": "off",
"vue/max-attributes-per-line": "off",
"vue/html-self-closing": ["warn", { html: { void: "any" } }],
"vue/multi-word-component-names": "off",
"vue/singleline-html-element-content-newline": "off",
},
},
);
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "baklavajs-monorepo",
"private": true,
"type": "module",
"scripts": {
"playground": "cd packages/renderer-vue && yarn run dev",
"lint": "eslint \"packages/*/src/**/*.{ts,vue}\"",
Expand All @@ -16,19 +17,18 @@
"packages/*"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.57.0",
"@eslint/js": "^9.0.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.23.0",
"eslint-plugin-vue": "^9.24.1",
"lerna": "^8.1.2",
"mermaid": "^10.9.0",
"prettier": "^3.2.5",
"prettier-eslint": "^16.3.0",
"rimraf": "^5.0.5",
"typedoc": "^0.25.12",
"typescript": "^5.4.3",
"vitepress": "^1.0.0-rc.45",
"typedoc": "^0.25.13",
"typescript": "^5.4.4",
"typescript-eslint": "^7.6.0",
"vitepress": "^1.1.0",
"vue-eslint-parser": "^9.4.2"
},
"packageManager": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typedoc": "^0.25.12",
"typescript": "^5.4.3"
"typedoc": "^0.25.13",
"typescript": "^5.4.4"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.4.3"
"typescript": "^5.4.4"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"url": "https://github.com/newcat/baklavajs/issues"
},
"devDependencies": {
"typescript": "^5.4.3"
"typescript": "^5.4.4"
}
}
2 changes: 1 addition & 1 deletion packages/full/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
},
"devDependencies": {
"esbuild": "^0.20.2",
"typescript": "^5.4.3"
"typescript": "^5.4.4"
}
}
2 changes: 1 addition & 1 deletion packages/interface-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.4.3"
"typescript": "^5.4.4"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions packages/renderer-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-visualizer": "^5.12.0",
"rollup-plugin-vue": "^6.0.0",
"sass": "^1.72.0",
"typescript": "^5.4.3",
"vite": "^5.2.2",
"vite-plugin-dts": "^3.7.3",
"sass": "^1.74.1",
"typescript": "^5.4.4",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1",
"vue": "^3.4.21",
"vue-tsc": "^2.0.7"
"vue-tsc": "^2.0.11"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer-vue/src/node/NodeInterface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
} from "../editor/temporaryConnection";
const ellipsis = (value: any, characters = 100) => {
const stringValue = value?.toString ? value.toString() : "";
const stringValue: string = typeof value?.toString === "function" ? String(value) : "";
if (stringValue.length > characters) {
return stringValue.slice(0, characters) + "...";
Expand Down
1 change: 0 additions & 1 deletion packages/renderer-vue/src/overrides.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { AbstractNode } from "@baklavajs/core/dist/node";

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down
4 changes: 2 additions & 2 deletions packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"devDependencies": {
"@types/sass": "^1.45.0",
"rimraf": "^5.0.5",
"sass": "^1.72.0",
"sass": "^1.74.1",
"ts-node": "^10.9.2",
"typescript": "^5.4.3"
"typescript": "^5.4.4"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 9ac6612

Please sign in to comment.