Skip to content

Commit

Permalink
maint/dev ~ teach ESLint to overlook "ignored" args/vars with leading…
Browse files Browse the repository at this point in the history
… underscores ('_')
  • Loading branch information
rivy committed Dec 28, 2020
1 parent 288c552 commit 5e4480c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ module.exports = {
rules: {
// ref: https://eslint.org/docs/rules
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/no-unused-disable': 'error',
'import/order': ['error', { 'newlines-between': 'always', alphabetize: { order: 'asc' } }],
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], // ref: https://eslint.org/docs/rules/no-unused-vars
'sort-imports': ['error', { ignoreDeclarationSort: true, ignoreCase: true }],
},
overrides: [
Expand Down

0 comments on commit 5e4480c

Please sign in to comment.