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: 4bb9eb6388a6d78d93647ec165730127406ec0f0
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 4,258 additions and 1,266 deletions.
  1. +1 −1 .editorconfig
  2. +1 −1 .gitattributes
  3. +26 −0 .github/workflows/main.yml
  4. +2 −0 .gitignore
  5. +1 −0 .npmrc
  6. +0 −8 .travis.yml
  7. +0 −21 appveyor.yml
  8. +194 −154 cli.js
  9. +2 −3 code-of-conduct.md
  10. +5 −0 config/overrides.cjs
  11. +0 −22 config/overrides.js
  12. +368 −0 config/plugins.cjs
  13. +0 −43 config/plugins.js
  14. +2 −2 contributing.md
  15. +163 −53 index.js
  16. +153 −0 lib/constants.js
  17. +45 −0 lib/open-report.js
  18. +616 −0 lib/options-manager.js
  19. +5 −17 license
  20. +300 −289 media/logo.ai
  21. +0 −206 options-manager.js
  22. +133 −100 package.json
  23. +293 −139 readme.md
  24. +0 −65 test/api.js
  25. +172 −20 test/cli.js
  26. +3 −0 test/fixtures/config-files/xo-config/.xo-config
  27. +5 −0 test/fixtures/config-files/xo-config/file.js
  28. +3 −0 test/fixtures/config-files/xo-config_cjs/.xo-config.cjs
  29. +5 −0 test/fixtures/config-files/xo-config_cjs/file.js
  30. +3 −0 test/fixtures/config-files/xo-config_js/.xo-config.js
  31. +5 −0 test/fixtures/config-files/xo-config_js/file.js
  32. +3 −0 test/fixtures/config-files/xo-config_json/.xo-config.json
  33. +5 −0 test/fixtures/config-files/xo-config_json/file.js
  34. +5 −0 test/fixtures/config-files/xo_config_cjs/file.js
  35. +3 −0 test/fixtures/config-files/xo_config_cjs/xo.config.cjs
  36. +5 −0 test/fixtures/config-files/xo_config_js/file.js
  37. +3 −0 test/fixtures/config-files/xo_config_js/xo.config.js
  38. +3 −0 test/fixtures/custom-extension/one-space.unknown
  39. +1 −0 test/fixtures/custom-extension/readme.md
  40. +1 −0 test/fixtures/cwd/unicorn.js
  41. +5 −0 test/fixtures/default-options/package.json
  42. +15 −0 test/fixtures/engines-overrides/package.json
  43. +7 −0 test/fixtures/engines-overrides/promise-then-transpile.js
  44. +7 −0 test/fixtures/engines-overrides/promise-then.js
  45. +7 −0 test/fixtures/engines/package.json
  46. +1 −0 test/fixtures/eslintignore/.eslintignore
  47. +1 −0 test/fixtures/eslintignore/bar.js
  48. +1 −0 test/fixtures/eslintignore/foo.js
  49. +1 −1 test/fixtures/extends.js
  50. +1 −0 test/fixtures/gitignore-multiple-negation/!!!unicorn.js
  51. +1 −0 test/fixtures/gitignore-multiple-negation/!!unicorn.js
  52. +1 −0 test/fixtures/gitignore-multiple-negation/!unicorn.js
  53. +3 −0 test/fixtures/gitignore-multiple-negation/.gitignore
  54. +1 −0 test/fixtures/gitignore-multiple-negation/unicorn.js
  55. +5 −0 test/fixtures/gitignore/index.js
  56. +2 −0 test/fixtures/gitignore/test/.gitignore
  57. +6 −0 test/fixtures/gitignore/test/bar.js
  58. +6 −0 test/fixtures/gitignore/test/foo.js
  59. 0 test/fixtures/ignores/{test/fixtures → dist}/linter-error.js
  60. +11 −7 test/fixtures/ignores/package.json
  61. +0 −5 test/fixtures/ignores/test/foo.js
  62. +2 −0 test/fixtures/negative-gitignore/.gitignore
  63. +1 −0 test/fixtures/negative-gitignore/bar.js
  64. +1 −0 test/fixtures/negative-gitignore/foo.js
  65. +3 −0 test/fixtures/nested-configs/child-override/.prettierrc
  66. +10 −0 test/fixtures/nested-configs/child-override/child-prettier-override/package.json
  67. +1 −0 test/fixtures/nested-configs/child-override/child-prettier-override/semicolon.js
  68. +10 −0 test/fixtures/nested-configs/child-override/package.json
  69. +3 −0 test/fixtures/nested-configs/child-override/two-spaces.js
  70. +5 −0 test/fixtures/nested-configs/child/package.json
  71. +1 −0 test/fixtures/nested-configs/child/semicolon.js
  72. +1 −0 test/fixtures/nested-configs/no-semicolon.js
  73. +5 −0 test/fixtures/nested-configs/package.json
  74. +3 −0 test/fixtures/nested/child-empty/package.json
  75. +1 −0 test/fixtures/nested/child-ignore/package.json
  76. +5 −0 test/fixtures/nested/child/package.json
  77. +2 −0 test/fixtures/nested/file.js
  78. +5 −0 test/fixtures/nested/package.json
  79. +1 −0 test/fixtures/nodir/nested/index.js
  80. +1 −0 test/fixtures/nodir/noextension
  81. +1 −0 test/fixtures/open-report/errors/one.js
  82. +1 −0 test/fixtures/open-report/errors/three.js
  83. +2 −0 test/fixtures/open-report/errors/two-with-warnings.js
  84. +1 −0 test/fixtures/open-report/successes/success.js
  85. +1 −0 test/fixtures/open-report/warnings/one.js
  86. +3 −0 test/fixtures/open-report/warnings/three.js
  87. +20 −18 test/fixtures/overrides/package.json
  88. +2 −2 test/fixtures/overrides/test/bar.js
  89. +2 −2 test/fixtures/overrides/test/foo.js
  90. +3 −0 test/fixtures/package.json
  91. +11 −0 test/fixtures/prettier/package.json
  92. +2 −2 test/fixtures/project/file.js
  93. +1 −1 test/fixtures/project/node_modules/eslint-config-custom/config.json
  94. +2 −2 test/fixtures/project/node_modules/eslint-config-custom/package.json
  95. +3 −3 test/fixtures/project/package.json
  96. +3 −0 test/fixtures/space/one-space.js
  97. +3 −0 test/fixtures/space/two-spaces.js
  98. +1 −0 test/fixtures/typescript/child/extra-semicolon.ts
  99. +1 −0 test/fixtures/typescript/child/no-semicolon.ts
  100. +5 −0 test/fixtures/typescript/child/package.json
  101. +3 −0 test/fixtures/typescript/child/sub-child/four-spaces.ts
  102. +5 −0 test/fixtures/typescript/child/sub-child/package.json
  103. +6 −0 test/fixtures/typescript/child/tsconfig.json
  104. +5 −0 test/fixtures/typescript/package.json
  105. +3 −0 test/fixtures/typescript/two-spaces.tsx
  106. +2 −0 test/fixtures/webpack/no-config/file1.js
  107. +2 −0 test/fixtures/webpack/no-config/file2.js
  108. +1 −0 test/fixtures/webpack/no-config/file3.js
  109. +2 −0 test/fixtures/webpack/with-config/file1.js
  110. +2 −0 test/fixtures/webpack/with-config/file2.js
  111. +9 −0 test/fixtures/webpack/with-config/webpack.config.js
  112. +307 −0 test/lint-files.js
  113. +333 −0 test/lint-text.js
  114. +96 −0 test/open-report.js
  115. +707 −79 test/options-manager.js
  116. +28 −0 test/print-config.js
  117. +1 −0 test/temp/.gitignore
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -7,6 +7,6 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
[*.yml]
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* text=auto
* text=auto eol=lf
*.ai binary
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
yarn.lock
!test/fixtures/project/node_modules
test/fixtures/project/node_modules/.cache
.nyc_output
coverage
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

21 changes: 0 additions & 21 deletions appveyor.yml

This file was deleted.

Loading