Skip to content

Commit

Permalink
introduce typescript and wakkanay #1
Browse files Browse the repository at this point in the history
  • Loading branch information
syuhei176 committed Jan 13, 2020
1 parent 340b08f commit 98333e9
Show file tree
Hide file tree
Showing 9 changed files with 6,523 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"plugins": ["@typescript-eslint", "prettier"],
"parser": "@typescript-eslint/parser",
"env": { "node": true, "es6": true },
"parserOptions": {
"sourceType": "module"
},
"rules": {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/interface-name-prefix": 0
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"trailingComma": "none",
"singleQuote": true
}
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: node_js
node_js:
- 10

before_install:
# Upgrade npm to >=6.12 because of prepare don't work with `npm ci` command.
# https://npm.community/t/npm-ci-does-not-run-prepare-script-for-git-modules-version-6-11/10076/3
- npm install -g npm@latest

script:
- npm run test
- npm run lint
5 changes: 5 additions & 0 deletions __tests__/sample.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('Sample', () => {
test('true', () => {
expect(1 + 2).toBe(3)
})
})
Loading

0 comments on commit 98333e9

Please sign in to comment.