Update
This commit is contained in:
10
src/index.ts
10
src/index.ts
@ -6,8 +6,6 @@ import { eslintRules } from './presets/eslint';
|
||||
import { reactRules } from './presets/react';
|
||||
import { importRules } from './presets/import';
|
||||
import { error, warn, off } from './constants';
|
||||
// @ts-expect-error
|
||||
const { name } = [require][0]('./package.json');
|
||||
|
||||
export { error, warn, off };
|
||||
|
||||
@ -54,7 +52,13 @@ type Config = Omit<ESLintConfig, 'rules'> & {
|
||||
* Returns a ESLint config object.
|
||||
*
|
||||
* By default, it includes `["@typescript-eslint", "import", "prettier"]` configs.
|
||||
* Additional bundled plugins include `["react", "react-refresh", "jsx-a11y", "unicorn"]`.
|
||||
* Additional bundled plugins include:
|
||||
*
|
||||
* 1. [react](https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules)
|
||||
* 2. [react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
|
||||
* 3. [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-rules)
|
||||
* 4. [unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn#rules)
|
||||
* 5. [n](https://github.com/eslint-community/eslint-plugin-n#-rules) (Node.js specific)
|
||||
*/
|
||||
export function extendConfig({
|
||||
plugins,
|
||||
|
Reference in New Issue
Block a user