Skip to content

Commit fd424b8

Browse files
authoredSep 10, 2024··
Enable Next.js TypeScript plugin (#427)
1 parent 3bbcd0f commit fd424b8

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed
 

‎templates/create-react-app/.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
// Ignore unknown CSS at rules for Tailwind CSS
33
"css.lint.unknownAtRules": "ignore",
4-
// Enable Stylelint in javascript and typescriptreact (for CSS-in-JS) and scss
4+
// Enable Stylelint in javascript and typescriptreact (for
5+
// CSS-in-JS) and scss
56
"stylelint.validate": [
67
"css",
78
"scss",
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
// Ignore unknown CSS at rules for Tailwind CSS
33
"css.lint.unknownAtRules": "ignore",
4-
// Enable Stylelint in javascript and typescriptreact (for CSS-in-JS) and scss
4+
// Enable Stylelint in javascript and typescriptreact (for
5+
// CSS-in-JS) and scss
56
"stylelint.validate": [
67
"css",
78
"scss",
89
"postcss",
910
"javascript",
1011
"typescriptreact"
11-
]
12+
],
13+
// Enable Next.js TypeScript plugin
14+
// https://nextjs.org/docs/app/building-your-application/configuring/typescript#typescript-plugin
15+
"typescript.tsdk": "node_modules/typescript/lib"
1216
}
+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
// Ignore unknown CSS at rules for Tailwind CSS
33
"css.lint.unknownAtRules": "ignore",
4-
// Enable Stylelint in javascript and typescriptreact (for CSS-in-JS) and scss
4+
// Enable Stylelint in javascript and typescriptreact (for
5+
// CSS-in-JS) and scss
56
"stylelint.validate": [
67
"css",
78
"scss",
89
"postcss",
910
"javascript",
1011
"typescriptreact"
11-
]
12+
],
13+
// Enable Next.js TypeScript plugin
14+
// https://nextjs.org/docs/app/building-your-application/configuring/typescript#typescript-plugin
15+
"typescript.tsdk": "node_modules/typescript/lib"
1216
}

0 commit comments

Comments
 (0)
Please sign in to comment.