Skip to content

Commit ffafa87

Browse files
committed
chore(lint): migrate from tslint to eslint and prettier
1 parent da3f1e0 commit ffafa87

File tree

6 files changed

+1492
-481
lines changed

6 files changed

+1492
-481
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
node_modules
3+
*.js
4+
*.d.ts
5+
*.js.map
6+
!/types/*.d.ts

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
node_modules
3+
*.js
4+
*.d.ts
5+
*.js.map
6+
!/types/*.d.ts

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"repository": "github:softwareventures/i32",
1616
"license": "ISC",
1717
"scripts": {
18-
"fix": "tsc --noEmit && tslint --fix --project .",
19-
"lint": "tsc --noEmit && tslint --project .",
18+
"fix": "tsc --noEmit && eslint . --fix && prettier --write .",
19+
"lint": "tsc --noEmit && eslint . && prettier --check .",
2020
"prepare": "tsc",
2121
"semantic-release": "semantic-release",
2222
"test": "ava"
@@ -32,16 +32,23 @@
3232
"tslib": "2.3.1"
3333
},
3434
"devDependencies": {
35+
"@softwareventures/eslint-config": "5.1.0",
36+
"@softwareventures/prettier-config": "3.0.0",
3537
"@softwareventures/semantic-release-config": "2.0.0",
3638
"@softwareventures/tsconfig": "5.1.1",
37-
"@softwareventures/tslint-rules": "1.0.0",
3839
"ava": "4.0.1",
3940
"cz-conventional-changelog": "3.3.0",
41+
"eslint": "8.8.0",
42+
"prettier": "2.5.1",
4043
"semantic-release": "17.4.7",
4144
"ts-node": "10.4.0",
42-
"tslint": "6.1.3",
4345
"typescript": "4.5.5"
4446
},
47+
"eslintConfig": {
48+
"root": true,
49+
"extends": "@softwareventures"
50+
},
51+
"prettier": "@softwareventures/prettier-config",
4552
"config": {
4653
"commitizen": {
4754
"path": "./node_modules/cz-conventional-changelog"

tsconfig.test.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": ".",
3+
"compilerOptions": {
4+
"noEmit": true
5+
},
6+
"exclude": []
7+
}

tslint.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)