chore: run eslint --fix against commits (#1912)

This commit is contained in:
Pat Cavit 2017-07-22 13:12:01 -07:00 committed by GitHub
parent bee11087af
commit 45b69d4aca
3 changed files with 1582 additions and 580 deletions

View file

@ -13,7 +13,8 @@ cache:
# Custom install step so the travis-only stuff doesn't need to be in package.json # Custom install step so the travis-only stuff doesn't need to be in package.json
install: install:
- npm install - npm install
- npm install --no-save @alrra/travis-scripts@^3.0.1 gh-pages@^0.12.0 # This is to prevent lint-staged/prettier from running on the bundles
- npm rm husky
# Run danger, build bundles (so they're always up to date) # Run danger, build bundles (so they're always up to date)
before_script: before_script:

2147
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -11,7 +11,7 @@
"build": "npm run build-browser & npm run build-min", "build": "npm run build-browser & npm run build-min",
"build-browser": "node bundler/cli browser.js -output mithril.js", "build-browser": "node bundler/cli browser.js -output mithril.js",
"build-min": "node bundler/cli browser.js -output mithril.min.js -minify", "build-min": "node bundler/cli browser.js -output mithril.min.js -minify",
"danger": "danger", "precommit": "lint-staged",
"lintdocs": "node docs/lint", "lintdocs": "node docs/lint",
"gendocs": "node docs/generate", "gendocs": "node docs/generate",
"lint": "eslint . || true", "lint": "eslint . || true",
@ -26,16 +26,26 @@
"postversion": "git push --follow-tags" "postversion": "git push --follow-tags"
}, },
"devDependencies": { "devDependencies": {
"@alrra/travis-scripts": "^3.0.1",
"benchmark": "^2.1.4", "benchmark": "^2.1.4",
"danger": "^1.0.0", "danger": "^1.0.0",
"dedent": "^0.7.0", "dedent": "^0.7.0",
"eslint": "^3.19.0", "eslint": "^3.19.0",
"gh-pages": "^0.12.0",
"husky": "^0.14.3",
"istanbul": "^0.4.5", "istanbul": "^0.4.5",
"locater": "^1.3.0", "locater": "^1.3.0",
"marked": "^0.3.6", "marked": "^0.3.6",
"lint-staged": "^4.0.2",
"pinpoint": "^1.1.0" "pinpoint": "^1.1.0"
}, },
"bin": { "bin": {
"ospec": "./ospec/bin/ospec" "ospec": "./ospec/bin/ospec"
},
"lint-staged": {
"*.js": [
"eslint . --fix",
"git add"
]
} }
} }