eslint-types / eslint-define-config

Provide a defineConfig function for .eslintrc.js files
MIT License
361 stars 26 forks source link

feat: rexport-rules #241

Closed antfu closed 1 year ago

antfu commented 1 year ago

https://github.com/antfu/eslint-define-config#1-re-export-rules-for-each-plugin

  1. This would be the most straightforward way (current)
import { VueRules } from 'eslint-define-config'
  1. But ideally I would think it's better to expose as a sub modules
import { defineConfig } from 'eslint-define-config'
import { VueRules, VitestRules } from 'eslint-define-config/rules'
  1. Or maybe even:
import { defineConfig } from 'eslint-define-config'
import { Plugins } from 'eslint-define-config/rules'

const VueRules = Plugins['eslint-plugin-vue'] // Very explicit for each package.

I can update the PR based on your preference.

Shinigami92 commented 1 year ago

I would like to immediately jump to the @eslint-type/*, because that way I wont introduce an already planned breaking change

Shinigami92 commented 1 year ago

the @eslint-type/* monorepo is working now so can we close this PR?