azat-io / eslint-plugin-perfectionist

🦄 ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
https://eslint-plugin-perfectionist.azat.io
MIT License
1.67k stars 30 forks source link

Request: Add support for eslint v9 #154

Open joshunrau opened 2 weeks ago

joshunrau commented 2 weeks ago

Describe the bug

Currently, eslint >= 8.0.0 is listed as a peer dependency. I can use flat config with v8 and the plugin (example below). It should be confirmed everything works with v9, after which is can be added to peers.

Code example

import perfectionist from 'eslint-plugin-perfectionist';

export default [
  {
    files: ['**/*.js'],
    plugins: {
      perfectionist
    },
    rules: {
      ...perfectionist.configs['recommended-natural'].rules
    }
  }
];

ESLint version

v8.57.0

ESLint Plugin Perfectionist version

v2.10.0

Additional comments

No response

Validations

pauliesnug commented 2 weeks ago

Also there are no included TypeScript declaration files, which causes issues with Flat Config type checking. I think this is in scope of #90 as well.

azat-io commented 2 weeks ago

Yes, we are currently working on implementing this feature.

what1s1ove commented 1 week ago

Yes, we are currently working on implementing this feature.

Hey @azat-io !

Could you please let me know if you are planning to add a d.ts file for this plugin? Currently, there is an error because it is missing.

image
azat-io commented 1 week ago

Yes, we're planning to add ts support!