Skip to content

Commit

Permalink
refactor: babel7
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Jan 27, 2019
1 parent 939cf9a commit 4f5edfc
Show file tree
Hide file tree
Showing 4 changed files with 2,653 additions and 1,719 deletions.
12 changes: 11 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"presets": [["env", { "targets": { "node": "4" } }], "flow"]
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "4"
}
}
],
"@babel/preset-flow"
]
}
20 changes: 10 additions & 10 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Expand Down
53 changes: 34 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
"repository": "akameco/babel-plugin-fizzbuzz",
"author": "akameco <akameco.t@gmail.com> (akameco.github.io)",
"engines": {
"node": ">=4"
"node": ">=8"
},
"main": "lib/index.js",
"files": ["lib"],
"files": [
"lib"
],
"scripts": {
"add-contributor": "all-contributors add",
"precommit": "yarn validate && lint-staged",
"build": "babel src -d lib --ignore *.test.js,__fixtures__",
"build": "babel src -d lib --ignore src/*.test.js,**/__fixtures__",
"prepublish": "npm run build",
"fmt": "prettier --write '**/*.{js,json,md}'",
"flow": "flow",
Expand All @@ -24,26 +25,40 @@
"validate": "npm run lint && npm run flow && npm run test"
},
"lint-staged": {
"*.{js,json,md}": ["prettier --write", "git add"]
"*.{js,json,md}": [
"prettier --write",
"git add"
]
},
"keywords": ["babel", "babel-plugin", "ast"],
"keywords": [
"babel",
"babel-plugin",
"ast"
],
"devDependencies": {
"all-contributors-cli": "^4.11.0",
"babel-cli": "^6.26.0",
"babel-jest": "^22.4.1",
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"all-contributors-cli": "^5.10.2",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.4.2",
"babel-log": "^2.0.0",
"babel-plugin-tester": "^5.0.0",
"babel-preset-env": "^1.6.1",
"babel-preset-flow": "^6.23.0",
"eslint": "^4.18.1",
"eslint-config-precure": "^2.4.0",
"flow-bin": "^0.66.0",
"husky": "^0.14.3",
"jest": "^22.4.2",
"lint-staged": "^7.0.0",
"prettier": "^1.10.2"
"babel-plugin-tester": "^5.5.2",
"eslint": "^5.12.1",
"eslint-config-precure": "^3.5.0",
"flow-bin": "^0.91.0",
"husky": "^1.3.1",
"jest": "^24.0.0",
"lint-staged": "^8.1.0",
"prettier": "^1.16.1"
},
"dependencies": {
"babel-looks-like": "^0.1.0"
},
"husky": {
"hooks": {
"pre-commit": "yarn validate && lint-staged"
}
}
}
Loading

0 comments on commit 4f5edfc

Please sign in to comment.