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: 100dc9b157d277b69bcb6df26fcd278bac183f46
Choose a head ref
Loading
Showing with 2,423 additions and 1,684 deletions.
  1. +26 −0 .github/workflows/main.yml
  2. +4 −0 .gitignore
  3. +0 −10 .travis.yml
  4. +0 −197 cli-main.js
  5. +220 −11 cli.js
  6. 0 config/{overrides.js → overrides.cjs}
  7. +148 −129 config/{plugins.js → plugins.cjs}
  8. +112 −106 index.js
  9. +37 −42 lib/constants.js
  10. +5 −4 lib/open-report.js
  11. +422 −245 lib/options-manager.js
  12. +86 −0 lib/report.js
  13. +66 −61 package.json
  14. +88 −57 readme.md
  15. +0 −169 test/cli-main.js
  16. +195 −8 test/cli.js
  17. +3 −0 test/fixtures/config-files/extends-relative/.xo-config.json
  18. +5 −0 test/fixtures/config-files/extends-relative/file.js
  19. +1 −1 test/fixtures/config-files/xo-config/.xo-config
  20. +5 −2 test/fixtures/config-files/xo-config/file.js
  21. +3 −0 test/fixtures/config-files/xo-config_cjs/.xo-config.cjs
  22. +5 −0 test/fixtures/config-files/xo-config_cjs/file.js
  23. +2 −2 test/fixtures/config-files/xo-config_js/.xo-config.js
  24. +5 −2 test/fixtures/config-files/xo-config_js/file.js
  25. +1 −1 test/fixtures/config-files/xo-config_json/.xo-config.json
  26. +5 −2 test/fixtures/config-files/xo-config_json/file.js
  27. +5 −0 test/fixtures/config-files/xo_config_cjs/file.js
  28. +3 −0 test/fixtures/config-files/xo_config_cjs/xo.config.cjs
  29. +5 −2 test/fixtures/config-files/xo_config_js/file.js
  30. +2 −2 test/fixtures/config-files/xo_config_js/xo.config.js
  31. 0 test/fixtures/custom-extension/{one-space.mjs → one-space.unknown}
  32. +1 −0 test/fixtures/custom-extension/readme.md
  33. +1 −1 test/fixtures/gitignore/test/bar.js
  34. +5 −1 test/fixtures/ignores/package.json
  35. +1 −0 test/fixtures/nested-ignores/a.js
  36. +1 −0 test/fixtures/nested-ignores/b.js
  37. +1 −0 test/fixtures/nested-ignores/child/a.js
  38. +1 −0 test/fixtures/nested-ignores/child/b.js
  39. +8 −0 test/fixtures/nested-ignores/child/package.json
  40. +8 −0 test/fixtures/nested-ignores/package.json
  41. +1 −1 test/fixtures/nested/child/package.json
  42. +2 −2 test/fixtures/nested/file.js
  43. +1 −1 test/fixtures/nested/package.json
  44. +4 −3 test/fixtures/overrides/package.json
  45. +1 −1 test/fixtures/overrides/test/bar.js
  46. +1 −1 test/fixtures/overrides/test/foo.js
  47. +3 −0 test/fixtures/package.json
  48. +1 −1 test/fixtures/prettier/package.json
  49. +1 −1 test/fixtures/space/one-space.js
  50. +1 −1 test/fixtures/space/two-spaces.js
  51. +1 −1 test/fixtures/typescript/child/sub-child/four-spaces.ts
  52. +4 −0 test/fixtures/typescript/deep-extends/config/tsconfig.json
  53. +3 −0 test/fixtures/typescript/deep-extends/package.json
  54. +3 −0 test/fixtures/typescript/excludes/package.json
  55. +3 −0 test/fixtures/typescript/excludes/tsconfig.json
  56. +3 −0 test/fixtures/typescript/extends-config/package.json
  57. +3 −0 test/fixtures/typescript/extends-config/tsconfig.json
  58. +26 −0 test/fixtures/typescript/extends-module/node_modules/@sindresorhus/tsconfig/package.json
  59. +35 −0 test/fixtures/typescript/extends-module/node_modules/@sindresorhus/tsconfig/tsconfig.json
  60. +3 −0 test/fixtures/typescript/extends-module/package.json
  61. +3 −0 test/fixtures/typescript/extends-module/tsconfig.json
  62. +1 −0 test/fixtures/typescript/extends-tsconfig-bases/node_modules/@tsconfig/node16/package.json
  63. +16 −0 test/fixtures/typescript/extends-tsconfig-bases/node_modules/@tsconfig/node16/tsconfig.json
  64. +3 −0 test/fixtures/typescript/extends-tsconfig-bases/package.json
  65. +3 −0 test/fixtures/typescript/extends-tsconfig-bases/tsconfig.json
  66. +7 −0 test/fixtures/typescript/parseroptions-project/package.json
  67. +3 −0 test/fixtures/typescript/parseroptions-project/projectconfig.json
  68. +4 −0 test/fixtures/typescript/parseroptions-project/tsconfig.json
  69. +4 −0 test/fixtures/typescript/relative-configs/config/tsconfig.json
  70. +7 −0 test/fixtures/typescript/relative-configs/package.json
  71. +1 −1 test/fixtures/typescript/two-spaces.tsx
  72. +1 −1 test/fixtures/webpack/no-config/file1.js
  73. +1 −1 test/fixtures/webpack/no-config/file3.js
  74. +1 −1 test/fixtures/webpack/with-config/file1.js
  75. +40 −0 test/ignores.js
  76. +127 −73 test/lint-files.js
  77. +206 −160 test/lint-text.js
  78. +30 −26 test/open-report.js
  79. +325 −353 test/options-manager.js
  80. +24 −0 test/options.js
  81. +29 −0 test/print-config.js
  82. +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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,5 +2,9 @@ node_modules
yarn.lock
!test/fixtures/project/node_modules
test/fixtures/project/node_modules/.cache
!test/fixtures/typescript/extends-module/node_modules
test/fixtures/typescript/extends-module/node_modules/.cache
!test/fixtures/typescript/extends-tsconfig-bases/node_modules
test/fixtures/typescript/extends-tsconfig-bases/node_modules/.cache
.nyc_output
coverage
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