Skip to content

Commit

Permalink
implememented a easy to use module for our eslint rules
Browse files Browse the repository at this point in the history
Following the rules defined on bixlabs/documentation#7
  • Loading branch information
rkmax committed Jan 29, 2018
0 parents commit 5d91494
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Node.js
*.log
/node_modules
*.lock
53 changes: 53 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module.exports = {
"extends": "standard",
"rules": {
"comma-dangle": [
"error",
"never"
],
"max-len": [
"error",
{
"code": 120,
"tabWidth": 2,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
"ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/"
}
],
"no-param-reassign": [
"error", {
"props": false
}
],
"no-trailing-spaces": [
"error", {
"skipBlankLines": true
}
],
"no-unused-expressions": [
"error", {
"allowTernary": true
}
],
"no-use-before-define": [
"error", {
"functions": false,
"classes": false
}
],
"object-curly-spacing": [
"error",
"never"
],
"semi": [
"error",
"always"
],
"space-before-function-paren": [
"error",
"never"
]
}
};
47 changes: 47 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "eslint-config-bixlabs",
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:bixlabs/eslint-config-bixlabs.git",
"author": {
"name": "Toni Cabrera",
"email": "[email protected]",
"url": "https://github.com/acabreragnz"
},
"contributors": [
{
"name": "Julian Reyes",
"email": "[email protected]",
"url": "https://github.com/rkmax"
},
{
"name": "Joseph Arrieta",
"email": "[email protected]",
"url": "https://github.com/jac1013"
},
{
"name": "Edwin Vasquez",
"email": "[email protected]",
"url": "https://github.com/ednjv"
}
],
"license": "MIT",
"devDependencies": {
"eslint": "^4.16.0",
"eslint-config-standard": "^11.0.0-beta.0",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-standard": "^3.0.1"
},
"peerDependencies": {
"eslint": ">=4.16.0",
"eslint-config-standard": ">=11.0.0-beta.0",
"eslint-plugin-babel": ">=4.1.2",
"eslint-plugin-import": ">=2.8.0",
"eslint-plugin-node": ">=5.2.1",
"eslint-plugin-promise": ">=3.6.0",
"eslint-plugin-standard": ">=3.0.1"
}
}

0 comments on commit 5d91494

Please sign in to comment.