Skip to content

Commit

Permalink
Add .eslintrc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
epaew committed Jun 11, 2020
1 parent 7083499 commit d943c12
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
node_modules/
31 changes: 31 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
root: true
env:
es2017: true
node: true
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:@typescript-eslint/recommended
- prettier
- prettier/@typescript-eslint
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2019
sourceType: module
plugins:
- '@typescript-eslint'
- prettier
rules:
'@typescript-eslint/no-empty-function': off
prettier/prettier: error
settings:
react:
version: detect
overrides:
- files:
- '*.tsx'
plugins:
- react
rules:
react/prop-types: off
5 changes: 5 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
arrowParens: avoid
printWidth: 100
singleQuote: true
trailingComma: all

0 comments on commit d943c12

Please sign in to comment.