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: 4f40389b36f84fe8a5b9302e95403f1cc91d7452
Choose a base ref
...
head repository: xojs/xo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b9ce6c86538968235069c1126030011fcbe2b651
Choose a head ref
Loading
Showing with 1,900 additions and 1,578 deletions.
  1. +26 −0 .github/workflows/main.yml
  2. +0 −10 .travis.yml
  3. +0 −197 cli-main.js
  4. +219 −11 cli.js
  5. 0 config/{overrides.js → overrides.cjs}
  6. +128 −107 config/{plugins.js → plugins.cjs}
  7. +104 −104 index.js
  8. +31 −36 lib/constants.js
  9. +5 −4 lib/open-report.js
  10. +273 −215 lib/options-manager.js
  11. +84 −0 lib/report.js
  12. +61 −57 package.json
  13. +67 −54 readme.md
  14. +0 −169 test/cli-main.js
  15. +194 −7 test/cli.js
  16. +1 −1 test/fixtures/config-files/xo-config/.xo-config
  17. +5 −2 test/fixtures/config-files/xo-config/file.js
  18. +3 −0 test/fixtures/config-files/xo-config_cjs/.xo-config.cjs
  19. +5 −0 test/fixtures/config-files/xo-config_cjs/file.js
  20. +2 −2 test/fixtures/config-files/xo-config_js/.xo-config.js
  21. +5 −2 test/fixtures/config-files/xo-config_js/file.js
  22. +1 −1 test/fixtures/config-files/xo-config_json/.xo-config.json
  23. +5 −2 test/fixtures/config-files/xo-config_json/file.js
  24. +5 −0 test/fixtures/config-files/xo_config_cjs/file.js
  25. +3 −0 test/fixtures/config-files/xo_config_cjs/xo.config.cjs
  26. +5 −2 test/fixtures/config-files/xo_config_js/file.js
  27. +2 −2 test/fixtures/config-files/xo_config_js/xo.config.js
  28. 0 test/fixtures/custom-extension/{one-space.mjs → one-space.unknown}
  29. +1 −0 test/fixtures/custom-extension/readme.md
  30. +1 −1 test/fixtures/gitignore/test/bar.js
  31. +5 −1 test/fixtures/ignores/package.json
  32. +1 −0 test/fixtures/nested-ignores/a.js
  33. +1 −0 test/fixtures/nested-ignores/b.js
  34. +1 −0 test/fixtures/nested-ignores/child/a.js
  35. +1 −0 test/fixtures/nested-ignores/child/b.js
  36. +8 −0 test/fixtures/nested-ignores/child/package.json
  37. +8 −0 test/fixtures/nested-ignores/package.json
  38. +1 −1 test/fixtures/nested/child/package.json
  39. +2 −2 test/fixtures/nested/file.js
  40. +1 −1 test/fixtures/nested/package.json
  41. +4 −3 test/fixtures/overrides/package.json
  42. +1 −1 test/fixtures/overrides/test/bar.js
  43. +1 −1 test/fixtures/overrides/test/foo.js
  44. +3 −0 test/fixtures/package.json
  45. +1 −1 test/fixtures/prettier/package.json
  46. +1 −1 test/fixtures/space/one-space.js
  47. +1 −1 test/fixtures/space/two-spaces.js
  48. +1 −1 test/fixtures/typescript/child/sub-child/four-spaces.ts
  49. +7 −0 test/fixtures/typescript/parseroptions-project/package.json
  50. +3 −0 test/fixtures/typescript/parseroptions-project/projectconfig.json
  51. +3 −0 test/fixtures/typescript/parseroptions-project/tsconfig.json
  52. +1 −1 test/fixtures/typescript/two-spaces.tsx
  53. +1 −1 test/fixtures/webpack/no-config/file1.js
  54. +1 −1 test/fixtures/webpack/no-config/file3.js
  55. +1 −1 test/fixtures/webpack/with-config/file1.js
  56. +40 −0 test/ignores.js
  57. +92 −67 test/lint-files.js
  58. +170 −133 test/lint-text.js
  59. +28 −24 test/open-report.js
  60. +221 −350 test/options-manager.js
  61. +24 −0 test/options.js
  62. +29 −0 test/print-config.js
  63. +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 --force
- 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