@superblocksteam/util 2.0.29-next.8 → 2.0.30-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
 
2
- > @superblocksteam/util@2.0.29-next.8 build /home/runner/_work/superblocks/superblocks/packages/cli/packages/util
2
+ > @superblocksteam/util@2.0.30-next.0 build /home/runner/_work/superblocks/superblocks/packages/cli/packages/util
3
3
  > tsc --build
4
4
 
@@ -1,32 +1,20 @@
1
- const js = require("@eslint/js");
2
- const importPlugin = require("eslint-plugin-import");
3
- const prettier = require("eslint-plugin-prettier");
4
- const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
5
- const unicorn = require("eslint-plugin-unicorn");
6
- const globals = require("globals");
7
- const tseslint = require("typescript-eslint");
8
- const turbo = require("eslint-config-turbo/flat").default;
1
+ import js from "@eslint/js";
2
+ import turbo from "eslint-config-turbo/flat";
3
+ import importPlugin from "eslint-plugin-import";
4
+ import prettier from "eslint-plugin-prettier/recommended";
5
+ import unicorn from "eslint-plugin-unicorn";
6
+ import globals from "globals";
7
+ import tseslint from "typescript-eslint";
9
8
 
10
- const config = [
9
+ export default tseslint.config(
11
10
  {
12
- ignores: [
13
- "**/public/*",
14
- "**/build/*",
15
- "**/node_modules/*",
16
- "**/dist/*",
17
- "**/assets/",
18
- "**/.*",
19
- "eslint.config.js",
20
- "tsup.config.ts",
21
- ],
11
+ ignores: ["dist/**/*", ".turbo/**/*"],
22
12
  },
23
13
  js.configs.recommended,
24
- ...tseslint.configs.recommended,
25
- { files: ["./*", "src/**"], ...eslintPluginPrettierRecommended },
14
+ tseslint.configs.recommended,
15
+ turbo,
26
16
  {
27
17
  plugins: {
28
- "@typescript-eslint": tseslint.plugin,
29
- prettier,
30
18
  import: importPlugin,
31
19
  unicorn,
32
20
  },
@@ -35,8 +23,10 @@ const config = [
35
23
  sourceType: "commonjs",
36
24
  globals: globals.node,
37
25
  parserOptions: {
38
- project: "./tsconfig.json",
39
- tsconfigRootDir: __dirname,
26
+ projectService: {
27
+ allowDefaultProject: ["eslint.config.mjs"],
28
+ },
29
+ tsconfigRootDir: import.meta.dirname,
40
30
  },
41
31
  },
42
32
  rules: {
@@ -83,7 +73,5 @@ const config = [
83
73
  "@typescript-eslint/no-unused-expressions": "off",
84
74
  },
85
75
  },
86
- ...turbo
87
- ];
88
-
89
- module.exports = config;
76
+ prettier,
77
+ );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@superblocksteam/util",
3
+ "version": "2.0.30-next.0",
3
4
  "description": "",
4
- "version": "2.0.29-next.8",
5
5
  "homepage": "https://www.superblocks.com",
6
6
  "license": "Superblocks Community Software License",
7
7
  "main": "dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "@types/node": "^20.11.18",
26
26
  "@typescript-eslint/eslint-plugin": "^8.25.0",
27
27
  "@typescript-eslint/parser": "^8.25.0",
28
- "eslint": "^9.21.0",
28
+ "eslint": "^9.34.0",
29
29
  "eslint-config-turbo": "^2.5.5",
30
30
  "eslint-plugin-import": "2.31.0",
31
31
  "eslint-plugin-mocha": "^10.5.0",
@@ -34,7 +34,7 @@
34
34
  "globals": "^16.3.0",
35
35
  "prettier": "^3.5.2",
36
36
  "tslib": "^2.5.0",
37
- "typescript-eslint": "^8.18.0"
37
+ "typescript-eslint": "^8.41.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "registry": "https://registry.npmjs.org"
@@ -44,8 +44,8 @@
44
44
  "check": "pnpm run lint && pnpm run typecheck",
45
45
  "clean": "premove dist/ tsconfig.tsbuildinfo",
46
46
  "dev": "tsc --build --watch --preserveWatchOutput",
47
- "lint": "eslint .",
48
- "lint:fix": "eslint . --fix",
47
+ "lint": "eslint --concurrency=auto",
48
+ "lint:fix": "eslint --fix --concurrency=auto",
49
49
  "typecheck": "tsc --noEmit"
50
50
  }
51
51
  }