diff --git a/package.json b/package.json index e850875..1ca1e41 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "packageManager": "pnpm@9.12.3", "scripts": { "clean": "rm -rf */*/node_modules", - "build": "pnpm recursive --filter \"./(packages|iconify-icon|components)/**\" run build", - "test": "pnpm recursive --filter \"./(packages|iconify-icon|components)/**\" run test" + "build": "pnpm recursive --workspace-concurrency=1 --filter \"./(packages|iconify-icon|components)/**\" run build", + "test": "pnpm recursive --workspace-concurrency=1 --filter \"./(packages|iconify-icon|components)/**\" run test" }, "devDependencies": {}, "pnpm": { diff --git a/packages/core/eslint.config.mjs b/packages/core/eslint.config.mjs index 9d61cb6..21e7f91 100644 --- a/packages/core/eslint.config.mjs +++ b/packages/core/eslint.config.mjs @@ -42,10 +42,7 @@ export default [ sourceType: 'commonjs', parserOptions: { - tsconfigRootDir: - '/Users/slava/Documents/dev/iconify/iconify/iconify-dev/packages/core', project: ['tsconfig.json', 'tests/tsconfig.json'], - extraFileExtensions: ['.cjs'], }, }, diff --git a/packages/utils/eslint.config.mjs b/packages/utils/eslint.config.mjs index ac06cf9..24179cd 100644 --- a/packages/utils/eslint.config.mjs +++ b/packages/utils/eslint.config.mjs @@ -1,54 +1,57 @@ -import typescriptEslint from "@typescript-eslint/eslint-plugin"; -import globals from "globals"; -import tsParser from "@typescript-eslint/parser"; -import path from "node:path"; -import { fileURLToPath } from "node:url"; -import js from "@eslint/js"; -import { FlatCompat } from "@eslint/eslintrc"; +import typescriptEslint from '@typescript-eslint/eslint-plugin'; +import globals from 'globals'; +import tsParser from '@typescript-eslint/parser'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import js from '@eslint/js'; +import { FlatCompat } from '@eslint/eslintrc'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all, }); -export default [{ - ignores: ["**/lib"], -}, ...compat.extends( - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", - "plugin:prettier/recommended", -), { - plugins: { - "@typescript-eslint": typescriptEslint, - }, +export default [ + { + ignores: ['**/lib'], + }, + ...compat.extends( + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:prettier/recommended' + ), + { + plugins: { + '@typescript-eslint': typescriptEslint, + }, - languageOptions: { - globals: { - ...globals.browser, - ...globals.node, - Atomics: "readonly", - SharedArrayBuffer: "readonly", - }, + languageOptions: { + globals: { + ...globals.browser, + ...globals.node, + Atomics: 'readonly', + SharedArrayBuffer: 'readonly', + }, - parser: tsParser, - ecmaVersion: 5, - sourceType: "commonjs", + parser: tsParser, + ecmaVersion: 5, + sourceType: 'commonjs', - parserOptions: { - tsconfigRootDir: "/Users/slava/Documents/dev/iconify/iconify/iconify-dev/packages/utils", - project: ["tsconfig.json", "tests/tsconfig.json"], - extraFileExtensions: [".cjs"], - }, - }, + parserOptions: { + project: ['tsconfig.json', 'tests/tsconfig.json'], + }, + }, - rules: { - "no-mixed-spaces-and-tabs": ["off"], - "no-unused-vars": ["off"], - }, -}, { - files: ["src/**/*.ts", "tests/*.ts"], -}]; \ No newline at end of file + rules: { + 'no-mixed-spaces-and-tabs': ['off'], + 'no-unused-vars': ['off'], + }, + }, + { + files: ['src/**/*.ts', 'tests/*.ts'], + }, +];