Skip to content

Commit

Permalink
feat(eslint-config): add new js rules
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Jan 19, 2024
1 parent 9786f20 commit 2badba6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/eslint-config/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
semi: ['error', 'never'],
'comma-dangle': ['error', 'never'],
'eol-last': ['error', 'always'],
'arrow-parens': ['error', 'always'],
camelcase: ['error', {ignoreDestructuring: true}],
eqeqeq: ['error', 'always', {null: 'ignore'}],
'prefer-const': ['error', {ignoreReadBeforeAssign: true}],
Expand Down Expand Up @@ -68,6 +69,7 @@ module.exports = {
'no-global-assign': 'error',
'no-extend-native': 'error',
'no-alert': 'error',
'no-console': 'error',
'no-unsafe-optional-chaining': [
'error',
{disallowArithmeticOperators: true}
Expand Down Expand Up @@ -112,6 +114,7 @@ module.exports = {
'no-nested-ternary': 'error',
'no-unneeded-ternary': 'error',
'no-param-reassign': 'error',
'no-empty-function': 'error',
'no-constant-condition': [
'error',
{
Expand Down

0 comments on commit 2badba6

Please sign in to comment.