Skip to content

Commit

Permalink
refactor(cli): rewrite CLI to TS (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek authored Feb 26, 2021
1 parent de25666 commit 6f5498e
Show file tree
Hide file tree
Showing 36 changed files with 25,109 additions and 9,677 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
- restore_dependency_cache
# Re-build packages, ensuring packages/webdriverjs/dist exists.
- run: npx lerna run prepare
- run: npm run test --prefix=packages/cli
- run: npm run coverage --prefix=packages/cli

puppeteer:
<<: *defaults
Expand Down
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
packages/cli/testutils/*
packages/cli/src/testutils/*
packages/cli/src/**/**/*.test.ts
9 changes: 7 additions & 2 deletions packages/cli/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
module.exports = {
rules: {
'@typescript-eslint/no-empty-function': 0
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off'
},
overrides: [
{
files: 'test/**/*.js',
files: '**/**/*.test.ts',
env: {
mocha: true
},
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
}
]
Expand Down
2 changes: 0 additions & 2 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ You can run multiple pages at once, simply add more URLs to the command. Keep in
axe www.deque.com, dequeuniversity.com
```

**Note:** If you are having difficulty with the color scheme, use `--no-color` to disable text styles.

## Running specific rules

You can use the `--rules` flag to set which rules you wish to run, or you can use `--tags` to tell axe to run all rules that have that specific tag. For example:
Expand Down
3 changes: 0 additions & 3 deletions packages/cli/axe-cli

This file was deleted.

286 changes: 0 additions & 286 deletions packages/cli/index.js

This file was deleted.

Loading

0 comments on commit 6f5498e

Please sign in to comment.