diff --git a/eslint.config.js b/eslint.config.js index 35a44f0..807b683 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -34,8 +34,6 @@ export default defineFlatConfig([ unicorn: unicornPlugin, }, rules: { - 'simple-import-sort/imports': 'error', - 'simple-import-sort/exports': 'error', 'import/exports-last': 'error', 'import/extensions': ['error', { ts: 'always' }], 'import/group-exports': 'error', @@ -44,8 +42,9 @@ export default defineFlatConfig([ 'import/no-namespace': 'error', 'import/no-unassigned-import': 'error', 'import/prefer-default-export': 'off', - 'unicorn/no-unused-properties': 'error', - 'unicorn/string-content': 'error', + 'simple-import-sort/exports': 'warn', + 'simple-import-sort/imports': 'warn', + 'unicorn/no-unused-properties': 'warn', }, }, prettierConfig, diff --git a/package.json b/package.json index 7ca6374..f45b1a5 100644 --- a/package.json +++ b/package.json @@ -42,16 +42,16 @@ "@archoleat/eslint-flat-compatibility": "^1.2.1", "@archoleat/prettier-define-config": "^1.1.0", "@archoleat/semantic-release-define-config": "^1.2.0", - "@commitlint/cli": "^19.5.0", - "@commitlint/config-conventional": "^19.5.0", + "@commitlint/cli": "^19.6.0", + "@commitlint/config-conventional": "^19.6.0", "@commitlint/types": "^19.5.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", - "@types/bun": "^1.1.12", + "@types/bun": "^1.1.14", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "conventional-changelog-conventionalcommits": "^8.0.0", - "editorconfig-checker": "^5.1.6", + "editorconfig-checker": "^5.1.9", "eslint": "^8.57.1", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^18.0.0", @@ -60,12 +60,12 @@ "eslint-import-resolver-typescript": "^3.6.3", "eslint-plugin-import": "^2.31.0", "eslint-plugin-simple-import-sort": "^12.1.1", - "eslint-plugin-unicorn": "^56.0.0", + "eslint-plugin-unicorn": "^56.0.1", "git-pull-run": "^1.4.0", - "globals": "^15.11.0", - "husky": "^9.1.6", + "globals": "^15.13.0", + "husky": "^9.1.7", "lint-staged": "^15.2.10", - "prettier": "^3.3.3", + "prettier": "^3.4.1", "remark": "15.0.1", "remark-cli": "^12.0.1", "remark-preset-lint-consistent": "^6.0.0", diff --git a/tsconfig.json b/tsconfig.json index 74c402c..117705e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,25 @@ { "compilerOptions": { + // Completeness + "skipLibCheck": true, + // Emit + "declaration": true, + "emitDeclarationOnly": true, + "outDir": "", + // Language and Environment + "lib": ["ESNext"], + "target": "ESNext", + // Modules + "allowImportingTsExtensions": true, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "paths": { + "#types": ["./src/types/index.ts"] + }, + "rootDir": "src", + "types": ["vitest"], + // Projects + "disableReferencedProjectLoad": true, // Type Checking "allowUnreachableCode": false, "allowUnusedLabels": false, diff --git a/tsconfig.node.json b/tsconfig.node.json deleted file mode 100644 index 1118a0e..0000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - // Completeness - "skipLibCheck": true, - // Emit - "declaration": true, - "emitDeclarationOnly": true, - "outDir": "", - // Language and Environment - "lib": ["DOM", "ESNext"], - "target": "ESNext", - // Modules - "allowImportingTsExtensions": true, - "module": "NodeNext", - "moduleResolution": "NodeNext", - "rootDir": "src", - "types": ["bun"], - // Projects - "disableReferencedProjectLoad": true - } -}