Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xojs/xo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 33b769ec71498f4c788fe01e17c043908ad0205d
Choose a base ref
...
head repository: xojs/xo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ab16df288360c3adc02efa5008b0acaf8c3e4a01
Choose a head ref
Loading
Showing with 1,585 additions and 1,250 deletions.
  1. +26 −0 .github/workflows/main.yml
  2. +0 −10 .travis.yml
  3. +0 −197 cli-main.js
  4. +218 −11 cli.js
  5. 0 config/{overrides.js → overrides.cjs}
  6. +117 −94 config/{plugins.js → plugins.cjs}
  7. +128 −72 index.js
  8. +32 −29 lib/constants.js
  9. +5 −4 lib/open-report.js
  10. +202 −129 lib/options-manager.js
  11. +62 −51 package.json
  12. +49 −45 readme.md
  13. +0 −169 test/cli-main.js
  14. +186 −7 test/cli.js
  15. +1 −1 test/fixtures/config-files/xo-config/.xo-config
  16. +5 −2 test/fixtures/config-files/xo-config/file.js
  17. +3 −0 test/fixtures/config-files/xo-config_cjs/.xo-config.cjs
  18. +5 −0 test/fixtures/config-files/xo-config_cjs/file.js
  19. +2 −2 test/fixtures/config-files/xo-config_js/.xo-config.js
  20. +5 −2 test/fixtures/config-files/xo-config_js/file.js
  21. +1 −1 test/fixtures/config-files/xo-config_json/.xo-config.json
  22. +5 −2 test/fixtures/config-files/xo-config_json/file.js
  23. +5 −0 test/fixtures/config-files/xo_config_cjs/file.js
  24. +3 −0 test/fixtures/config-files/xo_config_cjs/xo.config.cjs
  25. +5 −2 test/fixtures/config-files/xo_config_js/file.js
  26. +2 −2 test/fixtures/config-files/xo_config_js/xo.config.js
  27. 0 test/fixtures/custom-extension/{one-space.mjs → one-space.unknown}
  28. +1 −0 test/fixtures/custom-extension/readme.md
  29. +1 −1 test/fixtures/gitignore/test/bar.js
  30. +5 −1 test/fixtures/ignores/package.json
  31. +1 −1 test/fixtures/nested/child/package.json
  32. +2 −2 test/fixtures/nested/file.js
  33. +1 −1 test/fixtures/nested/package.json
  34. +4 −3 test/fixtures/overrides/package.json
  35. +1 −1 test/fixtures/overrides/test/bar.js
  36. +1 −1 test/fixtures/overrides/test/foo.js
  37. +3 −0 test/fixtures/package.json
  38. +1 −1 test/fixtures/space/one-space.js
  39. +1 −1 test/fixtures/space/two-spaces.js
  40. +1 −1 test/fixtures/typescript/child/sub-child/four-spaces.ts
  41. +1 −1 test/fixtures/typescript/two-spaces.tsx
  42. +1 −1 test/fixtures/webpack/no-config/file1.js
  43. +1 −1 test/fixtures/webpack/no-config/file3.js
  44. +1 −1 test/fixtures/webpack/with-config/file1.js
  45. +90 −66 test/lint-files.js
  46. +142 −122 test/lint-text.js
  47. +27 −24 test/open-report.js
  48. +203 −188 test/options-manager.js
  49. +28 −0 test/print-config.js
  50. +1 −0 test/temp/.gitignore
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
if: matrix.node-version == 14
with:
fail_ci_if_error: true
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

197 changes: 0 additions & 197 deletions cli-main.js

This file was deleted.

Loading