Skip to content

Commit

Permalink
Merge pull request #10 from toyokumo/feature/introduce_eslint
Browse files Browse the repository at this point in the history
Use eslint
  • Loading branch information
saitouena authored Jan 21, 2020
2 parents 1403044 + 3edbfed commit 79e4a6a
Show file tree
Hide file tree
Showing 19 changed files with 1,666 additions and 728 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: lint
command: npm run lint
- run:
name: test
command: npm test
Expand Down
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"plugins": [
"@typescript-eslint"
],
"env": {
"node": true,
"es6": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
]
}
}
Loading

0 comments on commit 79e4a6a

Please sign in to comment.