Skip to content

Commit

Permalink
Improve ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fnwbr committed Jul 26, 2023
1 parent 3ba5c01 commit 946d374
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 0 additions & 1 deletion next.config.example.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const WebpackConfig = require('./webpack.config.js');

// eslint-disable-next-line no-undef
module.exports = {
publicRuntimeConfig: {
name: '/spaces',
Expand Down
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@
"error",
"prefer-double"
]
}
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": [
"./*.js"
],
"env": {
"node": true
}
}
]
}
}
2 changes: 2 additions & 0 deletions pages/test-iframelayout/[[...id]].js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import IframeLayout from '../../components/layouts/iframe';

/**
* This is an example page on how to make use of the two-columns layout with an iframe on the right.
*
* @returns {React.ReactElement}
*/
export default function TestIframeLayout() {
const router = useRouter();
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ module.exports = (config, { buildId, dev, isServer, defaultLoaders, webpack }) =
files: ['assets/*.css', 'components/**/*.js', 'pages/**/*.js'],
failOnError: false,
}));

return config;
};

0 comments on commit 946d374

Please sign in to comment.