-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implememented a easy to use module for our eslint rules
Following the rules defined on bixlabs/documentation#7
- Loading branch information
0 parents
commit 5d91494
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Node.js | ||
*.log | ||
/node_modules | ||
*.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |