Skip to content

Commit

Permalink
fix eslint errors with website
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jan 14, 2025
1 parent f96e1e8 commit e786949
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default tsConfig(
'npmDist',
'npmEsmDist',
'denoDist',
'website',
'website/.next',
'website/out',
'integrationTests/ts/*.ts',
],
},
Expand Down Expand Up @@ -882,6 +883,8 @@ export default tsConfig(
'no-restricted-exports': 'off',
'import/no-default-export': 'off',
'import/no-nodejs-modules': 'off',
'import/unambiguous': 'off',
'n/no-missing-import': 'off', // allows linting from root of project when website packages are not installed
},
},
);
File renamed without changes.
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "website",
"version": "0.0.0",
"description": "The GraphQL.JS documentation website",
"type": "module",
"private": true,
"directories": {
"doc": "docs"
Expand Down
4 changes: 3 additions & 1 deletion website/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module.exports = {
const config = {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
};

export default config;
4 changes: 3 additions & 1 deletion website/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typography from '@tailwindcss/typography';

module.exports = {
const config = {
content: [
'./pages/**/*.{ts,tsx,mdx}',
'./icons/**/*.{ts,tsx,mdx}',
Expand Down Expand Up @@ -39,3 +39,5 @@ module.exports = {
plugins: [typography],
darkMode: ['class', 'html[class~="dark"]'],
};

export default config;

0 comments on commit e786949

Please sign in to comment.