Skip to content

Commit 6374810

Browse files
Update ESLint and Prettier configurations to disable jsx-a11y rule and remove deprecated option
1 parent d5a64e7 commit 6374810

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

packages/nextjs/.eslintrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ module.exports = {
3636
project: [path.resolve(__dirname, 'tsconfig.eslint.json')],
3737
},
3838
plugins: ['@wso2'],
39+
rules: {
40+
'jsx-a11y/no-html-link-for-pages': 'off',
41+
},
3942
settings: {
4043
'import/resolver': {
4144
node: {

packages/nextjs/prettier.config.cjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@
1616
* under the License.
1717
*/
1818

19-
module.exports = require('@wso2/prettier-config');
19+
const config = require('@wso2/prettier-config');
20+
21+
// Remove deprecated jsxBracketSameLine option
22+
delete config.jsxBracketSameLine;
23+
24+
module.exports = config;

0 commit comments

Comments
 (0)