Skip to content

Commit

Permalink
style: update lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Jul 13, 2020
1 parent f6ef866 commit 3271123
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion support/root/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ module.exports = {
'react-hooks/rules-of-hooks': 'error',

// Built in eslint rules
'no-constant-condition': 'off',
'no-constant-condition': 'off', // To many false positives
'no-empty': 'warn',
'no-else-return': 'warn',
'no-useless-escape': 'warn',
'default-case': 'warn',
'prefer-template': 'warn',
Expand All @@ -239,6 +240,19 @@ module.exports = {
eqeqeq: ['error', 'always', { null: 'ignore' }],
'prefer-exponentiation-operator': 'error',
'prefer-arrow-callback': ['error', { allowNamedFunctions: true }],
'padding-line-between-statements': [
'warn',
{
blankLine: 'always',
prev: '*',
next: ['if', 'switch', 'for', 'do', 'while', 'class', 'function'],
},
{
blankLine: 'always',
prev: ['if', 'switch', 'for', 'do', 'while', 'class', 'function'],
next: '*',
},
],
},
overrides: [
{
Expand Down

0 comments on commit 3271123

Please sign in to comment.