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: 85861530aabc0321d9300da4323e335972212792
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,053 additions and 1,657 deletions.
  1. +1 −1 .editorconfig
  2. +1 −2 .gitattributes
  3. +26 −0 .github/workflows/main.yml
  4. +2 −1 .gitignore
  5. +1 −0 .npmrc
  6. +0 −7 .travis.yml
  7. +0 −20 appveyor.yml
  8. +161 −125 cli.js
  9. +2 −3 code-of-conduct.md
  10. +1 −0 config/{overrides.js → overrides.cjs}
  11. +368 −0 config/plugins.cjs
  12. +0 −65 config/plugins.js
  13. +1 −1 contributing.md
  14. +157 −95 index.js
  15. +153 −0 lib/constants.js
  16. +45 −0 lib/open-report.js
  17. +616 −0 lib/options-manager.js
  18. +5 −17 license
  19. +300 −289 media/logo.ai
  20. +0 −287 options-manager.js
  21. +133 −108 package.json
  22. +238 −131 readme.md
  23. +0 −268 test/api.js
  24. +134 −42 test/cli.js
  25. +3 −0 test/fixtures/config-files/xo-config/.xo-config
  26. +5 −0 test/fixtures/config-files/xo-config/file.js
  27. +3 −0 test/fixtures/config-files/xo-config_cjs/.xo-config.cjs
  28. +5 −0 test/fixtures/config-files/xo-config_cjs/file.js
  29. +3 −0 test/fixtures/config-files/xo-config_js/.xo-config.js
  30. +5 −0 test/fixtures/config-files/xo-config_js/file.js
  31. +3 −0 test/fixtures/config-files/xo-config_json/.xo-config.json
  32. +5 −0 test/fixtures/config-files/xo-config_json/file.js
  33. +5 −0 test/fixtures/config-files/xo_config_cjs/file.js
  34. +3 −0 test/fixtures/config-files/xo_config_cjs/xo.config.cjs
  35. +5 −0 test/fixtures/config-files/xo_config_js/file.js
  36. +3 −0 test/fixtures/config-files/xo_config_js/xo.config.js
  37. +3 −0 test/fixtures/custom-extension/one-space.unknown
  38. +1 −0 test/fixtures/custom-extension/readme.md
  39. +5 −0 test/fixtures/default-options/package.json
  40. +15 −0 test/fixtures/engines-overrides/package.json
  41. +7 −0 test/fixtures/engines-overrides/promise-then-transpile.js
  42. +7 −0 test/fixtures/engines-overrides/promise-then.js
  43. +7 −0 test/fixtures/engines/package.json
  44. +1 −0 test/fixtures/eslintignore/.eslintignore
  45. +1 −0 test/fixtures/eslintignore/bar.js
  46. +1 −0 test/fixtures/eslintignore/foo.js
  47. +2 −2 test/fixtures/gitignore/test/bar.js
  48. +1 −1 test/fixtures/gitignore/test/foo.js
  49. 0 test/fixtures/ignores/{test/fixtures → dist}/linter-error.js
  50. +11 −7 test/fixtures/ignores/package.json
  51. +0 −5 test/fixtures/ignores/test/foo.js
  52. +3 −0 test/fixtures/nested-configs/child-override/.prettierrc
  53. +10 −0 test/fixtures/nested-configs/child-override/child-prettier-override/package.json
  54. +1 −0 test/fixtures/nested-configs/child-override/child-prettier-override/semicolon.js
  55. +10 −0 test/fixtures/nested-configs/child-override/package.json
  56. +3 −0 test/fixtures/nested-configs/child-override/two-spaces.js
  57. +5 −0 test/fixtures/nested-configs/child/package.json
  58. +1 −0 test/fixtures/nested-configs/child/semicolon.js
  59. +1 −0 test/fixtures/nested-configs/no-semicolon.js
  60. +5 −0 test/fixtures/nested-configs/package.json
  61. +1 −1 test/fixtures/nested/child-empty/package.json
  62. +1 −3 test/fixtures/nested/child-ignore/package.json
  63. +3 −3 test/fixtures/nested/child/package.json
  64. +2 −2 test/fixtures/nested/file.js
  65. +3 −3 test/fixtures/nested/package.json
  66. +1 −0 test/fixtures/open-report/errors/one.js
  67. +1 −0 test/fixtures/open-report/errors/three.js
  68. +2 −0 test/fixtures/open-report/errors/two-with-warnings.js
  69. +1 −0 test/fixtures/open-report/successes/success.js
  70. +1 −0 test/fixtures/open-report/warnings/one.js
  71. +3 −0 test/fixtures/open-report/warnings/three.js
  72. +20 −19 test/fixtures/overrides/package.json
  73. +2 −2 test/fixtures/overrides/test/bar.js
  74. +2 −2 test/fixtures/overrides/test/foo.js
  75. +3 −0 test/fixtures/package.json
  76. +11 −0 test/fixtures/prettier/package.json
  77. +2 −2 test/fixtures/project/file.js
  78. +2 −2 test/fixtures/project/node_modules/eslint-config-custom/package.json
  79. +3 −3 test/fixtures/project/package.json
  80. +3 −0 test/fixtures/space/one-space.js
  81. +3 −0 test/fixtures/space/two-spaces.js
  82. +1 −0 test/fixtures/typescript/child/extra-semicolon.ts
  83. +1 −0 test/fixtures/typescript/child/no-semicolon.ts
  84. +5 −0 test/fixtures/typescript/child/package.json
  85. +3 −0 test/fixtures/typescript/child/sub-child/four-spaces.ts
  86. +5 −0 test/fixtures/typescript/child/sub-child/package.json
  87. +6 −0 test/fixtures/typescript/child/tsconfig.json
  88. +5 −0 test/fixtures/typescript/package.json
  89. +3 −0 test/fixtures/typescript/two-spaces.tsx
  90. +2 −0 test/fixtures/webpack/no-config/file1.js
  91. +2 −0 test/fixtures/webpack/no-config/file2.js
  92. +1 −0 test/fixtures/webpack/no-config/file3.js
  93. +2 −0 test/fixtures/webpack/with-config/file1.js
  94. +2 −0 test/fixtures/webpack/with-config/file2.js
  95. +9 −0 test/fixtures/webpack/with-config/webpack.config.js
  96. +307 −0 test/lint-files.js
  97. +333 −0 test/lint-text.js
  98. +96 −0 test/open-report.js
  99. +677 −138 test/options-manager.js
  100. +28 −0 test/print-config.js
  101. +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
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
* text=auto
*.js text eol=lf
* 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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
yarn.lock
!test/fixtures/project/node_modules
test/fixtures/project/node_modules/.cache
.nyc_output
coverage
yarn.lock
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

20 changes: 0 additions & 20 deletions appveyor.yml

This file was deleted.

Loading