Skip to content

Commit

Permalink
chore: use changesets (#198)
Browse files Browse the repository at this point in the history
* chore: use changesets

* fix

* fix
  • Loading branch information
ota-meshi authored Oct 24, 2022
1 parent cea0a77 commit 5b79da2
Show file tree
Hide file tree
Showing 52 changed files with 225 additions and 64 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](/~https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](/~https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
16 changes: 16 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/config/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "ota-meshi/eslint-plugin-jsonc"
}
],
"commit": false,
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"bumpVersionsWithWorkspaceProtocolOnly": true,
"ignore": []
}
3 changes: 3 additions & 0 deletions .env-cmdrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"version": {
"IN_VERSION_SCRIPT": "true"
},
"version-ci": {
"IN_VERSION_CI_SCRIPT": "true"
}
}
28 changes: 0 additions & 28 deletions .github/workflows/NpmPublish.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
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

- name: Install Dependencies
run: npm install

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
version: npm run version:ci
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
commit: "chore: release eslint-plugin-jsonc"
title: "chore: release eslint-plugin-jsonc"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions docs/rules/array-bracket-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/array-bracket-newline"
description: "enforce line breaks after opening and before closing array brackets"
since: "v0.1.0"
---

# jsonc/array-bracket-newline

> enforce line breaks after opening and before closing array brackets
Expand Down
1 change: 1 addition & 0 deletions docs/rules/array-bracket-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/array-bracket-spacing"
description: "disallow or enforce spaces inside of brackets"
since: "v0.1.0"
---

# jsonc/array-bracket-spacing

> disallow or enforce spaces inside of brackets
Expand Down
1 change: 1 addition & 0 deletions docs/rules/array-element-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/array-element-newline"
description: "enforce line breaks between array elements"
since: "v0.1.0"
---

# jsonc/array-element-newline

> enforce line breaks between array elements
Expand Down
1 change: 1 addition & 0 deletions docs/rules/auto.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/auto"
description: "apply jsonc rules similar to your configured ESLint core rules"
since: "v0.8.0"
---

# jsonc/auto

> apply jsonc rules similar to your configured ESLint core rules
Expand Down
1 change: 1 addition & 0 deletions docs/rules/comma-dangle.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/comma-dangle"
description: "require or disallow trailing commas"
since: "v0.1.0"
---

# jsonc/comma-dangle

> require or disallow trailing commas
Expand Down
1 change: 1 addition & 0 deletions docs/rules/comma-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/comma-style"
description: "enforce consistent comma style"
since: "v0.1.0"
---

# jsonc/comma-style

> enforce consistent comma style
Expand Down
1 change: 1 addition & 0 deletions docs/rules/indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/indent"
description: "enforce consistent indentation"
since: "v0.1.0"
---

# jsonc/indent

> enforce consistent indentation
Expand Down
1 change: 1 addition & 0 deletions docs/rules/key-name-casing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/key-name-casing"
description: "enforce naming convention to property key names"
since: "v0.8.0"
---

# jsonc/key-name-casing

> enforce naming convention to property key names
Expand Down
1 change: 1 addition & 0 deletions docs/rules/key-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/key-spacing"
description: "enforce consistent spacing between keys and values in object literal properties"
since: "v0.1.0"
---

# jsonc/key-spacing

> enforce consistent spacing between keys and values in object literal properties
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-bigint-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-bigint-literals"
description: "disallow BigInt literals"
since: "v0.2.0"
---

# jsonc/no-bigint-literals

> disallow BigInt literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-binary-expression.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-binary-expression"
description: "disallow binary expression"
since: "v2.0.0"
---

# jsonc/no-binary-expression

> disallow binary expression
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-binary-numeric-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-binary-numeric-literals"
description: "disallow binary numeric literals"
since: "v1.1.0"
---

# jsonc/no-binary-numeric-literals

> disallow binary numeric literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-comments"
description: "disallow comments"
since: "v0.1.0"
---

# jsonc/no-comments

> disallow comments
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-dupe-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-dupe-keys"
description: "disallow duplicate keys in object literals"
since: "v0.1.0"
---

# jsonc/no-dupe-keys

> disallow duplicate keys in object literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-escape-sequence-in-identifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-escape-sequence-in-identifier"
description: "disallow escape sequences in identifiers."
since: "v1.1.0"
---

# jsonc/no-escape-sequence-in-identifier

> disallow escape sequences in identifiers.
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-floating-decimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-floating-decimal"
description: "disallow leading or trailing decimal points in numeric literals"
since: "v0.9.0"
---

