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

Commit

Permalink
Pass all data to dataToEsm and fix array formatting in compact mode (#53
Browse files Browse the repository at this point in the history
)

* Pass all data to dataToEsm and fix array formatting in compact mode

* Update dependencies, break Node 4 compatibility, add prettier, resolves #52

* Handle empty object keys, resolves #32
  • Loading branch information
lukastaegert committed Mar 18, 2019
1 parent bb64f65 commit 68ac0b5
Show file tree
Hide file tree
Showing 9 changed files with 1,609 additions and 1,367 deletions.
3 changes: 0 additions & 3 deletions .eslintrc
Expand Up @@ -3,11 +3,8 @@
"rules": {
"indent": [ 2, "tab", { "SwitchCase": 1 } ],
"semi": [ 2, "always" ],
"quotes": [ 2, "single" ],
"linebreak-style": [ 2, "unix" ],
"keyword-spacing": [ 2, { "before": true, "after": true } ],
"space-before-blocks": [ 2, "always" ],
"space-before-function-paren": [ 2, "always" ],
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
"no-cond-assign": 0,
"no-unused-vars": 2,
Expand Down
6 changes: 6 additions & 0 deletions .huskyrc
@@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "lint-staged",
"post-commit": "git reset"
}
}
2 changes: 2 additions & 0 deletions .lintstagedrc
@@ -1,9 +1,11 @@
{
"src/**/*.js": [
"prettier --write",
"eslint --fix",
"git add"
],
"test/test.js": [
"prettier --write",
"eslint --fix",
"git add"
]
Expand Down
5 changes: 5 additions & 0 deletions .prettierrc
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"useTabs": true,
"printWidth": 100
}
1 change: 0 additions & 1 deletion .travis.yml
@@ -1,7 +1,6 @@
sudo: false
language: node_js
node_js:
- "4"
- "6"
- "8"
- "10"
Expand Down

0 comments on commit 68ac0b5

Please sign in to comment.