Skip to content

Commit

Permalink
Use latest eslint + typescript-eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Jan 29, 2025
1 parent bc6bfdc commit 872f0a6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 26 deletions.
24 changes: 0 additions & 24 deletions packages/create/src/recipes/_base/template/eslint.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions packages/create/src/recipes/_base/template/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);
5 changes: 3 additions & 2 deletions packages/create/src/recipes/nextjs/template/ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
".next/types/**/*.ts",
"eslint.config.mjs"
],
"exclude": [
"node_modules"
]
}
}

0 comments on commit 872f0a6

Please sign in to comment.