|
| 1 | +import { globalIgnores } from 'eslint/config' |
| 2 | + |
| 3 | +export default globalIgnores([ |
| 4 | + '**/.*/**/*', // Default of ESLint legacy config |
| 5 | + '**/node_modules', |
| 6 | + '**/.next/**/*', |
| 7 | + '**/_next/**/*', |
| 8 | + '**/.vscode/**/*', |
| 9 | + '**/dist/**/*', |
| 10 | + 'e2e-tests/**/*', |
| 11 | + 'examples/cms-sanity/sanity.types.ts', |
| 12 | + 'examples/with-eslint/**/*', |
| 13 | + 'examples/with-typescript-eslint-jest/**/*', |
| 14 | + 'examples/with-kea/**/*', |
| 15 | + 'examples/with-custom-babel-config/**/*', |
| 16 | + 'examples/with-flow/**/*', |
| 17 | + 'examples/with-jest/**/*', |
| 18 | + 'examples/with-mobx-state-tree/**/*', |
| 19 | + 'examples/with-mobx/**/*', |
| 20 | + 'examples/with-tigris/db/models/todoItems.ts', |
| 21 | + 'packages/next/src/bundles/webpack/packages/*.runtime.js', |
| 22 | + 'packages/next/src/bundles/webpack/packages/lazy-compilation-*.js', |
| 23 | + 'packages/next/src/compiled/**/*', |
| 24 | + 'packages/next/wasm/@next', |
| 25 | + 'packages/react-refresh-utils/**/*.js', |
| 26 | + 'packages/react-dev-overlay/lib/**/*', |
| 27 | + '**/__tmp__/**/*', |
| 28 | + '.github/actions/next-stats-action/.work', |
| 29 | + 'packages/next-codemod/transforms/__testfixtures__/**/*', |
| 30 | + 'packages/next-codemod/transforms/__tests__/**/*', |
| 31 | + 'packages/next-codemod/bin/__testfixtures__/**/*', |
| 32 | + 'packages/next-codemod/**/*.js', |
| 33 | + 'packages/next-codemod/**/*.d.ts', |
| 34 | + 'packages/next-env/**/*.d.ts', |
| 35 | + 'packages/create-next-app/templates/**/*', |
| 36 | + 'test/integration/eslint/**/*.js', |
| 37 | + 'test/integration/script-loader/**/*.js', |
| 38 | + 'test/development/basic/legacy-decorators/**/*.js', |
| 39 | + 'test/production/emit-decorator-metadata/**/*.js', |
| 40 | + '!test/**/*.test.*', |
| 41 | + 'test/e2e/app-dir/rsc-errors/app/swc/use-client/page.js', |
| 42 | + '**/test-timings.json', |
| 43 | + 'crates/**/*', |
| 44 | + 'bench/nested-deps/**/*', |
| 45 | + 'bench/nested-deps-app-router/**/*', |
| 46 | + 'bench/heavy-npm-deps/**/*', |
| 47 | + 'packages/next-bundle-analyzer/index.d.ts', |
| 48 | + 'examples/with-typescript-graphql/lib/gql/', |
| 49 | + 'test/development/basic/hmr/components/parse-error.js', |
| 50 | + 'test/development/mcp-server/fixtures/default-template/app/build-error/page.tsx', |
| 51 | + 'packages/next-swc/docs/assets/**/*', |
| 52 | + 'test/e2e/app-dir/server-source-maps/fixtures/default/internal-pkg/sourcemapped.js', |
| 53 | + 'test/e2e/app-dir/server-source-maps/fixtures/default/external-pkg/sourcemapped.js', |
| 54 | + 'test/development/next-lint-eslint-formatter-compact/**/*.js', |
| 55 | + 'test/e2e/app-dir/app-external/app/mixed/import/mixed-mod.mjs', |
| 56 | + 'turbopack/crates/*/tests/**/*', |
| 57 | + 'turbopack/crates/*/js/src/compiled', |
| 58 | +]) |
0 commit comments