Add linters and pre-commit hook

This commit is contained in:
Pranav Raj Sreepuram
2019-08-21 10:27:57 +05:30
parent d8702aa8aa
commit 6e4fec2b55
9 changed files with 2898 additions and 70 deletions

37
.eslintrc.js Normal file
View File

@@ -0,0 +1,37 @@
module.exports = {
"extends": ["airbnb/base", "prettier"],
"plugins": [
"prettier", "babel", "html"
],
"rules": {
"prettier/prettier": ["error"],
"camelcase": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/anchor-is-valid": "off",
'import/no-unresolved': "off",
},
"settings": {
"import/resolver": {
"webpack": {
"config": "config/webpack/resolve.js"
}
}
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"parser": "babel-eslint",
"globals": {
"__WEBPACK_ENV__": true,
"__PUSHER__": true,
"__FB_APP_ID__": true
}
}