Skip to content

Commit

Permalink
feat: prohibit inherits in browser rules
Browse files Browse the repository at this point in the history
`inherits-browser` is safer to use in browser environments.
  • Loading branch information
nikku committed Jan 9, 2023
1 parent 44e7363 commit dd40b7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configs/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ module.exports = {
},
extends: [
'plugin:bpmn-io/recommended'
]
],
rules: {
'no-restricted-imports': [ 2, {
'name': 'inherits',
'message': 'Use inherits-browser instead'
} ]
}
};

0 comments on commit dd40b7f

Please sign in to comment.