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: azat-io/eslint-plugin-perfectionist
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.4.2
Choose a base ref
...
head repository: azat-io/eslint-plugin-perfectionist
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.5.0
Choose a head ref
  • 4 commits
  • 7 files changed
  • 1 contributor

Commits on Nov 25, 2023

  1. chore: add gitattributes

    azat-io committed Nov 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
    bb542bc View commit details

Commits on Nov 27, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    azat-io Azat S.
    Copy the full SHA
    ac5b240 View commit details
  2. chore: update dependencies

    azat-io committed Nov 27, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    azat-io Azat S.
    Copy the full SHA
    8d2580b View commit details
  3. build: publish v2.5.0

    azat-io committed Nov 27, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    azat-io Azat S.
    Copy the full SHA
    f894ad7 View commit details
Showing with 359 additions and 289 deletions.
  1. +1 −0 .gitattributes
  2. +12 −0 changelog.md
  3. +9 −0 docs/rules/sort-objects.md
  4. +9 −9 package.json
  5. +268 −268 pnpm-lock.yaml
  6. +38 −12 rules/sort-objects.ts
  7. +22 −0 test/sort-objects.test.ts
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eslint.config.js linguist-vendored
12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Changelog


## v2.5.0

[compare changes](https://github.com/azat-io/eslint-plugin-perfectionist/compare/v2.4.2...v2.5.0)

### 🚀 Features

- Add ignore-pattern option for sort-objects rule ([ac5b240](https://github.com/azat-io/eslint-plugin-perfectionist/commit/ac5b240))

### ❤️ Contributors

- Azat S. ([@azat-io](http://github.com/azat-io))

## v2.4.2

[compare changes](https://github.com/azat-io/eslint-plugin-perfectionist/compare/v2.4.1...v2.4.2)
9 changes: 9 additions & 0 deletions docs/rules/sort-objects.md
Original file line number Diff line number Diff line change
@@ -86,6 +86,7 @@ interface Options {
groups?: (string | string[])[]
'custom-groups'?: { [key: string]: string[] | string }
'styled-components'?: boolean
'ignore-pattern'?: string[]
'partition-by-comment'?: string[] | string | boolean
'partition-by-new-line'?: boolean
}
@@ -140,6 +141,14 @@ Example:

When `false`, this rule will be disabled for the styled-components like libraries.

### ignore-pattern

<sub>(default: `[]`)</sub>

If you need to ignore a rule for some interfaces, you can specify their names or a pattern to ignore, for example: `'Component*'` to ignore all interfaces whose names begin with the word Component.

The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.

### partition-by-comment

<sub>(default: `false`)</sub>
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-perfectionist",
"description": "ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.",
"version": "2.4.2",
"version": "2.5.0",
"homepage": "https://eslint-plugin-perfectionist.azat.io",
"repository": "https://github.com/azat-io/eslint-plugin-perfectionist",
"author": "Azat S. <to@azat.io>",
@@ -75,7 +75,7 @@
"vue-eslint-parser": ">=9.0.0"
},
"dependencies": {
"@typescript-eslint/utils": "^6.12.0",
"@typescript-eslint/utils": "^6.13.0",
"minimatch": "^9.0.3",
"natural-compare-lite": "^1.4.0"
},
@@ -86,10 +86,10 @@
"@commitlint/config-conventional": "^18.4.3",
"@types/natural-compare-lite": "^1.4.2",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"@typescript-eslint/rule-tester": "^6.12.0",
"@typescript-eslint/types": "^6.12.0",
"@typescript-eslint/eslint-plugin": "^6.13.0",
"@typescript-eslint/parser": "^6.13.0",
"@typescript-eslint/rule-tester": "^6.13.0",
"@typescript-eslint/types": "^6.13.0",
"@vitest/coverage-v8": "^0.34.6",
"ajv": "^6.12.6",
"astro-eslint-parser": "^0.16.0",
@@ -101,7 +101,7 @@
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.4.0",
"eslint-plugin-perfectionist": "^2.4.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
@@ -122,8 +122,8 @@
"typescript": "^5.3.2",
"vite": "^5.0.2",
"vite-plugin-lightningcss": "^0.0.5",
"vitepress": "1.0.0-rc.30",
"vitepress": "1.0.0-rc.31",
"vitest": "^0.34.6",
"vue": "^3.3.8"
"vue": "^3.3.9"
}
}
Loading