Skip to content

Commit

Permalink
feat: update eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ksakiyama committed Aug 13, 2021
1 parent e38e803 commit 43d0cb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = {
'prefer-const': 2,
'prefer-destructuring': 1,
'no-console': 1,
'@typescript-eslint/array-type': ['warn', { default: 'array' }], // Array<T> => T[], ReadonlyArray<T> => readonly T[]
'react/self-closing-comp': ['warn', { component: true, html: true }], // <div></div> => <div />
},
parserOptions: {
ecmaVersion: 2018,
Expand Down

0 comments on commit 43d0cb2

Please sign in to comment.