Skip to content

Commit c22c2f0

Browse files
chyzwarbrianc
authored andcommitted
chore(): update eslint, run lint only on latest lts
1 parent 415bf09 commit c22c2f0

File tree

4 files changed

+1226
-903
lines changed

4 files changed

+1226
-903
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ matrix:
5757
addons:
5858
postgresql: '9.6'
5959

60+
# only run lint on latest Node LTS
61+
- node_js: lts/*
62+
addons:
63+
postgresql: '9.6'
64+
script: yarn lint
65+
6066
# PostgreSQL 9.2 only works on precise
6167
- node_js: lts/carbon
6268
addons:

.yarnrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--install.ignore-engines true

package.json

+9-11
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,20 @@
1010
"packages/*"
1111
],
1212
"scripts": {
13-
"test": "yarn lint && yarn lerna exec yarn test",
13+
"test": "yarn lerna exec yarn test",
1414
"build": "yarn lerna exec --scope pg-protocol yarn build",
1515
"pretest": "yarn build",
16-
"lint": "if [ -x ./node_modules/.bin/prettier ]; then eslint '*/**/*.{js,ts,tsx}'; fi;"
16+
"lint": "eslint '*/**/*.{js,ts,tsx}'"
1717
},
1818
"devDependencies": {
19-
"@typescript-eslint/eslint-plugin": "^2.27.0",
20-
"@typescript-eslint/parser": "^2.27.0",
21-
"eslint": "^6.8.0",
22-
"eslint-config-prettier": "^6.10.1",
19+
"@typescript-eslint/eslint-plugin": "^4.4.0",
20+
"@typescript-eslint/parser": "^4.4.0",
21+
"eslint": "^7.11.0",
22+
"eslint-config-prettier": "^6.12.0",
2323
"eslint-plugin-node": "^11.1.0",
24-
"eslint-plugin-prettier": "^3.1.2",
25-
"lerna": "^3.19.0"
26-
},
27-
"optionalDependencies": {
28-
"prettier": "2.0.4"
24+
"eslint-plugin-prettier": "^3.1.4",
25+
"lerna": "^3.19.0",
26+
"prettier": "2.1.2"
2927
},
3028
"prettier": {
3129
"semi": false,

0 commit comments

Comments
 (0)