Skip to content

Commit

Permalink
feat(eslint-config): add new rules
Browse files Browse the repository at this point in the history
- no-throw-literal
- no-template-curly-in-string
  • Loading branch information
andrepolischuk committed Mar 26, 2024
1 parent 779cb1f commit c3799be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/eslint-config/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = {
}
],
'no-nested-ternary': 'error',
'no-unneeded-ternary': 'error',
'no-unneeded-ternary': ['error', {defaultAssignment: false}],
'no-param-reassign': 'error',
'no-return-assign': 'error',
'no-script-url': 'error',
Expand All @@ -122,6 +122,8 @@ module.exports = {
'no-var': 'error',
'no-void': 'error',
'no-with': 'error',
'no-throw-literal': 'error',
'no-template-curly-in-string': 'error',
'no-empty-function': ['error', {allow: ['arrowFunctions']}],
'no-constant-condition': [
'error',
Expand Down

0 comments on commit c3799be

Please sign in to comment.