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: 7c7c4638ceb831651badbb4efd19b05a177c6b86
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

Commits on Sep 26, 2019

  1. Copy the full SHA
    6463dfe View commit details

Commits on Nov 19, 2019

  1. Copy the full SHA
    1fdc2f9 View commit details

Commits on Dec 16, 2019

  1. Copy the full SHA
    5cddaec View commit details

Commits on Jan 25, 2020

  1. Replace destructing import with one-by-one import (#417)

    Ayyan Lewis authored and sindresorhus committed Jan 25, 2020
    Copy the full SHA
    e8c43d2 View commit details

Commits on Feb 12, 2020

  1. Copy the full SHA
    c50eaf0 View commit details
  2. Copy the full SHA
    ab3e01a View commit details
  3. Require Node.js 10

    sindresorhus committed Feb 12, 2020
    2
    Copy the full SHA
    d7fa875 View commit details
  4. Copy the full SHA
    08af7c1 View commit details
  5. Set the es2020 environment by default

    Fixes #415
    Fixes #406
    sindresorhus committed Feb 12, 2020
    Copy the full SHA
    eb5ea2c View commit details
  6. 0.26.0

    sindresorhus committed Feb 12, 2020
    Copy the full SHA
    c2bb1bf View commit details

Commits on Feb 13, 2020

  1. Copy the full SHA
    9fbdb97 View commit details
  2. Copy the full SHA
    74b34bf View commit details

Commits on Feb 14, 2020

  1. 0.26.1

    sindresorhus committed Feb 14, 2020
    Copy the full SHA
    a8f9a34 View commit details

Commits on Feb 17, 2020

  1. Find XO config based on linted file path (#425)

    Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
    pvdlg and sindresorhus authored Feb 17, 2020
    Copy the full SHA
    e0f81a7 View commit details

Commits on Feb 18, 2020

  1. Copy the full SHA
    2297c07 View commit details

Commits on Feb 24, 2020

  1. Copy the full SHA
    0c78113 View commit details
  2. Copy the full SHA
    4cefdbc View commit details
  3. Add TypeScript support (#426)

    Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
    pvdlg and sindresorhus authored Feb 24, 2020
    Copy the full SHA
    b0dfcbd View commit details
  4. Minor tweaks

    sindresorhus committed Feb 24, 2020
    Copy the full SHA
    482e209 View commit details
  5. 0.27.0

    sindresorhus committed Feb 24, 2020
    Copy the full SHA
    ee7b08e View commit details

Commits on Feb 25, 2020

  1. Copy the full SHA
    0ea5dbb View commit details
  2. 0.27.1

    sindresorhus committed Feb 25, 2020
    Copy the full SHA
    ad2a712 View commit details

Commits on Feb 26, 2020

  1. Copy the full SHA
    1807537 View commit details
  2. Fix failing test for #65 (#435)

    pvdlg authored Feb 26, 2020
    Copy the full SHA
    6dc2011 View commit details
  3. Copy the full SHA
    5277f16 View commit details
  4. 0.27.2

    sindresorhus committed Feb 26, 2020
    Copy the full SHA
    6d25237 View commit details

Commits on Mar 8, 2020

  1. Copy the full SHA
    0d63c64 View commit details
  2. Copy the full SHA
    ba4efc9 View commit details

Commits on Mar 11, 2020

  1. Copy the full SHA
    5a22b77 View commit details
  2. Add webpack option (#375)

    Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
    dflupu and sindresorhus authored Mar 11, 2020
    Copy the full SHA
    f656ee3 View commit details
  3. Update dependencies

    sindresorhus committed Mar 11, 2020
    Copy the full SHA
    d3c5399 View commit details
  4. 0.28.0

    sindresorhus committed Mar 11, 2020
    Copy the full SHA
    cf98e72 View commit details

Commits on Mar 25, 2020

  1. Copy the full SHA
    fc30597 View commit details

Commits on Mar 26, 2020

  1. Copy the full SHA
    6c57ff7 View commit details
  2. 0.28.1

    sindresorhus committed Mar 26, 2020
    Copy the full SHA
    2e39794 View commit details

Commits on Apr 2, 2020

  1. Copy the full SHA
    28902f0 View commit details
  2. Copy the full SHA
    41b1bd7 View commit details
  3. 0.28.2

    sindresorhus committed Apr 2, 2020
    Copy the full SHA
    5da0bbc View commit details

Commits on Apr 3, 2020

  1. Copy the full SHA
    a4625a7 View commit details

Commits on Apr 5, 2020

  1. Copy the full SHA
    c47a0c6 View commit details
  2. 0.28.3

    sindresorhus committed Apr 5, 2020
    Copy the full SHA
    ec87ef3 View commit details

Commits on Apr 8, 2020

  1. Copy the full SHA
    f20f6d2 View commit details
  2. Copy the full SHA
    e05efc3 View commit details
  3. Update dependencies

    sindresorhus committed Apr 8, 2020
    Copy the full SHA
    f59ec7b View commit details
  4. 0.29.0

    sindresorhus committed Apr 8, 2020
    Copy the full SHA
    87e3615 View commit details

Commits on Apr 12, 2020

  1. Copy the full SHA
    967927d View commit details
  2. Copy the full SHA
    4783f26 View commit details
  3. 0.29.1

    sindresorhus committed Apr 12, 2020
    Copy the full SHA
    a592d3d View commit details

Commits on Apr 21, 2020

  1. Copy the full SHA
    07e2762 View commit details

Commits on Apr 25, 2020

  1. Upgrade dependencies

    sindresorhus committed Apr 25, 2020
    Copy the full SHA
    ca31f1c View commit details
Showing with 3,406 additions and 1,624 deletions.
  1. +26 −0 .github/workflows/main.yml
  2. +4 −0 .gitignore
  3. +0 −10 .travis.yml
  4. +0 −189 cli-main.js
  5. +220 −11 cli.js
  6. 0 config/{overrides.js → overrides.cjs}
  7. +368 −0 config/plugins.cjs
  8. +0 −253 config/plugins.js
  9. +108 −107 index.js
  10. +145 −0 lib/constants.js
  11. +5 −4 lib/open-report.js
  12. +578 −267 lib/options-manager.js
  13. +86 −0 lib/report.js
  14. +1 −1 license
  15. +80 −53 package.json
  16. +166 −105 readme.md
  17. +0 −170 test/cli-main.js
  18. +195 −8 test/cli.js
  19. +3 −0 test/fixtures/config-files/extends-relative/.xo-config.json
  20. +5 −0 test/fixtures/config-files/extends-relative/file.js
  21. +3 −0 test/fixtures/config-files/xo-config/.xo-config
  22. +5 −0 test/fixtures/config-files/xo-config/file.js
  23. +3 −0 test/fixtures/config-files/xo-config_cjs/.xo-config.cjs
  24. +5 −0 test/fixtures/config-files/xo-config_cjs/file.js
  25. +3 −0 test/fixtures/config-files/xo-config_js/.xo-config.js
  26. +5 −0 test/fixtures/config-files/xo-config_js/file.js
  27. +3 −0 test/fixtures/config-files/xo-config_json/.xo-config.json
  28. +5 −0 test/fixtures/config-files/xo-config_json/file.js
  29. +5 −0 test/fixtures/config-files/xo_config_cjs/file.js
  30. +3 −0 test/fixtures/config-files/xo_config_cjs/xo.config.cjs
  31. +5 −0 test/fixtures/config-files/xo_config_js/file.js
  32. +3 −0 test/fixtures/config-files/xo_config_js/xo.config.js
  33. +3 −0 test/fixtures/custom-extension/one-space.unknown
  34. +1 −0 test/fixtures/custom-extension/readme.md
  35. +1 −1 test/fixtures/gitignore/test/bar.js
  36. 0 test/fixtures/ignores/{test/fixtures → dist}/linter-error.js
  37. +11 −7 test/fixtures/ignores/package.json
  38. +0 −5 test/fixtures/ignores/test/foo.js
  39. +3 −0 test/fixtures/nested-configs/child-override/.prettierrc
  40. +10 −0 test/fixtures/nested-configs/child-override/child-prettier-override/package.json
  41. +1 −0 test/fixtures/nested-configs/child-override/child-prettier-override/semicolon.js
  42. +10 −0 test/fixtures/nested-configs/child-override/package.json
  43. +3 −0 test/fixtures/nested-configs/child-override/two-spaces.js
  44. +5 −0 test/fixtures/nested-configs/child/package.json
  45. +1 −0 test/fixtures/nested-configs/child/semicolon.js
  46. +1 −0 test/fixtures/nested-configs/no-semicolon.js
  47. +5 −0 test/fixtures/nested-configs/package.json
  48. +1 −0 test/fixtures/nested-ignores/a.js
  49. +1 −0 test/fixtures/nested-ignores/b.js
  50. +1 −0 test/fixtures/nested-ignores/child/a.js
  51. +1 −0 test/fixtures/nested-ignores/child/b.js
  52. +8 −0 test/fixtures/nested-ignores/child/package.json
  53. +8 −0 test/fixtures/nested-ignores/package.json
  54. +1 −1 test/fixtures/nested/child-empty/package.json
  55. +1 −3 test/fixtures/nested/child-ignore/package.json
  56. +3 −3 test/fixtures/nested/child/package.json
  57. +2 −2 test/fixtures/nested/file.js
  58. +3 −3 test/fixtures/nested/package.json
  59. +20 −19 test/fixtures/overrides/package.json
  60. +1 −1 test/fixtures/overrides/test/bar.js
  61. +1 −1 test/fixtures/overrides/test/foo.js
  62. +3 −0 test/fixtures/package.json
  63. +1 −1 test/fixtures/prettier/package.json
  64. +2 −2 test/fixtures/project/node_modules/eslint-config-custom/package.json
  65. +3 −3 test/fixtures/project/package.json
  66. +1 −1 test/fixtures/space/one-space.js
  67. +1 −1 test/fixtures/space/two-spaces.js
  68. +1 −0 test/fixtures/typescript/child/extra-semicolon.ts
  69. +1 −0 test/fixtures/typescript/child/no-semicolon.ts
  70. +5 −0 test/fixtures/typescript/child/package.json
  71. +3 −0 test/fixtures/typescript/child/sub-child/four-spaces.ts
  72. +5 −0 test/fixtures/typescript/child/sub-child/package.json
  73. +6 −0 test/fixtures/typescript/child/tsconfig.json
  74. +4 −0 test/fixtures/typescript/deep-extends/config/tsconfig.json
  75. +3 −0 test/fixtures/typescript/deep-extends/package.json
  76. +3 −0 test/fixtures/typescript/excludes/package.json
  77. +3 −0 test/fixtures/typescript/excludes/tsconfig.json
  78. +3 −0 test/fixtures/typescript/extends-config/package.json
  79. +3 −0 test/fixtures/typescript/extends-config/tsconfig.json
  80. +26 −0 test/fixtures/typescript/extends-module/node_modules/@sindresorhus/tsconfig/package.json
  81. +35 −0 test/fixtures/typescript/extends-module/node_modules/@sindresorhus/tsconfig/tsconfig.json
  82. +3 −0 test/fixtures/typescript/extends-module/package.json
  83. +3 −0 test/fixtures/typescript/extends-module/tsconfig.json
  84. +1 −0 test/fixtures/typescript/extends-tsconfig-bases/node_modules/@tsconfig/node16/package.json
  85. +16 −0 test/fixtures/typescript/extends-tsconfig-bases/node_modules/@tsconfig/node16/tsconfig.json
  86. +3 −0 test/fixtures/typescript/extends-tsconfig-bases/package.json
  87. +3 −0 test/fixtures/typescript/extends-tsconfig-bases/tsconfig.json
  88. +5 −0 test/fixtures/typescript/package.json
  89. +7 −0 test/fixtures/typescript/parseroptions-project/package.json
  90. +3 −0 test/fixtures/typescript/parseroptions-project/projectconfig.json
  91. +4 −0 test/fixtures/typescript/parseroptions-project/tsconfig.json
  92. +4 −0 test/fixtures/typescript/relative-configs/config/tsconfig.json
  93. +7 −0 test/fixtures/typescript/relative-configs/package.json
  94. +3 −0 test/fixtures/typescript/two-spaces.tsx
  95. +2 −0 test/fixtures/webpack/no-config/file1.js
  96. +2 −0 test/fixtures/webpack/no-config/file2.js
  97. +1 −0 test/fixtures/webpack/no-config/file3.js
  98. +2 −0 test/fixtures/webpack/with-config/file1.js
  99. +2 −0 test/fixtures/webpack/with-config/file2.js
  100. +9 −0 test/fixtures/webpack/with-config/webpack.config.js
  101. +40 −0 test/ignores.js
  102. +234 −30 test/lint-files.js
  103. +240 −120 test/lint-text.js
  104. +30 −26 test/open-report.js
  105. +471 −216 test/options-manager.js
  106. +24 −0 test/options.js
  107. +29 −0 test/print-config.js
  108. +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.

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

This file was deleted.

Loading