Skip to content

Commit

Permalink
Fixes #36564 - Add eslint rule to alert missing ouia-ids
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and ofedoren committed Jul 11, 2023
1 parent 2b10ad9 commit ab46e19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"plugins": ["@theforeman/foreman"],
"plugins": [
"@theforeman/foreman",
"@theforeman/rules"
],
"extends": [
"plugin:@theforeman/foreman/core",
"plugin:@theforeman/foreman/plugins"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/js_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Run plugin linter
run: |
npm run lint
- name: Run custom plugin linter
run: |
npm run lint:custom
- name: Run plugin tests
run: |
npm run test
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "GPL-3.0",
"scripts": {
"lint": "tfm-lint --plugin -d /webpack",
"lint:custom": "eslint ./webpack",
"test": "tfm-test --plugin",
"test:watch": "tfm-test --plugin --watchAll",
"test:current": "tfm-test --plugin --watch",
Expand All @@ -23,6 +24,7 @@
"@babel/core": "^7.7.0",
"@theforeman/builder": "^12.0.1",
"@theforeman/eslint-plugin-foreman": "^12.0.1",
"@theforeman/eslint-plugin-rules": "^12.0.2",
"@theforeman/test": "^12.0.1",
"@theforeman/vendor-dev": "^12.0.1",
"babel-eslint": "^10.0.0",
Expand Down

0 comments on commit ab46e19

Please sign in to comment.