Skip to content

Commit 7912d6d

Browse files
committed
fix eslint errors with website
1 parent 7b9e541 commit 7912d6d

5 files changed

+11
-3
lines changed

eslint.config.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export default tsConfig(
2121
'npmDist',
2222
'npmEsmDist',
2323
'denoDist',
24-
'website',
24+
'website/.next',
25+
'website/out',
2526
'integrationTests/ts/*.ts',
2627
],
2728
},
@@ -882,6 +883,8 @@ export default tsConfig(
882883
'no-restricted-exports': 'off',
883884
'import/no-default-export': 'off',
884885
'import/no-nodejs-modules': 'off',
886+
'import/unambiguous': 'off',
887+
'n/no-missing-import': 'off', // allows linting from root of project when website packages are not installed
885888
},
886889
},
887890
);
File renamed without changes.

website/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "website",
33
"version": "0.0.0",
44
"description": "The GraphQL.JS documentation website",
5+
"type": "module",
56
"private": true,
67
"directories": {
78
"doc": "docs"

website/postcss.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
module.exports = {
1+
const config = {
22
plugins: {
33
'tailwindcss/nesting': {},
44
tailwindcss: {},
55
autoprefixer: {},
66
},
77
};
8+
9+
export default config;

website/tailwind.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import typography from '@tailwindcss/typography';
22

3-
module.exports = {
3+
const config = {
44
content: [
55
'./pages/**/*.{ts,tsx,mdx}',
66
'./icons/**/*.{ts,tsx,mdx}',
@@ -39,3 +39,5 @@ module.exports = {
3939
plugins: [typography],
4040
darkMode: ['class', 'html[class~="dark"]'],
4141
};
42+
43+
export default config;

0 commit comments

Comments
 (0)