Skip to content

Commit 43f639c

Browse files
committed
cleanup
1 parent 44ddcc7 commit 43f639c

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

bun.lockb

436 Bytes
Binary file not shown.

eslint.config.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
import eslint from '@eslint/js';
22
import tseslint from 'typescript-eslint';
3+
import eslintConfigPrettier from 'eslint-config-prettier';
4+
import tsParser from '@typescript-eslint/parser';
35

46
/** @type {import('eslint').Linter.Config[]} */
57
export default [
68
{ files: ['src/**/*.{js,mjs,cjs,ts}'], ignores: ['node_modules/', 'dist/'] },
79
eslint.configs.recommended,
10+
eslintConfigPrettier,
811
...tseslint.configs.stylisticTypeChecked,
912
...tseslint.configs.recommendedTypeChecked,
1013
{
1114
languageOptions: {
15+
parser: tsParser,
16+
ecmaVersion: 2020,
17+
sourceType: 'module',
1218
parserOptions: {
13-
projectService: true,
14-
tsconfigRootDir: import.meta.dirname,
19+
project: './tsconfig.json',
1520
},
1621
},
1722
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@types/bun": "^1.1.13",
3131
"bun": "^1.1.34",
3232
"eslint": "^9.15.0",
33+
"eslint-config-prettier": "^9.1.0",
3334
"prettier": "^3.3.3",
3435
"typescript": "^5.6.3",
3536
"typescript-eslint": "^8.15.0"

src/lib/generateField.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import stars from '../data/stars';
33

44
// function to format string closer to twitter's presentation
55
export default function generateField(lineAmount = LINE_AMOUNT, lineLength = LINE_LENGTH) {
6-
const field = [];
6+
const field: string[] = [];
77
while (field.length < lineAmount) {
88
field.push(generateLine(lineLength));
99
}

0 commit comments

Comments
 (0)