Skip to content

Commit 73e3a16

Browse files
committed
Make sure linting and formatting are part of the testing process.
1 parent 033df8b commit 73e3a16

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true
4+
}

.prettierrc.js

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

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ env:
88
- REACT=16.6
99
sudo: false
1010
script:
11-
- npm run lint
12-
- npm run test
11+
- npm test
1312
after_success:
1413
- npm run coverage

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/react-redux.min.js",
3535
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
3636
"clean": "rimraf lib dist es coverage",
37+
"format": "prettier --write '{src,test}/**/*.js'",
3738
"lint": "eslint src test/utils test/components",
3839
"prepare": "npm run clean && npm run build",
40+
"pretest": "npm run lint",
3941
"test": "node ./test/run-tests.js",
4042
"coverage": "codecov"
4143
},

0 commit comments

Comments
 (0)