args = ['build']
}
-task yarn_validate() {
+task yarn_validate_ci() {
}
+
task "yarn_lint-report"() {
}
"build": "node scripts/build.js",
"test": "jest --passWithNoTests",
"format": "prettier --write --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
+ "format-check": "prettier --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
"lint": "eslint --ext js,ts,tsx --quiet src/main/js",
"lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
"ts-check": "tsc --noEmit",
- "prettier-check": "prettier --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
- "validate": "yarn lint && yarn ts-check && yarn prettier-check && yarn test"
+ "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test",
+ "validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test"
},
"engines": {
"node": ">=6"
"scripts": {
"start": "node scripts/start.js",
"build": "node scripts/build.js",
- "build-fast": "node scripts/build.js --fast",
"test": "jest",
"format": "prettier --write --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
+ "format-check": "yarn prettier --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
"lint": "eslint --ext js,ts,tsx --quiet src/main/js",
"lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
"flow-check": "flow check src/main/js",
"ts-check": "tsc --noEmit",
- "validate": "yarn lint && yarn flow-check && yarn ts-check && yarn test",
+ "validate": "yarn lint && yarn flow-check && yarn ts-check && yarn format-check && yarn test",
+ "validate-ci": "yarn lint-report && yarn flow-check && yarn ts-check && yarn format-check && yarn test",
"precommit": "yarn ts-check && lint-staged && yarn flow-check"
},
"engines": {
*/
import * as api from '../../../../api/settings';
import { parseError } from '../../../../helpers/request';
-import {
- addGlobalErrorMessage,
- closeAllGlobalMessages
-} from '../../../../store/globalMessages';
+import { addGlobalErrorMessage, closeAllGlobalMessages } from '../../../../store/globalMessages';
export const UPDATE_ENCRYPTION = 'UPDATE_ENCRYPTION';