Skip to content

Commit 27f9c61

Browse files
add prettier check to CI test runs
1 parent 26ec207 commit 27f9c61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"make:dist": "mkdirp dist && browserify src/PlotlyEditor.js -o ./dist/PlotlyEditor.js -t [ babelify --presets [ es2015 react ] ] -t browserify-global-shim --standalone createPlotlyComponent && uglifyjs ./dist/PlotlyEditor.js --compress --mangle --output ./dist/PlotlyEditor.min.js --source-map filename=dist/PlotlyEditor.min.js.map && make:dist:css",
1919
"make:dist:css": "mkdirp dist && node-sass --output-style compressed src/styles/main.scss > dist/react-plotly.js-editor.css",
2020
"prepublishOnly": "npm run make:lib",
21-
"lint": "prettier --write \"{src}/**/*.{js,jsx}\"",
22-
"test": "jest",
21+
"lint": "prettier --write \"src/**/*.js\"",
22+
"test": "prettier -l \"src/**/*.js\" && jest",
2323
"watch": "nodemon --exec \"npm run make:lib\" -w src",
2424
"watch-test": "jest --watch",
2525
"eslint:check": "eslint --print-config .eslintrc | eslint-config-prettier-check"

0 commit comments

Comments
 (0)