Skip to content

Commit

Permalink
add comma-dangle rules
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmondok committed Aug 11, 2022
1 parent b8e7aff commit 1e87f8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
'unused-imports',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
'import/order': [
'error',
{
Expand Down
12 changes: 7 additions & 5 deletions typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ module.exports = {
sourceType: 'module',
project: './tsconfig.json',
},
plugins: [
...base.plugins,
'@typescript-eslint',
],
plugins: [...base.plugins, '@typescript-eslint'],
rules: {
...base.rules,
'comma-dangle': 'off',
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'@typescript-eslint/no-unused-expressions': [
'error',
{ allowShortCircuit: true, allowTernary: true },
],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error', { variables: false }],

Expand Down

0 comments on commit 1e87f8a

Please sign in to comment.