Skip to content

Commit

Permalink
fix(with-tailwind): support .mjs import extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tknickman committed Sep 8, 2023
1 parent b46996f commit e7eed5b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module.exports = {
typescript: {
project,
},
node: {
extensions: [".mjs", ".js", ".jsx", ".ts", ".tsx"],
},
},
},
ignorePatterns: ["node_modules/", "dist/"],
Expand Down
3 changes: 3 additions & 0 deletions examples/with-tailwind/packages/eslint-config-custom/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ module.exports = {
typescript: {
project,
},
node: {
extensions: [".mjs", ".js", ".jsx", ".ts", ".tsx"],
},
},
},
ignorePatterns: ["node_modules/", "dist/"],
Expand Down
3 changes: 3 additions & 0 deletions examples/with-tailwind/packages/eslint-config-custom/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module.exports = {
typescript: {
project,
},
node: {
extensions: [".mjs", ".js", ".jsx", ".ts", ".tsx"],
},
},
},
ignorePatterns: ["node_modules/", "dist/", ".eslintrc.js", "**/*.css"],
Expand Down
1 change: 1 addition & 0 deletions examples/with-tailwind/packages/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"allowImportingTsExtensions": true,
"noEmit": true,
"inlineSources": false,
"isolatedModules": true,
"moduleResolution": "node",
Expand Down
1 change: 0 additions & 1 deletion examples/with-tailwind/packages/tsconfig/nextjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"jsx": "preserve",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
"noEmit": true,
"resolveJsonModule": true,
"strict": false,
"target": "es5"
Expand Down
4 changes: 3 additions & 1 deletion examples/with-tailwind/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
},
"lint": {},
"lint": {
"dependsOn": ["^build"]
},
"check-types": {},
"dev": {
"cache": false,
Expand Down

0 comments on commit e7eed5b

Please sign in to comment.