diff --git a/.prettierrc b/.prettierrc index 3696286104..a13afd811f 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,5 +4,6 @@ "trailingComma": "es5", "bracketSpacing": true, "printWidth": 120, - "arrowParens": "always" + "arrowParens": "always", + "endOfLine": "auto" } diff --git a/package.json b/package.json index 56b6cc135a..57d417c3cb 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "lint": "eslint --ext .ts ./src ./__tests__", "lint-staged": "lint-staged", "test": "jest", - "test-live": "DEBUG_MODE=1 jest --watch ./__tests__", + "test-live": "cross-env DEBUG_MODE=1 jest --watch ./__tests__", "coverage": "jest --coverage", "ci": "run-s lint build coverage", "changelog": "conventional-changelog -i CHANGELOG.md -a -s", @@ -63,6 +63,7 @@ "@typescript-eslint/parser": "^2.0.0", "babel-loader": "^8.1.0", "conventional-changelog-cli": "^2.0.28", + "cross-env": "^7.0.2", "dumi": "^1.0.33", "eslint": "^6.1.0", "eslint-config-prettier": "^6.0.0",