Skip to content

Commit

Permalink
Configure eslint for warnings-ng to report on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Sep 23, 2024
1 parent a577798 commit 72392fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"prod": "webpack --config webpack.prod.js",
"start": "yarn dev --watch",
"lint:js": "eslint src/main/js --ext js",
"lint:js-ci": "eslint src/main/js -f checkstyle -o target/eslint-warnings.xml --ext js",
"mvnbuild": "yarn prod",
"mvntest": "yarn lint:js"
"mvntest": "npx if-env CI=true && yarn lint:js-ci || yarn lint:js"
},
"repository": {
"type": "git",
Expand All @@ -27,6 +28,7 @@
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^5.0.0",
"eslint": "^8.41.0",
"eslint-formatter-checkstyle": "^8.40.0",
"eslint-plugin-only-warn": "^1.1.0",
"less": "^3.12.2",
"less-loader": "^7.0.2",
Expand All @@ -49,5 +51,5 @@
"defaults",
"not IE 11"
],
"packageManager": "yarn@v1.22.22"
"packageManager": "yarn@1.22.22"
}
5 changes: 5 additions & 0 deletions plugin/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1632,6 +1632,11 @@ escape-string-regexp@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"

eslint-formatter-checkstyle@^8.40.0:
version "8.40.0"
resolved "https://registry.yarnpkg.com/eslint-formatter-checkstyle/-/eslint-formatter-checkstyle-8.40.0.tgz#137c10a20542a1f8d59536959d5bb3379fcf3fec"
integrity sha512-OpYAiI2yejMPUlB1O2pkfyNfBQrKNWrMK6X2eOn2vg/q94roDiHnOYExK0isdNglKeaYHA5JtgmuBtokFdj0AA==

eslint-plugin-only-warn@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.1.0.tgz#c6ddc37ddc4e72c121f07be565fcb7b6671fe78a"
Expand Down

0 comments on commit 72392fd

Please sign in to comment.