Skip to content

Commit c2369f8

Browse files
committed
Added setup files
1 parent 9fd5f08 commit c2369f8

File tree

16 files changed

+19213
-83
lines changed

16 files changed

+19213
-83
lines changed

.eslintrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint/eslint-plugin"],
4+
"extends": [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:react/recommended"
8+
],
9+
"parserOptions": {
10+
"ecmaVersion": 6,
11+
"sourceType": "module",
12+
"project": "./tsconfig.json"
13+
},
14+
"env": {
15+
"node": true,
16+
"es6": true
17+
},
18+
"ignorePatterns": ["dist", "setupTests.ts", "babel.config.js"],
19+
"rules": {
20+
"comma-dangle": "off",
21+
"class-methods-use-this": "off",
22+
"import/prefer-default-export": "off",
23+
"import/no-dynamic-require": "off",
24+
"global-require": "off",
25+
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
26+
"@typescript-eslint/indent": ["error", 4]
27+
}
28+
}

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
/dist
14+
15+
# misc
16+
.DS_Store
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
26+
# IDE
27+
/.idea

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/workspace.xml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: node_js
2+
3+
node_js:
4+
- "12"
5+
6+
script:
7+
- npm install codecov -g
8+
- npm run build
9+
after_success:
10+
- bash <(curl -s https://codecov.io/bash)

__tests__/.gitkeep

Whitespace-only changes.

babel.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
plugins: [
3+
'@babel/plugin-proposal-class-properties'
4+
],
5+
presets: [
6+
'@babel/typescript',
7+
['@babel/env', {
8+
targets: {
9+
esmodules: true,
10+
},
11+
},],
12+
'@babel/react',
13+
],
14+
};

jest.config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$",
3+
"setupFilesAfterEnv": ["./setupTests.ts"],
4+
"moduleNameMapper": {
5+
"@/(.*)": "<rootDir>/src/$1"
6+
}
7+
}

0 commit comments

Comments
 (0)