diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/package.json b/package.json index eb39884a1d9..e5f3e284a09 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,13 @@ "block-dependencies": "node scripts/frontend/block_dependencies.js", "clean": "rm -rf public/assets tmp/cache/*-loader", "dev-server": "NODE_OPTIONS=\"--max-old-space-size=3584\" node scripts/frontend/webpack_dev_server.js", - "eslint": "eslint --cache --max-warnings 0 --report-unused-disable-directives --ext .js,.vue .", - "eslint-fix": "eslint --cache --max-warnings 0 --report-unused-disable-directives --ext .js,.vue --fix .", - "eslint-staged": "git diff --diff-filter=d --cached --name-only | grep -E \"(.*)\\.(js|vue)$\" | xargs eslint --cache --max-warnings 0 --report-unused-disable-directives", - "eslint-staged-fix": "git diff --diff-filter=d --cached --name-only | grep -E \"(.*)\\.(js|vue)$\" | xargs eslint --cache --max-warnings 0 --report-unused-disable-directives --fix", - "eslint-report": "eslint --max-warnings 0 --ext .js,.vue --format html --output-file ./eslint-report.html --no-inline-config .", + "eslint-fix": "echo 'Please use lint:eslint:fix instead' && exit 1", + "eslint-staged": "echo 'Please use lint:eslint:staged instead' && exit 1", + "eslint-staged-fix": "echo 'Please use lint:eslint:staged:fix instead' && exit 1", + "eslint-report": "echo 'Please use lint:eslint:report instead' && exit 1", "file-coverage": "scripts/frontend/file_test_coverage.js", "lint-docs": "scripts/lint-doc.sh", + "internal:eslint": "eslint --cache --max-warnings 0 --report-unused-disable-directives --ext .js,.vue", "prejest": "yarn check-dependencies", "jest": "jest --config jest.config.js", "jest-debug": "node --inspect-brk node_modules/.bin/jest --runInBand", @@ -21,12 +21,21 @@ "karma": "BABEL_ENV=${BABEL_ENV:=karma} karma start --single-run true config/karma.config.js", "karma-coverage": "BABEL_ENV=coverage karma start --single-run true config/karma.config.js", "karma-start": "BABEL_ENV=karma karma start config/karma.config.js", + "lint:eslint": "yarn run internal:eslint .", + "lint:eslint:fix": "yarn run lint:eslint --fix", + "lint:eslint:report": "yarn run internal:eslint --format html --output-file ./eslint-report.html --no-inline-config .", + "lint:eslint:staged": "scripts/frontend/execute-on-staged-files.sh internal:eslint '(js|vue)'", + "lint:eslint:staged:fix": "yarn run lint:eslint:staged --fix", + "lint:prettier": "yarn run prettier --check '**/*.{graphql,js,vue}'", + "lint:prettier:fix": "yarn run prettier --write '**/*.{graphql,js,vue}'", + "lint:prettier:staged": "scripts/frontend/execute-on-staged-files.sh prettier '(graphql|js|vue)' --check", + "lint:prettier:staged:fix": "scripts/frontend/execute-on-staged-files.sh prettier '(graphql|js|vue)' --write", "markdownlint": "markdownlint --config .markdownlint.json", "postinstall": "node ./scripts/frontend/postinstall.js", - "prettier-staged": "node ./scripts/frontend/prettier.js check", - "prettier-staged-save": "node ./scripts/frontend/prettier.js save", - "prettier-all": "node ./scripts/frontend/prettier.js check-all", - "prettier-all-save": "node ./scripts/frontend/prettier.js save-all", + "prettier-all": "echo 'Please use lint:prettier instead' && exit 1", + "prettier-all-save": "echo 'Please use lint:prettier:fix instead' && exit 1", + "prettier-staged": "echo 'Please use lint:prettier:staged instead' && exit 1", + "prettier-staged-save": "echo 'Please use lint:prettier:staged:fixed instead' && exit 1", "stylelint": "yarn stylelint-file 'app/assets/stylesheets/**/*.*' 'ee/app/assets/stylesheets/**/*.*' '!app/assets/stylesheets/startup/startup-*.scss' '!**/vendors/**'", "stylelint-file": "BROWSERSLIST_IGNORE_OLD_DATA=true node node_modules/stylelint/bin/stylelint.js", "stylelint-create-utility-map": "node scripts/frontend/stylelint/stylelint-utility-map.js", @@ -45,10 +54,11 @@ "@gitlab/favicon-overlay": "2.0.0", "@gitlab/svgs": "1.182.0", "@gitlab/tributejs": "1.0.0", - "@gitlab/ui": "27.4.6", + "@gitlab/ui": "27.7.1", "@gitlab/visual-review-tools": "1.6.1", "@rails/actioncable": "^6.0.3-4", "@rails/ujs": "^6.0.3-4", + "@sentry/browser": "^5.22.3", "@sourcegraph/code-host-integration": "0.0.52", "@toast-ui/editor": "^2.5.1", "@toast-ui/vue-editor": "^2.5.1", @@ -155,7 +165,8 @@ }, "devDependencies": { "@babel/plugin-transform-modules-commonjs": "^7.10.1", - "@gitlab/eslint-plugin": "8.0.0", + "@gitlab/eslint-plugin": "8.1.0", + "@gitlab/stylelint-config": "^2.2.0", "@testing-library/dom": "^7.16.2", "@vue/test-utils": "1.1.2", "acorn": "^6.3.0", @@ -167,17 +178,17 @@ "commander": "^2.18.0", "custom-jquery-matchers": "^2.1.0", "docdash": "^1.0.2", - "eslint": "7.19.0", + "eslint": "7.20.0", "eslint-import-resolver-jest": "3.0.0", "eslint-import-resolver-webpack": "0.13.0", "eslint-plugin-jasmine": "4.1.2", "eslint-plugin-no-jquery": "2.5.0", "gettext-extractor": "^3.5.3", "gettext-extractor-vue": "^5.0.0", + "glob": "^7.1.6", "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-report": "^3.0.0", "istanbul-reports": "^3.0.0", - "glob": "^7.1.6", "jasmine-core": "^2.9.0", "jasmine-diff": "^0.1.3", "jasmine-jquery": "^2.1.1", @@ -207,9 +218,6 @@ "postcss": "^7.0.14", "prettier": "2.2.1", "readdir-enhanced": "^2.2.4", - "stylelint": "^10.1.0", - "stylelint-config-recommended": "^2.2.0", - "stylelint-scss": "^3.9.2", "timezone-mock": "^1.0.8", "vue-jest": "4.0.0-rc.0", "webpack-dev-server": "^3.11.2", |