Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 6c93eb3

Browse files
authored
Refactorings from #331 (#346)
* Refactorings from #331 * Update dependencies * Update dependencies
1 parent d449220 commit 6c93eb3

File tree

32 files changed

+3657
-1204
lines changed

32 files changed

+3657
-1204
lines changed

.eslintrc

-26
This file was deleted.

.eslintrc.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"root": true,
3+
"rules": {
4+
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
5+
"semi": [ 2, "always" ],
6+
"keyword-spacing": [ 2, { "before": true, "after": true } ],
7+
"space-before-blocks": [ 2, "always" ],
8+
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
9+
"no-cond-assign": 0,
10+
"no-unused-vars": 2,
11+
"object-shorthand": [ 2, "always" ],
12+
"no-const-assign": 2,
13+
"no-class-assign": 2,
14+
"no-this-before-super": 2,
15+
"no-var": 2,
16+
"no-unreachable": 2,
17+
"valid-typeof": 2,
18+
"quote-props": [ 2, "as-needed" ],
19+
"one-var": [ 2, "never" ],
20+
"prefer-arrow-callback": 2,
21+
"prefer-const": [ 2, { "destructuring": "all" } ],
22+
"arrow-spacing": 2
23+
},
24+
"env": {
25+
"es6": true,
26+
"browser": true,
27+
"node": true
28+
},
29+
"extends": [
30+
"eslint:recommended",
31+
"plugin:import/errors",
32+
"plugin:import/warnings"
33+
],
34+
"parserOptions": {
35+
"ecmaVersion": 8,
36+
"sourceType": "module"
37+
},
38+
"settings": {
39+
"import/ignore": [ 0, [
40+
"\\.path.js$"
41+
] ]
42+
}
43+
}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
node_modules
33
.gobble*
44
dist
5-
!test/node_modules
5+
!test/**/node_modules

.huskyrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"post-commit": "git reset",
4+
"pre-commit": "lint-staged"
5+
}
6+
}

.lintstagedrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"{src/**/*,test/test,test/**/_config}.js": [
3+
"prettier --write",
4+
"eslint --fix",
5+
"git add"
6+
]
7+
}

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"useTabs": true,
4+
"printWidth": 100
5+
}

.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "node"
4+
- "8"
5+
- "10"
56
env:
67
global:
78
- BUILD_TIMEOUT=10000
89
install: npm install
9-
before_install:
10-
- if [[ $TRAVIS_NODE_VERSION -lt 7 ]]; then npm install --global npm@4; fi

0 commit comments

Comments
 (0)