# jsonc/no-floating-decimal

> disallow leading or trailing decimal points in numeric literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-hexadecimal-numeric-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-hexadecimal-numeric-literals"
description: "disallow hexadecimal numeric literals"
since: "v1.1.0"
---

# jsonc/no-hexadecimal-numeric-literals

> disallow hexadecimal numeric literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-infinity.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-infinity"
description: "disallow Infinity"
since: "v1.1.0"
---

# jsonc/no-infinity

> disallow Infinity
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-multi-str.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-multi-str"
description: "disallow multiline strings"
since: "v0.1.0"
---

# jsonc/no-multi-str

> disallow multiline strings
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-nan.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-nan"
description: "disallow NaN"
since: "v1.1.0"
---

# jsonc/no-nan

> disallow NaN
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-number-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-number-props"
description: "disallow number property keys"
since: "v0.2.0"
---

# jsonc/no-number-props

> disallow number property keys
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-numeric-separators.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-numeric-separators"
description: "disallow numeric separators"
since: "v0.6.0"
---

# jsonc/no-numeric-separators

> disallow numeric separators
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-octal-escape.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-octal-escape"
description: "disallow octal escape sequences in string literals"
since: "v0.1.0"
---

# jsonc/no-octal-escape

> disallow octal escape sequences in string literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-octal-numeric-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-octal-numeric-literals"
description: "disallow octal numeric literals"
since: "v1.1.0"
---

# jsonc/no-octal-numeric-literals

> disallow octal numeric literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-octal.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-octal"
description: "disallow legacy octal literals"
since: "v1.1.0"
---

# jsonc/no-octal

> disallow legacy octal literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-parenthesized.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-parenthesized"
description: "disallow parentheses around the expression"
since: "v2.0.0"
---

# jsonc/no-parenthesized

> disallow parentheses around the expression
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-plus-sign.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-plus-sign"
description: "disallow plus sign"
since: "v1.1.0"
---

# jsonc/no-plus-sign

> disallow plus sign
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-regexp-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-regexp-literals"
description: "disallow RegExp literals"
since: "v0.2.0"
---

# jsonc/no-regexp-literals

> disallow RegExp literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-sparse-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-sparse-arrays"
description: "disallow sparse arrays"
since: "v0.2.0"
---

# jsonc/no-sparse-arrays

> disallow sparse arrays
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-template-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-template-literals"
description: "disallow template literals"
since: "v0.2.0"
---

# jsonc/no-template-literals

> disallow template literals
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-undefined-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-undefined-value"
description: "disallow `undefined`"
since: "v0.2.0"
---

# jsonc/no-undefined-value

> disallow `undefined`
Expand Down
1 change: 1 addition & 0 deletions docs/rules/no-unicode-codepoint-escapes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/no-unicode-codepoint-escapes"
description: "disallow Unicode code point escape sequences."
since: "v1.1.0"
---

# jsonc/no-unicode-codepoint-escapes

> disallow Unicode code point escape sequences.
Expand Down
2 changes: 2 additions & 0 deletions docs/rules/no-useless-escape.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ title: "jsonc/no-useless-escape"
description: "disallow unnecessary escape usage"
since: "v0.1.0"
---

# jsonc/no-useless-escape

> disallow unnecessary escape usage
- :gear: This rule is included in all of `"plugin:jsonc/recommended-with-json"`, `"plugin:jsonc/recommended-with-json5"` and `"plugin:jsonc/recommended-with-jsonc"`.
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).

## :book: Rule Details

Expand Down
1 change: 1 addition & 0 deletions docs/rules/object-curly-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/object-curly-newline"
description: "enforce consistent line breaks inside braces"
since: "v0.1.0"
---

# jsonc/object-curly-newline

> enforce consistent line breaks inside braces
Expand Down
1 change: 1 addition & 0 deletions docs/rules/object-curly-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/object-curly-spacing"
description: "enforce consistent spacing inside braces"
since: "v0.1.0"
---

# jsonc/object-curly-spacing

> enforce consistent spacing inside braces
Expand Down
1 change: 1 addition & 0 deletions docs/rules/object-property-newline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: "jsonc/object-property-newline"
description: "enforce placing object properties on separate lines"
since: "v0.1.0"
---

# jsonc/object-property-newline

> enforce placing object properties on separate lines
Expand Down
Loading

0 comments on commit 5b79da2

Please sign in to comment.