Explorar o código

Updated config file

Snow %!s(int64=8) %!d(string=hai) anos
pai
achega
0faf679f8b
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  1. 3 7
      package.json

+ 3 - 7
package.json

@@ -37,7 +37,7 @@
   "scripts": {
     "start": "webpack-dev-server --colors --hot --config ./webpack.config.js",
     "build": "webpack --progress -p && cp ./public/* ./build",
-    "precommit": "lint-staged",
+    "pc": "lint-staged",
     "test": "jest --watch"
   },
   "dependencies": {
@@ -53,12 +53,8 @@
     "styled-components": "^2.1.0"
   },
   "lint-staged": {
-    "*.js": [
-      "prettier --single-quote --es5 --write",
-      "git add"
-    ],
-    "*.jsx": [
-      "prettier --single-quote --es5 --write",
+    "*.{js,jsx}": [
+      "prettier --single-quote --es5 --no-semi --write",
       "git add"
     ]
   }