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: ota-meshi/eslint-plugin-yml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.10.0
Choose a base ref
...
head repository: ota-meshi/eslint-plugin-yml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.11.0
Choose a head ref

Commits on Oct 8, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0aafa71 View commit details
  2. Update package.json

    ota-meshi authored Oct 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1aa880e View commit details

Commits on Oct 25, 2023

  1. chore: fix playground

    ota-meshi committed Oct 25, 2023
    Copy the full SHA
    8f55473 View commit details
  2. chore(deps): update actions/setup-node action to v4 (#275)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 25, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c05bb42 View commit details
  3. chore(deps): update dependency eslint-plugin-regexp to v2 (#274)

    * chore(deps): update dependency eslint-plugin-regexp to v2
    
    * fix
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
    renovate[bot] and ota-meshi authored Oct 25, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8b15418 View commit details
  4. chore(deps): update dependency @types/node to v20 (#276)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 25, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4e2e03f View commit details

Commits on Nov 28, 2023

  1. chore(deps): update dependency @changesets/changelog-github to ^0.5.0 (

    …#279)
    
    * chore(deps): update dependency @changesets/changelog-github to ^0.5.0
    
    * format
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
    renovate[bot] and ota-meshi authored Nov 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ff85235 View commit details
  2. chore: fix site

    ota-meshi committed Nov 28, 2023
    Copy the full SHA
    6091ffd View commit details
  3. Copy the full SHA
    b99de08 View commit details

Commits on Dec 4, 2023

  1. chore(deps): update actions/deploy-pages action to v3 (#282)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 4, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b179a1e View commit details

Commits on Dec 5, 2023

  1. chore(deps): update actions/configure-pages action to v4 (#281)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    822da3f View commit details

Commits on Dec 7, 2023

  1. chore(deps): update actions/stale action to v9 (#283)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    62cb178 View commit details
  2. Copy the full SHA
    f74f52c View commit details

Commits on Dec 11, 2023

  1. chore: add format workflow

    ota-meshi committed Dec 11, 2023
    Copy the full SHA
    635a37a View commit details
  2. Update NodeCI.yml

    ota-meshi authored Dec 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3118d56 View commit details
  3. chore(deps): update dependency stylelint to v16 (#285)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b0f34c0 View commit details
  4. chore(deps): update dependency stylelint-config-standard to v35 (#286)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    26265df View commit details
  5. chore: update workflow

    ota-meshi committed Dec 11, 2023
    Copy the full SHA
    51359c6 View commit details

Commits on Dec 12, 2023

  1. chore(deps): update dependency stylelint-stylus to v1 (#287)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f4aedf1 View commit details

Commits on Dec 14, 2023

  1. Improve compatibility with ESLint v9 (#288)

    * Improve compatibility with ESLint v9
    
    * Create eleven-beds-worry.md
    ota-meshi authored Dec 14, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d852113 View commit details
  2. chore: release eslint-plugin-yml (#289)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Dec 14, 2023
    Copy the full SHA
    3754d80 View commit details
Showing with 1,750 additions and 384 deletions.
  1. +0 −14 .devcontainer/Dockerfile
  2. +0 −17 .devcontainer/base.Dockerfile
  3. +20 −28 .devcontainer/devcontainer.json
  4. +1 −0 .eslintignore
  5. +4 −0 .eslintrc.js
  6. +4 −6 .github/workflows/GHPages.yml
  7. +10 −19 .github/workflows/NodeCI.yml
  8. +2 −7 .github/workflows/Release.yml
  9. +31 −0 .github/workflows/format.yml
  10. +1 −1 .github/workflows/stale.yml
  11. +2 −2 .vscode/settings.json
  12. +6 −0 CHANGELOG.md
  13. +0 −5 docs/.vitepress/config.mts
  14. +18 −6 docs/.vitepress/theme/components/playground-block.vue
  15. +6 −6 docs/.vitepress/theme/components/rules/index.js
  16. +12 −12 package.json
  17. +1 −1 src/meta.ts
  18. +256 −31 src/rules/flow-mapping-curly-spacing.ts
  19. +226 −31 src/rules/flow-sequence-bracket-spacing.ts
  20. +1 −1 src/rules/sort-keys.ts
  21. +1 −1 src/rules/sort-sequence-values.ts
  22. +44 −0 src/utils/ast-utils.ts
  23. +1 −95 src/utils/index.ts
  24. +2 −2 src/utils/yaml.ts
  25. +12 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/54T7-errors.json
  26. +1 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/54T7-input.yaml
  27. +2 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/54T7-output.yml
  28. +12 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/5C5M-errors.json
  29. +2 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/5C5M-input.yaml
  30. +3 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/5C5M-output.yml
  31. +12 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/C4HZ-errors.json
  32. +14 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/C4HZ-input.yaml
  33. +15 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/C4HZ-output.yml
  34. +12 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/KZN9-errors.json
  35. +3 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/KZN9-input.yaml
  36. +4 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/KZN9-output.yml
  37. +12 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/MXS3-errors.json
  38. +1 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/MXS3-input.yaml
  39. +2 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/MXS3-output.yml
  40. +12 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/SBG9-errors.json
  41. +1 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/SBG9-input.yaml
  42. +2 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/SBG9-output.yml
  43. +7 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/X38W-errors.json
  44. +1 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/X38W-input.yaml
  45. +2 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/X38W-output.yml
  46. +12 −0 ...flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/ZF4X-errors.json
  47. +5 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/ZF4X-input.yaml
  48. +6 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/ZF4X-output.yml
  49. +14 −0 ...les/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-always-with-object-option/_config.json
  50. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/5C5M-errors.json
  51. +2 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/5C5M-input.yaml
  52. +3 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/5C5M-output.yml
  53. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/C4HZ-errors.json
  54. +14 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/C4HZ-input.yaml
  55. +15 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/C4HZ-output.yml
  56. +22 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/CN3R-errors.json
  57. +6 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/CN3R-input.yaml
  58. +7 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/CN3R-output.yml
  59. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/F3CP-errors.json
  60. +2 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/F3CP-input.yaml
  61. +3 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/F3CP-output.yml
  62. +7 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/LP6E-errors.json
  63. +6 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/LP6E-input.yaml
  64. +7 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/LP6E-output.yml
  65. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q88A-errors.json
  66. +5 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q88A-input.yaml
  67. +6 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q88A-output.yml
  68. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q9WF-errors.json
  69. +6 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q9WF-input.yaml
  70. +7 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q9WF-output.yml
  71. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDM2-errors.json
  72. +1 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDM2-input.yaml
  73. +2 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDM2-output.yml
  74. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDR7-errors.json
  75. +2 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDR7-input.yaml
  76. +3 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDR7-output.yml
  77. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UT92-errors.json
  78. +7 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UT92-input.yaml
  79. +8 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/UT92-output.yml
  80. +12 −0 .../flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/X38W-errors.json
  81. +1 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/X38W-input.yaml
  82. +2 −0 ...s/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/X38W-output.yml
  83. +14 −0 ...ules/flow-mapping-curly-spacing/invalid/yaml-test-suite-for-never-with-object-option/_config.json
  84. +12 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/5KJE-errors.json
  85. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/5KJE-input.yaml
  86. +3 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/5KJE-output.yml
  87. +7 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/7TMG-errors.json
  88. +4 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/7TMG-input.yaml
  89. +5 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/7TMG-output.yml
  90. +12 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/D88J-errors.json
  91. +1 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/D88J-input.yaml
  92. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/D88J-output.yml
  93. +12 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/DHP8-errors.json
  94. +1 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/DHP8-input.yaml
  95. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/DHP8-output.yml
  96. +7 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/EHF6-errors.json
  97. +4 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/EHF6-input.yaml
  98. +5 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/EHF6-output.yml
  99. +17 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/F3CP-errors.json
  100. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/F3CP-input.yaml
  101. +3 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/F3CP-output.yml
  102. +22 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/FUP4-errors.json
  103. +1 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/FUP4-input.yaml
  104. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/FUP4-output.yml
  105. +7 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/LP6E-errors.json
  106. +6 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/LP6E-input.yaml
  107. +7 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/LP6E-output.yml
  108. +12 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/LX3P-errors.json
  109. +1 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/LX3P-input.yaml
  110. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/LX3P-output.yml
  111. +12 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/M7NX-errors.json
  112. +8 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/M7NX-input.yaml
  113. +9 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/M7NX-output.yml
  114. +22 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/SBG9-errors.json
  115. +1 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/SBG9-input.yaml
  116. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/SBG9-output.yml
  117. +22 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/X38W-errors.json
  118. +1 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/X38W-input.yaml
  119. +2 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/X38W-output.yml
  120. +27 −0 ...w-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/YD5X-errors.json
  121. +3 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/YD5X-input.yaml
  122. +4 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/YD5X-output.yml
  123. +15 −0 .../flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-always-with-object-option/_config.json
  124. +7 −0 ...fixtures/rules/flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-default/6HB6-errors.json
  125. +12 −0 .../fixtures/rules/flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-default/6HB6-input.yaml
  126. +12 −0 .../fixtures/rules/flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-default/6HB6-output.yml
  127. +12 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/5KJE-errors.json
  128. +2 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/5KJE-input.yaml
  129. +3 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/5KJE-output.yml
  130. +12 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/6BFJ-errors.json
  131. +3 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/6BFJ-input.yaml
  132. +4 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/6BFJ-output.yml
  133. +7 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/6HB6-errors.json
  134. +12 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/6HB6-input.yaml
  135. +12 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/6HB6-output.yml
  136. +7 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/7TMG-errors.json
  137. +4 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/7TMG-input.yaml
  138. +5 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/7TMG-output.yml
  139. +12 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/DBG4-errors.json
  140. +12 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/DBG4-input.yaml
  141. +13 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/DBG4-output.yml
  142. +7 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/EHF6-errors.json
  143. +4 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/EHF6-input.yaml
  144. +5 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/EHF6-output.yml
  145. +7 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/FUP4-errors.json
  146. +1 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/FUP4-input.yaml
  147. +2 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/FUP4-output.yml
  148. +12 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/LP6E-errors.json
  149. +6 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/LP6E-input.yaml
  150. +7 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/LP6E-output.yml
  151. +12 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/LX3P-errors.json
  152. +1 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/LX3P-input.yaml
  153. +2 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/LX3P-output.yml
  154. +22 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/M5DY-errors.json
  155. +9 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/M5DY-input.yaml
  156. +10 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/M5DY-output.yml
  157. +12 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q88A-errors.json
  158. +5 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q88A-input.yaml
  159. +6 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/Q88A-output.yml
  160. +12 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDR7-errors.json
  161. +2 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDR7-input.yaml
  162. +3 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/UDR7-output.yml
  163. +7 −0 ...ow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/YD5X-errors.json
  164. +3 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/YD5X-input.yaml
  165. +4 −0 ...low-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/YD5X-output.yml
  166. +15 −0 ...s/flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never-with-object-option/_config.json
  167. +7 −0 ...s/fixtures/rules/flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never/6HB6-errors.json
  168. +12 −0 tests/fixtures/rules/flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never/6HB6-input.yaml
  169. +12 −0 tests/fixtures/rules/flow-sequence-bracket-spacing/invalid/yaml-test-suite-for-never/6HB6-output.yml
  170. +0 −98 tests/src/eslint-compat.ts
  171. +3 −1 tests/src/eslint-plugin.ts
  172. +16 −0 tools/update-fixtures.ts
14 changes: 0 additions & 14 deletions .devcontainer/Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions .devcontainer/base.Dockerfile

This file was deleted.

48 changes: 20 additions & 28 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/typescript-node
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "18"
}
},
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint"
]
}
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": ["dbaeumer.vscode-eslint"]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
/lib
!/.github
!/.vscode
!/.devcontainer
!/docs/.vuepress
!/docs/.vitepress
/docs/.vuepress/dist
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -73,6 +73,10 @@ module.exports = {
selector: "method",
format: null,
},
{
selector: "import",
format: ["camelCase", "PascalCase", "UPPER_CASE"],
},
],
"@typescript-eslint/no-non-null-assertion": "off",
},
10 changes: 4 additions & 6 deletions .github/workflows/GHPages.yml
Original file line number Diff line number Diff line change
@@ -25,21 +25,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/setup-node@v4
- name: Install Packages
run: npm install
run: npm install -f
- name: Build docs
run: npm run docs:build
- name: Update docs
run: npm run update
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs/.vitepress/dist/eslint-plugin-yml
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v3
29 changes: 10 additions & 19 deletions .github/workflows/NodeCI.yml
Original file line number Diff line number Diff line change
@@ -11,11 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/setup-node@v4
- name: Install Packages
run: npm install
run: npm install -f
- name: Lint
run: npm run lint
- name: Build
@@ -24,24 +22,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 17.x]
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
run: npm install -f
- name: Test
run: npm test
test-with-eslint6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/setup-node@v4
- name: Install Target Packages
run: |+
npm i -D eslint@6 --legacy-peer-deps
@@ -51,15 +47,10 @@ jobs:
run: npm test
test-with-eslint7:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install Target Packages
run: |+
npm i -D eslint@7 --legacy-peer-deps
@@ -71,9 +62,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
- name: Install Packages
run: npm install
run: npm install -f
- name: Test
run: |
npm run cover
9 changes: 2 additions & 7 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -15,15 +15,10 @@ jobs:
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16

uses: actions/setup-node@v4
- name: Install Dependencies
run: npm install

run: npm install -f
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
31 changes: 31 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 👔 Format

on:
workflow_dispatch: null

jobs:
format:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
- name: Install deps
run: npm install -f
- name: Format
run: npm run eslint-fix
- name: Commit
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
if [ -z "$(git status --porcelain)" ]; then
echo "no formatting changed"
exit 0
fi
git commit -m "chore: format"
git push
echo "pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:
name: Close stale issues with missing information
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
any-of-labels: "needs repro,needs info,needs more info"
days-before-stale: 60
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -17,8 +17,8 @@
"css.validate": false,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"stylelint.validate": [
"css",
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# eslint-plugin-yml

## 1.11.0

### Minor Changes

- [#288](https://github.com/ota-meshi/eslint-plugin-yml/pull/288) [`d852113`](https://github.com/ota-meshi/eslint-plugin-yml/commit/d8521132623858ebfbef6bee79cda8c6333948db) Thanks [@ota-meshi](https://github.com/ota-meshi)! - Improve compatibility with ESLint v9

## 1.10.0

### Minor Changes
5 changes: 0 additions & 5 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { DefaultTheme, UserConfig } from "vitepress";
import { defineConfig } from "vitepress";
import { BUNDLED_LANGUAGES } from "shiki";
import path from "path";
import { fileURLToPath } from "url";
import eslint4b from "vite-plugin-eslint4b";
@@ -10,10 +9,6 @@ import { viteCommonjs } from "./vite-plugin.mjs";
import "./build-system/build.js";
const dirname = path.dirname(fileURLToPath(import.meta.url));

// Include `json5` as alias for jsonc
const jsonc = BUNDLED_LANGUAGES.find((lang) => lang.id === "jsonc");
if (jsonc) jsonc.aliases = [...(jsonc?.aliases ?? []), "json5"];

function ruleToSidebarItem({
meta: {
docs: { ruleId, ruleName },
24 changes: 18 additions & 6 deletions docs/.vitepress/theme/components/playground-block.vue
Original file line number Diff line number Diff line change
@@ -83,21 +83,31 @@ export default {
serializedString(serializedString) {
if (
typeof window !== "undefined" &&
serializedString !== window.location.hash.slice(1)
serializedString !== window.location.hash.slice(1) &&
!this._initializing
) {
window.location.replace(`#${serializedString}`);
}
},
},
mounted() {
this.onUrlHashChange();
if (typeof window !== "undefined") {
window.addEventListener("hashchange", this.onUrlHashChange);
window.addEventListener("hashchange", this.processUrlHashChange);
}
const serializedString =
(typeof window !== "undefined" && window.location.hash.slice(1)) || "";
if (serializedString) {
this._initializing = true;
this.rules = {};
this.$nextTick().then(() => {
this._initializing = false;
this.processUrlHashChange();
});
}
},
beforeDestroey() {
beforeUnmount() {
if (typeof window !== "undefined") {
window.removeEventListener("hashchange", this.onUrlHashChange);
window.removeEventListener("hashchange", this.processUrlHashChange);
}
},
methods: {
@@ -107,14 +117,16 @@ export default {
getRule(ruleId) {
return getRule(ruleId);
},
onUrlHashChange() {
processUrlHashChange() {
const serializedString =
(typeof window !== "undefined" && window.location.hash.slice(1)) || "";
if (serializedString !== this.serializedString) {
const state = deserializeState(serializedString);
this.code = state.code || DEFAULT_CODE;
this.rules = state.rules || Object.assign({}, DEFAULT_RULES_CONFIG);
return true;
}
return false;
},
},
};
12 changes: 6 additions & 6 deletions docs/.vitepress/theme/components/rules/index.js
Original file line number Diff line number Diff line change
@@ -76,12 +76,12 @@ categories.sort((a, b) =>
a.categoryOrder > b.categoryOrder
? 1
: a.categoryOrder < b.categoryOrder
? -1
: a.title > b.title
? 1
: a.title < b.title
? -1
: 0,
? -1
: a.title > b.title
? 1
: a.title < b.title
? -1
: 0,
);

export const DEFAULT_RULES_CONFIG = allRules.reduce((c, r) => {
Loading