Assistant for writing inclusive code. Based on dequelabs/axe-core.
Features:
- real-time code analysis
- annotations for improvements
- configuration file support to enable and disable rules
- currently supported file types:
html
,htm
,hbs
,handlebars
andvue
Configuration File:
At the root directory of your project you can place a file called axe-linter.yml
.
With the rules
property you can enable or disable rules and with the tags
property you can enable only rules with the specific tags. All other rules will be disabled, even when they are enabled through the rules
property.
List of all available rules including their tags
Example:
rules:
html-has-lang: false # disables the rule
tags: # excludes all rules that don't have one of these tags
- wcag2a
- wcag21a
-
Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "accessibility-linter" > Install Plugin
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
- navigate to
src/main/javascript
- run
npm install
To apply JavaScript changes for local debugging, run the build > clean
gradle task. Then run the Run Plugin
task from the run configurations like normal.
- set the new version number in
gradle.properties
- update changelog
- commit and push
- wait for the GitHub Actions successfully finish running, if they fail: fix the errors and start over (depending on what went wrong)
- Locate the draft release on GitHub
- Turn into a pre-release (This will upload the plugin to the marketplace and to this pre-release; and create a pull request for the changelog)
once the plugin version was approved by JetBrains...
- Merge the generated pull request
- Turn the pre-release into a full release
- navigate to
src/main/javascript
- run
npm install --omit=dev
- set the new version number in
gradle.properties
- commit and push
- run the
build > clean
gradle task - run the
build > build
gradle task - locate the plugin in
build/distributions
- wait for the GitHub Actions successfully finish running, if they fail: fix the errors and start over (depending on what went wrong)
- upload the plugin to the marketplace as an update with
Upload Update
(login needed) - upload the plugin to the generated GitHub draft from the releases list and publish the release
- locally run the
changelog > patchChangelog
gradle task to update the changelog, afterwards push + commit
Plugin based on the IntelliJ Platform Plugin Template.