Skip to content

Commit 16344cb

Browse files
committed
Update test command for travis
I think the new syntax I'm using here is compatible with `sh`...let's see.
1 parent 3a831fc commit 16344cb

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.eslintrc

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
{
2-
"plugins": [
3-
"prettier"
4-
],
2+
"plugins": ["prettier"],
53
"parser": "@typescript-eslint/parser",
6-
"extends": [
7-
"plugin:prettier/recommended",
8-
"prettier/@typescript-eslint"
9-
],
10-
"ignorePatterns": [
11-
"node_modules",
12-
"packages/pg-protocol/dist/**/*"
13-
],
4+
"extends": ["plugin:prettier/recommended", "prettier/@typescript-eslint"],
5+
"ignorePatterns": ["node_modules", "coverage", "packages/pg-protocol/dist/**/*"],
146
"parserOptions": {
157
"ecmaVersion": 2017,
168
"sourceType": "module"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "yarn lint && yarn lerna exec yarn test",
1414
"build": "yarn lerna exec --scope pg-protocol yarn build",
1515
"pretest": "yarn build",
16-
"lint": "!([[ -e node_modules/.bin/prettier ]]) || eslint '*/**/*.{js,ts,tsx}'"
16+
"lint": "if [ -x ./node_modules/.bin/eslint ]; then eslint '*/**/*.{js,ts,tsx}'; fi;"
1717
},
1818
"devDependencies": {
1919
"@typescript-eslint/eslint-plugin": "^2.27.0",

0 commit comments

Comments
 (0)