Skip to content

Commit

Permalink
udpated blogpost
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaPontrandolfo committed Dec 9, 2024
1 parent 7bc8060 commit d2a2ccb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions apps/docs-website/blog/2024-12-7-release-25.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Sheriff now fully supports ESLint V9 APIs for all plugins. [Milestone](https://g

There were some [problematic](https://github.com/facebook/react/issues/28313) plugins that could cause crashes in some instances, like [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks) and [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import/tree/main).

Now every plugin is updated to the V9 compatible version and all issues should be resolved.
Now all plugins have been updated to their V9-compatible versions, resolving these issues.

## Added `eslint-plugin-remeda`
Added support for [remeda](https://github.com/remeda/remeda) with [eslint-plugin-remeda](https://github.com/AndreaPontrandolfo/eslint-plugin-remeda).
Expand Down Expand Up @@ -58,27 +58,40 @@ export default defineFlatConfig([...sheriff(sheriffOptions)]);
## Unified Type Exports
The types previously exported from `@sherifforg/types` are now exported directly from `eslint-config-sheriff`.

The `@sherifforg/types` package is now deprecated, you can now safely remove it and update the imports accordingly.
The `@sherifforg/types` package is now deprecated. You can safely remove it and update your imports accordingly.

## Compliance with the native typescript support for the `eslint.config.ts` file
## Compliance with the native Typescript support for the `eslint.config.ts` file

Sheriff moved away from [eslint-ts-patch](https://github.com/antfu/eslint-ts-patch) and adopted the [native support for TypeScript](https://eslint.org/blog/2024/08/eslint-v9.9.0-released/#experimental-typescript-configuration-files) in the `eslint.config.ts` file.

You can enable it by setting `unstable_ts_config`, both in the CLI commands and in the [VSCode extension settings](https://www.eslint-config-sheriff.dev/docs/vscode-support#eslintconfigts-support).

## New syntax for boostrapping Sheriff projects
## New syntax for bootstrapping Sheriff projects

Now you can do `pnpm create @sherifforg/config` instead of `pnpm dlx create-sheriff-config` to bootstrap a new Sheriff project.

## Minor improvements

- Astro linting is now configurable
- the `SheriffOptions` object is now optional, if you don't specify it, every option will be passed as `false` by default.
- the `SheriffOptions` object is now optional. If not specified, all options will default to `false`.
- general fixes and improvements to the CLI. The experience should be much better now.
- reworked the `noRestrictedSyntaxOverride` option
- exposed more useful variables from the main package

For more details, see the [release notes](https://github.com/AndreaPontrandolfo/sheriff/releases).

## Acknowledgments

Shoutout to [all the people that contributed](https://github.com/AndreaPontrandolfo/sheriff/graphs/contributors) to these releases and special big thanks to [lishaduck](https://github.com/lishaduck) for his big help on a lot of Issues and PRs!

For more details, see the [release notes](https://github.com/AndreaPontrandolfo/sheriff/releases).
## How to Contribute

Sheriff thrives on community support. Here is how you can help:

- Contribute and Share Feedback: Fix bugs, suggest features, improve documentation, or join discussions. Start contributing today!
- Give a Star: Found Sheriff useful? ⭐ the project on GitHub to show your support.

Your support helps Sheriff move forward. Thank you!



Binary file modified apps/docs-website/static/img/sheriff_blog_post_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d2a2ccb

Please sign in to comment.