23 lines
471 B
JavaScript
23 lines
471 B
JavaScript
import pluginReactHooks from "eslint-plugin-react-hooks"
|
|
import globals from "globals"
|
|
|
|
import { config as baseConfig } from "./base.js"
|
|
|
|
/**
|
|
* A custom ESLint configuration for libraries that use React.
|
|
*
|
|
* @type {import("eslint").Linter.Config[]}
|
|
*/
|
|
export const config = [
|
|
...baseConfig,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.serviceworker,
|
|
...globals.browser,
|
|
},
|
|
},
|
|
},
|
|
pluginReactHooks.configs.flat.recommended,
|
|
]
|