Skip to content

Commit

Permalink
Merge 52c966e into 503272a
Browse files Browse the repository at this point in the history
  • Loading branch information
homer0 committed Jul 21, 2019
2 parents 503272a + 52c966e commit 7542079
Show file tree
Hide file tree
Showing 9 changed files with 1,828 additions and 1,269 deletions.
14 changes: 7 additions & 7 deletions .eslintrc
@@ -1,16 +1,16 @@
{
"extends": "airbnb-base",
"rules": {
indent: ['error', 2, {
MemberExpression: 0,
"indent": ["error", 2, {
"MemberExpression": 0
}],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"comma-dangle": ["error", {
arrays: "always-multiline",
objects: "always-multiline",
imports: "always-multiline",
exports: "always-multiline",
functions: "never",
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"class-methods-use-this": "off",
"import/no-unresolved": "off",
Expand Down
10 changes: 1 addition & 9 deletions README.md
Expand Up @@ -79,18 +79,10 @@ This only works on classes and regular functions (no arrow). The idea was for it

## Development

Before doing anything, install the repository hooks:

```bash
# You can either use npm or yarn, it doesn't matter
yarn run hooks
```

### NPM/Yarn Tasks

| Task | Description |
|----------------------|-------------------------------------|
| `yarn run hooks` | Install the GIT repository hooks. |
| `yarn test` | Run the project unit tests. |
| `yarn run lint` | Lint the modified files. |
| `yarn run lint:full` | Lint the project code. |
Expand All @@ -111,4 +103,4 @@ I use [ESDoc](http://esdoc.org) to generate HTML documentation for the project.

### To-Dos

I use `@todo` comments to write all the pending improvements and fixes, and [Leasot](https://yarnpkg.com/en/package/leasot) to generate a report. The script that runs it is on `./utils/scripts/todo`.
I use `@todo` comments to write all the pending improvements and fixes, and [Leasot](https://yarnpkg.com/en/package/leasot) to generate a report. The script that runs it is on `./utils/scripts/todo`.
36 changes: 21 additions & 15 deletions package.json
Expand Up @@ -7,31 +7,37 @@
"author": "Leonardo Apiwan (@homer0) <me@homer0.com>",
"license": "MIT",
"dependencies": {
"@babel/types": "^7.3.2"
"@babel/types": "^7.5.5"
},
"devDependencies": {
"wootils": "^2.0.0",
"eslint": "5.13.0",
"eslint-config-airbnb-base": "13.1.0",
"eslint-plugin-import": "2.16.0",
"eslint-plugin-node": "8.0.1",
"jest-ex": "^6.0.0",
"jest-cli": "^24.1.0",
"jasmine-expect": "4.0.1",
"esdoc": "1.1.0",
"esdoc-standard-plugin": "1.0.0",
"esdoc-node": "1.0.4",
"leasot": "7.2.0",
"coveralls": "3.0.2"
"wootils": "^2.5.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-node": "^9.1.0",
"jest-ex": "^6.1.1",
"jest-cli": "^24.8.0",
"jasmine-expect": "^4.0.2",
"esdoc": "^1.1.0",
"esdoc-standard-plugin": "^1.0.0",
"esdoc-node": "^1.0.4",
"leasot": "^8.0.0",
"coveralls": "^3.0.5",
"husky": "^3.0.1"
},
"engine-strict": true,
"engines": {
"node": ">=8.0.0",
"npm": ">=3.0.0"
},
"main": "src/index.js",
"husky": {
"hooks": {
"pre-commit": "./utils/hooks/pre-commit",
"post-merge": "./utils/hooks/post-merge"
}
},
"scripts": {
"hooks": "./utils/hooks/install",
"test": "./utils/scripts/test",
"lint": "./utils/scripts/lint",
"lint:full": "./utils/scripts/lint-full",
Expand Down
10 changes: 0 additions & 10 deletions utils/hooks/install

This file was deleted.

7 changes: 7 additions & 0 deletions utils/hooks/post-merge
@@ -0,0 +1,7 @@
#!/bin/bash -ex

if hash yarn 2>/dev/null; then
yarn
else
npm install
fi
3 changes: 0 additions & 3 deletions utils/hooks/post-merge.local

This file was deleted.

9 changes: 9 additions & 0 deletions utils/hooks/pre-commit
@@ -0,0 +1,9 @@
#!/bin/bash -e

if hash yarn 2>/dev/null; then
yarn run lint
yarn test
else
npm run lint
npm test
fi
4 changes: 0 additions & 4 deletions utils/hooks/pre-commit.local

This file was deleted.

0 comments on commit 7542079

Please sign in to comment.