next.js16 lines · main
| 1 | // @ts-check |
| 2 | import nextPlugin from '@next/eslint-plugin-next'; |
| 3 | import react from './react.js'; |
| 4 | |
| 5 | /** @type {import('eslint').Linter.Config[]} */ |
| 6 | export default [ |
| 7 | ...react, |
| 8 | { |
| 9 | files: ['**/*.{ts,tsx,jsx}'], |
| 10 | plugins: { '@next/next': nextPlugin }, |
| 11 | rules: { |
| 12 | ...nextPlugin.configs.recommended.rules, |
| 13 | ...nextPlugin.configs['core-web-vitals'].rules, |
| 14 | }, |
| 15 | }, |
| 16 | ]; |