Skip to content

Commit

Permalink
chore: fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Jan 23, 2025
1 parent e3a59e7 commit 62c0838
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
const { config } = require('@dhis2/cli-style')

module.exports = {
extends: [config.eslint],
// Needed to add this to support ?? and ?. operators, for some reason
parserOptions: { ecmaVersion: 'latest' },
extends: [config.eslintReact],
// These are common lint errors
// TODO: address lines flagged with these rules (either turn off or back on)
rules: {
'import/extensions': 'warn',
'max-params': 'warn',
'no-unused-vars': 'warn',
'react/react-in-jsx-scope': 'off',
},
}

0 comments on commit 62c0838

Please sign in to comment.