diff --git a/.vscode/settings.json b/.vscode/settings.json index 193bdf2..a0c9bf7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,34 +1,34 @@ { - "biome.enabled": true, - "editor.defaultFormatter": "biomejs.biome", - "editor.formatOnSave": true, - "javascript.format.enable": false, - "javascript.suggest.autoImports": true, - "javascript.suggest.paths": true, - "typescript.format.enable": false, - "typescript.suggest.paths": true, - "typescript.suggest.autoImports": true, - "editor.renderWhitespace": "all", - "editor.rulers": [120, 160], - "editor.codeActionsOnSave": { - "source.fixAll": "always", - "source.organizeImports": "never", - "source.organizeImports.biome": "always", - "quickfix.biome": "always" - }, - "editor.insertSpaces": false, - "editor.detectIndentation": true, - "editor.trimAutoWhitespace": true, - "files.trimTrailingWhitespace": true, - "files.trimTrailingWhitespaceInRegexAndStrings": true, - "files.trimFinalNewlines": true, - "explorer.fileNesting.patterns": { - "*.ts": "${basename}.*.${extname}", - ".env": ".env.*", - "*.tsx": "${basename}.*.${extname},${basename}.*.ts", - "package.json": "*.json, *.yml, *.config.js, *.config.ts, *.yaml" - }, - "eslint.enable": false, - "eslint.format.enable": false, - "prettier.enable": false + "biome.enabled": true, + "editor.defaultFormatter": "biomejs.biome", + "editor.formatOnSave": true, + "javascript.format.enable": false, + "javascript.suggest.autoImports": true, + "javascript.suggest.paths": true, + "typescript.format.enable": false, + "typescript.suggest.paths": true, + "typescript.suggest.autoImports": true, + "editor.renderWhitespace": "all", + "editor.rulers": [120, 160], + "editor.codeActionsOnSave": { + "source.fixAll": "always", + "source.organizeImports": "never", + "source.organizeImports.biome": "always", + "quickfix.biome": "always" + }, + "editor.insertSpaces": false, + "editor.detectIndentation": true, + "editor.trimAutoWhitespace": true, + "files.trimTrailingWhitespace": true, + "files.trimTrailingWhitespaceInRegexAndStrings": true, + "files.trimFinalNewlines": true, + "explorer.fileNesting.patterns": { + "*.ts": "${basename}.*.${extname}", + ".env": ".env.*", + "*.tsx": "${basename}.*.${extname},${basename}.*.ts", + "package.json": "*.json, *.yml, *.config.js, *.config.ts, *.yaml" + }, + "eslint.enable": false, + "eslint.format.enable": false, + "prettier.enable": false } diff --git a/biome.json b/biome.json index 1d0b8f5..b9f0581 100644 --- a/biome.json +++ b/biome.json @@ -1,55 +1,58 @@ { - "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", - "vcs": { - "enabled": true, - "clientKind": "git", - "defaultBranch": "main", - "useIgnoreFile": true - }, - "formatter": { - "enabled": true, - "formatWithErrors": false, - "indentStyle": "tab", - "lineEnding": "lf", - "lineWidth": 120 - }, - "organizeImports": { - "enabled": true - }, - "linter": { - "enabled": true, - "rules": { - "recommended": true, - "suspicious": { - "recommended": true - }, - "style": { - "recommended": true - }, - "complexity": { - "recommended": true - }, - "security": { - "recommended": true - }, - "performance": { - "recommended": true - }, - "correctness": { - "recommended": true - }, - "a11y": { - "recommended": true - }, - "nursery": { - "recommended": true - } - } - }, - "javascript": { - "formatter": { - "semicolons": "asNeeded", - "trailingCommas": "es5" - } - } -} \ No newline at end of file + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "defaultBranch": "main", + "useIgnoreFile": true + }, + "formatter": { + "ignore": ["test-apps"], + "enabled": true, + "formatWithErrors": false, + "indentStyle": "tab", + "lineEnding": "lf", + "lineWidth": 120 + }, + "organizeImports": { + "ignore": ["test-apps"], + "enabled": true + }, + "linter": { + "ignore": ["test-apps"], + "enabled": true, + "rules": { + "recommended": true, + "suspicious": { + "recommended": true + }, + "style": { + "recommended": true + }, + "complexity": { + "recommended": true + }, + "security": { + "recommended": true + }, + "performance": { + "recommended": true + }, + "correctness": { + "recommended": true + }, + "a11y": { + "recommended": true + }, + "nursery": { + "recommended": true + } + } + }, + "javascript": { + "formatter": { + "semicolons": "asNeeded", + "trailingCommas": "es5" + } + } +} diff --git a/src/index.test.ts b/src/index.test.ts index 1410c5e..e588e86 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -1,7 +1,7 @@ -import { test } from "."; +import { test } from "." describe("test", () => { - it("should work", () => { - expect(test()).toBeUndefined(); - }); -}); + it("should work", () => { + expect(test()).toBeUndefined() + }) +}) diff --git a/src/index.ts b/src/index.ts index 162f468..85c2530 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ // This is your packages entry point, everything exported from here will be accessible to the end-user. -export const test = (): void => {}; +export const test = (): void => {} diff --git a/tests/setup.ts b/tests/setup.ts index aefa3e4..dd6668c 100644 --- a/tests/setup.ts +++ b/tests/setup.ts @@ -1 +1 @@ -// Setup your test environment here \ No newline at end of file +// Setup your test environment here diff --git a/tsconfig.json b/tsconfig.json index 398f63e..3dac5f6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,17 @@ { - "compilerOptions": { - "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, - "moduleResolution": "Bundler", - "module": "ESNext" /* Specify what module code is generated. */, - "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, - "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, - "strict": true /* Enable all strict type-checking options. */, - "skipLibCheck": true /* Skip type checking all .d.ts files. */, - "types": ["vitest/globals"], - "rootDir": ".", - "outDir": "./dist", - "noEmit": true - }, - "include": ["src/**/*", "tests/**/*"], - "exclude": ["node_modules", "dist"] + "compilerOptions": { + "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, + "moduleResolution": "Bundler", + "module": "ESNext" /* Specify what module code is generated. */, + "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, + "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, + "strict": true /* Enable all strict type-checking options. */, + "skipLibCheck": true /* Skip type checking all .d.ts files. */, + "types": ["vitest/globals"], + "rootDir": ".", + "outDir": "./dist", + "noEmit": true + }, + "include": ["src/**/*", "tests/**/*"], + "exclude": ["node_modules", "dist"] }