Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Oct 22, 2020
1 parent bf490d9 commit 9ded245
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ module.exports = {
{
files: ['*.ts'],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
],
rules: {
'import/extensions': ['error', 'never'],
// switch airbnb rules for typescript compatible ones
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error', { functions: true, classes: true, variables: true }],
},
settings: {
'import/extensions': ['.js', '.ts'],
Expand Down

0 comments on commit 9ded245

Please sign in to comment.