Setup eslint, prettier & husky (#72)

This commit is contained in:
Dan Mindru 2019-09-03 21:20:18 +02:00 committed by GitHub
parent 9c2e12104c
commit 54ba657926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1424 additions and 14 deletions

16
.eslintrc.js Normal file
View File

@ -0,0 +1,16 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true
},
extends: "standard",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaVersion: 2018
},
rules: {}
};

4
.prettierrc Normal file
View File

@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}

1385
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,14 @@
"url": "https://github.com/danmindru/responsive-html-email-signature/issues"
},
"homepage": "https://github.com/danmindru/responsive-html-email-signature#readme",
"scripts": {
"start": "gulp",
"once": "gulp run-pipeline",
"deploy": "npm run test && cp -r dist demo && git push origin `git subtree split --prefix demo develop`:gh-pages --force",
"test": "npm run once && node ./node_modules/.bin/ava",
"format": "prettier {tasks,tests}/**/*.js gulpfile.js .eslintrc.js --write",
"lint": "eslint ./**/*.js gulpfile.js --fix"
},
"dependencies": {
"autoprefixer": "^9.6.1",
"del": "^5.1.0",
@ -46,16 +54,25 @@
"resolutions": {
"graceful-fs": "^4.1.15"
},
"scripts": {
"start": "gulp",
"once": "gulp run-pipeline",
"deploy": "npm run test && cp -r dist demo && git push origin `git subtree split --prefix demo develop`:gh-pages --force",
"test": "npm run once && node ./node_modules/.bin/ava"
},
"devDependencies": {
"ava": "^2.3.0"
"ava": "^2.3.0",
"eslint": "^6.3.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^9.2.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^3.0.5",
"prettier": "^1.18.2",
"pretty-quick": "^1.11.1"
},
"browserslist": [
"last 5 versions"
]
],
"husky": {
"hooks": {
"pre-push": "npm test",
"pre-commit": "npm run lint && pretty-quick --staged"
}
}
}