My NextJS starter to setup my preffered nextjs stack
at master 823 B view raw
1const { resolve } = require('node:path'); 2 3const project = resolve(process.cwd(), 'tsconfig.json'); 4 5/** @type {import("eslint").Linter.Config} */ 6module.exports = { 7 root: true, 8 parser: '@typescript-eslint/parser', 9 rules: { 10 'turbo/no-undeclared-env-vars': 'off', 11 }, 12 parserOptions: { 13 project: true, 14 }, 15 extends: [ 16 'eslint:recommended', 17 'prettier', 18 require.resolve('@vercel/style-guide/eslint/next'), 19 'eslint-config-turbo', 20 ], 21 globals: { 22 React: true, 23 JSX: true, 24 }, 25 env: { 26 node: true, 27 browser: true, 28 }, 29 plugins: ['only-warn'], 30 settings: { 31 'import/resolver': { 32 typescript: { 33 project, 34 }, 35 }, 36 }, 37 ignorePatterns: [ 38 // Ignore dotfiles 39 '.*.js', 40 'node_modules/', 41 ], 42 overrides: [{ files: ['*.js?(x)', '*.ts?(x)'] }], 43};