Skip to content

Commit

Permalink
chore: Linter/Formatterの導入 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nandenjin committed Oct 1, 2020
1 parent 5ac94d1 commit 92d842d
Show file tree
Hide file tree
Showing 6 changed files with 1,762 additions and 47 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.next/
build/
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
parser: '@typescript-eslint/parser',
env: {
node: true,
browser: true,
es6: true,
},
plugins: [
'@typescript-eslint',
'import',
'react',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'prettier',
],
rules: {
'react/prop-types': 'off',
'import/order': 'error',
}
}
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.next
build
package.json
package-lock.json
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
semi: false,
singleQuote: true,
arrowParens: 'avoid',
}
Loading

0 comments on commit 92d842d

Please sign in to comment.