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-regexp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.5.0
Choose a base ref
...
head repository: ota-meshi/eslint-plugin-regexp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.6.0
Choose a head ref
  • 13 commits
  • 12 files changed
  • 5 contributors

Commits on Apr 8, 2024

  1. chore(deps): update dependency eslint-plugin-regexp to ~2.5.0

    renovate[bot] committed Apr 8, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    pellared Robert Pająk
    Copy the full SHA
    3e894a3 View commit details
  2. chore(deps): update dependency vite-plugin-eslint4b to ^0.3.0

    renovate[bot] committed Apr 8, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    pellared Robert Pająk
    Copy the full SHA
    687eea6 View commit details
  3. chore(deps): update dependency eslint-plugin-n to v17

    renovate[bot] committed Apr 8, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    pellared Robert Pająk
    Copy the full SHA
    6554074 View commit details

Commits on Apr 10, 2024

  1. chore(deps): update dependency eslint-plugin-eslint-plugin to v6

    renovate[bot] committed Apr 10, 2024
    Copy the full SHA
    8c23a79 View commit details

Commits on Apr 12, 2024

  1. chore: add script to auto update unicode-alias (#730)

    ota-meshi authored Apr 12, 2024
    Copy the full SHA
    035f6bf View commit details

Commits on Apr 13, 2024

  1. Automate pull-requests for resource updates (#732)

    ota-meshi authored Apr 13, 2024
    Copy the full SHA
    4b0fa15 View commit details
  2. chore(deps): update dependency vite-plugin-eslint4b to ^0.4.0

    renovate[bot] committed Apr 13, 2024
    Copy the full SHA
    6739893 View commit details

Commits on Apr 19, 2024

  1. chore(deps): update dependency @ota-meshi/site-kit-eslint-editor-vue …

    …to ^0.2.0 (#734)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Apr 19, 2024
    Copy the full SHA
    26098c4 View commit details

Commits on Apr 23, 2024

  1. chore: fix demo site

    ota-meshi committed Apr 23, 2024
    Copy the full SHA
    3527886 View commit details

Commits on Apr 30, 2024

  1. chore(deps): update dependency markdownlint-cli to ^0.40.0

    renovate[bot] committed Apr 30, 2024
    Copy the full SHA
    7cb329d View commit details

Commits on May 21, 2024

  1. Generate string literal types for configs (#740)

    * Generate string literal types for configs
    
    * Add and share SeverityString type
    
    * Create grumpy-waves-warn.md
    
    ---------
    
    Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
    karlhorky and ota-meshi authored May 21, 2024
    Copy the full SHA
    9f1bd50 View commit details
  2. chore(deps): update mcr.microsoft.com/devcontainers/typescript-node d…

    …ocker tag to v1 (#739)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored May 21, 2024
    Copy the full SHA
    a52db89 View commit details
  3. chore: release eslint-plugin-regexp (#741)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored May 21, 2024
    Copy the full SHA
    592cb53 View commit details
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
{
"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:0-18",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
31 changes: 31 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: cron
on:
workflow_dispatch: null
schedule:
- cron: 0 0 * * 0

permissions:
contents: write
pull-requests: write

jobs:
update-unicode-alias:
name: update-unicode-alias
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
- name: Install Packages
run: npm install
- name: Update
run: npm run update:unicode-alias
- name: Format
run: npm run eslint-fix
- uses: peter-evans/create-pull-request@v6
with:
commit-message: Updates unicode property alias resource with latest
branch: update-unicode-alias
branch-suffix: timestamp
title: Updates unicode property alias resource with latest
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# eslint-plugin-regexp

## 2.6.0

### Minor Changes

- Improved compatibility of type information with typescript-eslint in config. ([#740](https://github.com/ota-meshi/eslint-plugin-regexp/pull/740))

## 2.5.0

### Minor Changes
4 changes: 3 additions & 1 deletion docs/.vitepress/theme/components/playground-block.vue
Original file line number Diff line number Diff line change
@@ -141,7 +141,9 @@ export default {
(typeof window !== "undefined" &&
window.location.hash.slice(1)) ||
""
if (serializedString !== this.serializedString) {
if (!serializedString && this.serializedString) {
history.replaceState(null, "", `#${this.serializedString}`)
} else if (serializedString !== this.serializedString) {
const state = deserializeState(serializedString)
this.code = state.code || DEFAULT_CODE
this.rules =
3 changes: 2 additions & 1 deletion lib/configs/rules/all.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { rules as ruleLint } from "../../all-rules"
import type { SeverityString } from "../../types"
import { rules as recommendedRules } from "./recommended"

const all: Record<string, string> = {}
const all: Record<string, SeverityString> = {}
for (const rule of ruleLint) {
all[rule.meta.docs.ruleId] = "error"
}
4 changes: 3 additions & 1 deletion lib/configs/rules/recommended.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export const rules = {
import type { SeverityString } from "../../types"

export const rules: Record<string, SeverityString> = {
// ESLint core rules
"no-control-regex": "error",
"no-misleading-character-class": "error",
6 changes: 4 additions & 2 deletions lib/types.ts
Original file line number Diff line number Diff line change
@@ -13,6 +13,8 @@ export type RuleCategory =
| "Best Practices"
| "Stylistic Issues"

export type SeverityString = "error" | "warn" | "off"

export interface RuleMetaData {
docs: {
description: string
@@ -21,7 +23,7 @@ export interface RuleMetaData {
url: string
ruleId: string
ruleName: string
default?: "error" | "warn"
default?: Exclude<SeverityString, "off">
}
messages: { [messageId: string]: string }
fixable?: "code" | "whitespace"
@@ -42,7 +44,7 @@ export interface PartialRuleMetaData {
description: string
category: RuleCategory
recommended: boolean
default?: "error" | "warn"
default?: Exclude<SeverityString, "off">
}
messages: { [messageId: string]: string }
fixable?: "code" | "whitespace"
4 changes: 4 additions & 0 deletions lib/utils/unicode-alias.ts
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@ export const UNICODE_CATEGORY_ALIAS = new AliasMap({
otherToLong: {},
})

/* PROPERTY_ALIASES_START */
// https://unicode.org/Public/UCD/latest/ucd/PropertyAliases.txt
export const UNICODE_BINARY_PROPERTY_ALIAS = new AliasMap({
shortToLong: {
@@ -120,7 +121,9 @@ export const UNICODE_BINARY_PROPERTY_ALIAS = new AliasMap({
space: "White_Space",
},
})
/* PROPERTY_ALIASES_END */

/* PROPERTY_VALUE_ALIASES_START */
// https://unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt
export const UNICODE_GENERAL_CATEGORY_ALIAS = new AliasMap({
shortToLong: {
@@ -337,3 +340,4 @@ export const UNICODE_SCRIPT_ALIAS = new AliasMap({
Qaai: "Inherited",
},
})
/* PROPERTY_VALUE_ALIASES_END */
Loading