Skip to content

Commit

Permalink
Use eslint & prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Masashi Hirano committed Mar 26, 2019
1 parent 5cc789c commit 047ef9c
Show file tree
Hide file tree
Showing 5 changed files with 961 additions and 42 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,21 @@
module.exports = {
'env': {
'browser': true,
'es6': true
},
'extends': [
'standard',
'plugin:prettier/recommended'
],
'plugins': [
'@typescript-eslint'
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module',
'project': './tsconfig.json'
},
'rules': {
}
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,8 @@
{
"prettier.eslintIntegration": true,
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
{"language": "typescript", "autoFix": true },
]
}

0 comments on commit 047ef9c

Please sign in to comment.