Skip to content

Commit

Permalink
chore(eslint): migrate eslint config from ts to js
Browse files Browse the repository at this point in the history
  • Loading branch information
gx1285 committed Sep 8, 2024
1 parent 9a1d67a commit eb3d483
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 4 deletions.
3 changes: 1 addition & 2 deletions eslint.config.ts → eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import globals from 'globals';
import unicorn from 'eslint-plugin-unicorn';
import { parser } from 'typescript-eslint';
import prettier from 'eslint-config-prettier';
import type { Linter } from 'eslint';
export default [
eslint.configs.recommended,
prettier,
Expand Down Expand Up @@ -44,4 +43,4 @@ export default [
'@typescript-eslint/no-explicit-any': 'off',
},
},
] satisfies Linter.FlatConfig[];
];
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"license": "MIT",
"type": "module",
"scripts": {
"lint": "prettier --check . && eslint src --ext .ts --flag unstable_ts_config --format=pretty",
"lint:fix": "prettier --write . && eslint src --fix --flag unstable_ts_config --format=pretty",
"lint": "prettier --check . && eslint src --ext .ts --format=pretty",
"lint:fix": "prettier --write . && eslint src --fix --format=pretty",
"build": "rimraf dist && tsc",
"start": "node dist/src/index.js",
"prepare": "husky"
Expand All @@ -20,6 +20,8 @@
"json-bigint": "^1.0.0",
"mongoose": "^8.6.0",
"mysql2": "^3.11.0",
"pino": "^9.3.2",
"pino-pretty": "^11.2.2",
"reflect-metadata": "^0.2.2",
"typeorm": "^0.3.20",
"typescript": "^5.5.4",
Expand Down
Loading

0 comments on commit eb3d483

Please sign in to comment.