Skip to content

Commit 55be9c5

Browse files
authored
feat: migrate from tslint to eslint (#19)
* feat: migrate from tslint to eslint * chore: remove prettier related commands * fix: bump @types/node to 22 to fix build issue
1 parent d602999 commit 55be9c5

7 files changed

+1943
-270
lines changed

.eslintignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Local dotenv/direnv
2+
.env
3+
.envrc
4+
5+
# Editor and OS
6+
*~
7+
.*.swp
8+
.DS_Store
9+
.dir-locals.el
10+
/.idea
11+
/.vscode/settings.json
12+
patch.diff
13+
14+
# Logs
15+
*.log
16+
/logs
17+
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*
20+
21+
# Runtime
22+
*.pid
23+
*.pid.lock
24+
*.seed
25+
/pids
26+
27+
# Node artifacts
28+
*.tgz
29+
/build
30+
/node_modules
31+
32+
# Node misc
33+
.node_repl_history
34+
.yarn-integrity
35+
/.eslintcache
36+
/.grunt
37+
/.npm
38+
/.nyc_output
39+
/coverage
40+
/lib-cov
41+
ormconfig.json
42+
.yalc/
43+
yalc.lock
44+
.vscode/
45+
46+
dist/
47+
48+
src/benchmark/**/*.ts
49+
**/__tests__/**

.eslintrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
env: {
3+
node: true,
4+
es6: true,
5+
},
6+
plugins: ['@sixfold'],
7+
extends: ['plugin:@sixfold/base'],
8+
};

.prettierignore

-11
This file was deleted.

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,31 @@
1313
],
1414
"scripts": {
1515
"build": "tsc",
16-
"lint": "tslint --project .",
16+
"lint": "eslint .",
1717
"lint:fix": "yarn lint --fix",
1818
"release": "rimraf dist && yarn build && yarn test && standard-version",
1919
"publish-release": "git push --follow-tags origin master && yarn authenticate && npm publish",
2020
"authenticate": "npx google-artifactregistry-auth",
21-
"fix": "yarn lint:fix && yarn prettier:fix",
21+
"fix": "yarn lint:fix",
2222
"test": "yarn lint && yarn jest",
23-
"prettier": "prettier \"./src/**/**\"",
24-
"prettier:check": "yarn prettier --check",
25-
"prettier:fix": "yarn prettier --write",
2623
"benchmark": "ts-node src/benchmark/benchmark.ts"
2724
},
2825
"devDependencies": {
29-
"@sixfold/editor-config": "^2.3.0",
30-
"@sixfold/ts-config": "^4.1.2",
26+
"@sixfold/editor-config": "^4.1.0",
27+
"@sixfold/eslint-plugin": "^2.7.0",
28+
"@sixfold/ts-config": "^5.1.2",
3129
"@types/jest": "^29.2.1",
32-
"@types/node": "^14.6.4",
30+
"@types/node": "^22",
3331
"benny": "^3.7.1",
32+
"eslint": "^8.57.1",
3433
"jest": "^29.2.2",
3534
"postgres-date": "^2.0.0",
35+
"prettier": "^3",
3636
"rimraf": "^3.0.2",
3737
"standard-version": "^9.5.0",
3838
"ts-jest": "^29.0.3",
3939
"ts-node": "^10.9.1",
40-
"typescript": "^4.8.4"
40+
"typescript": "^5.5.4"
4141
},
4242
"prettier": "@sixfold/editor-config/prettier",
4343
"jest": {

tsconfig.json

-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
"lib": [
1212
"es2019"
1313
],
14-
"plugins": [
15-
{
16-
"name": "tslint-language-service"
17-
}
18-
],
1914
"include": [
2015
"src/**/*.ts"
2116
],

tslint.json

-9
This file was deleted.

0 commit comments

Comments
 (0)