24 lines
485 B
JavaScript
24 lines
485 B
JavaScript
import base from './base.js';
|
|
import nextPlugin from '@next/eslint-plugin-next';
|
|
import globals from 'globals';
|
|
|
|
/** @type {import("eslint").Linter.Config[]} */
|
|
export default [
|
|
...base,
|
|
{
|
|
plugins: {
|
|
'@next/next': nextPlugin,
|
|
},
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
},
|
|
rules: {
|
|
...nextPlugin.configs.recommended.rules,
|
|
...nextPlugin.configs['core-web-vitals'].rules,
|
|
},
|
|
},
|
|
];
|