Skip to content

Commit

Permalink
Update to whim configs
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonmoeller committed Feb 13, 2018
1 parent 1c7b41a commit f907e67
Show file tree
Hide file tree
Showing 15 changed files with 185 additions and 137 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ dist/
examples/*/
node_modules/

*.log
.*.swp
.DS_Store
.Trash*
*.log
*.swp
.npmignore
143 changes: 114 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 14 additions & 52 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"lint": "run-s lint-*",
"lint-prettier": "prettier --ignore-path .gitignore --write \"**/*.{css,js}\"",
"lint-eslint": "eslint --ignore-path .gitignore --fix \"**/*.js\"",
"lint-stylelint": "stylelint --ignore-path .gitignore --fix \"**/*.css\"",
"test": "nyc run-s test-*",
"test-node": "cross-env NODE_ENV=test blue-tape -r babel-register \"packages/*/test/*.js\" | tap-diff",
"report": "nyc report -r text-lcov | coveralls",
Expand All @@ -24,77 +23,40 @@
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.3",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-eslint": "^8.2.1",
"babel-preset-whim": "^1.0.0-5",
"babel-register": "^6.26.0",
"blue-tape": "^1.0.0",
"coveralls": "^3.0.0",
"cross-env": "^5.1.3",
"del-cli": "^1.1.0",
"eslint": "^4.13.1",
"eslint": "^4.17.0",
"eslint-config-prettier": "^2.9.0",
"eslint-config-whim": "^3.0.0",
"eslint-config-whim": "^3.1.0-5",
"husky": "^0.14.3",
"lerna": "^2.5.1",
"lerna": "^2.8.0",
"mock-fs": "^4.4.2",
"mute": "^2.0.6",
"npm-run-all": "^4.1.2",
"nyc": "^11.3.0",
"prettier": "^1.9.2",
"stylelint": "^8.4.0",
"stylelint-config-prettier": "^2.0.0",
"stylelint-config-whim": "^4.0.1",
"nyc": "^11.4.1",
"prettier": "^1.10.2",
"tap-diff": "^0.1.1"
},
"babel": {
"plugins": [
"transform-object-rest-spread"
],
"presets": [
[
"env",
{
"targets": {
"browsers": false,
"node": 6
}
}
]
],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
},
"eslintConfig": {
"extends": [
"eslint-config-whim",
"eslint-config-prettier"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"browser": true,
"es6": true,
"node": true
}
"babel-preset-whim"
]
},
"prettier": {
"printWidth": 80,
"arrowParens": "always",
"singleQuote": true,
"useTabs": true
},
"stylelint": {
"eslintConfig": {
"parser": "babel-eslint",
"extends": [
"stylelint-config-whim",
"stylelint-config-prettier"
"eslint-config-whim",
"eslint-config-prettier"
]
},
"nyc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/file/src/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class File {
};

return readFile(pathname, readOptions)
.then(x => (this.contents = x))
.then((x) => (this.contents = x))
.then(() => this);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/file/src/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ export function mkdirp(dirNames, i = 1) {
const dir = dirNames.slice(0, i).join(path.sep);

return mkdir(dir)
.catch(e => e) // ignore errors
.catch((e) => e) // ignore errors
.then(() => mkdirp(dirNames, i + 1));
}
Loading

0 comments on commit f907e67

Please sign in to comment.