Add sucrase support
This commit is contained in:
14
src/index.ts
14
src/index.ts
@ -20,6 +20,12 @@ declare module 'eslint-define-config/src/rules/react/no-unknown-property.d.ts' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a ESLint config object.
|
||||
*
|
||||
* By default, it includes `["@typescript-eslint", "import", "prettier"]` configs.
|
||||
* Additional bundled plugins include `["react", "react-refresh", "jsx-a11y", "unicorn"]`.
|
||||
*/
|
||||
export function extendConfig({
|
||||
plugins,
|
||||
settings,
|
||||
@ -73,7 +79,13 @@ export function extendConfig({
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['.eslintrc.js', '*.config.js', 'index.js', 'babel.config.js'],
|
||||
files: [
|
||||
'.eslintrc.js',
|
||||
'*.config.js',
|
||||
'index.js',
|
||||
'babel.config.js',
|
||||
'next.config.js',
|
||||
],
|
||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user