From 5d9149458ecf40e3e5df8351cc12208f4f071373 Mon Sep 17 00:00:00 2001 From: Julian reyes Escrigas Date: Sun, 28 Jan 2018 20:49:10 -0500 Subject: [PATCH] implememented a easy to use module for our eslint rules Following the rules defined on https://github.com/bixlabs/documentation/issues/7 --- .gitignore | 4 ++++ index.js | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 .gitignore create mode 100644 index.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b1433d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# Node.js +*.log +/node_modules +*.lock \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..e3bdc5d --- /dev/null +++ b/index.js @@ -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" + ] + } +}; diff --git a/package.json b/package.json new file mode 100644 index 0000000..afc693c --- /dev/null +++ b/package.json @@ -0,0 +1,47 @@ +{ + "name": "eslint-config-bixlabs", + "version": "1.0.0", + "main": "index.js", + "repository": "git@github.com:bixlabs/eslint-config-bixlabs.git", + "author": { + "name": "Toni Cabrera", + "email": "acabrera@bixlabs.com", + "url": "https://github.com/acabreragnz" + }, + "contributors": [ + { + "name": "Julian Reyes", + "email": "jreyes@bixlabs.com", + "url": "https://github.com/rkmax" + }, + { + "name": "Joseph Arrieta", + "email": "jarrieta@bixlabs.com", + "url": "https://github.com/jac1013" + }, + { + "name": "Edwin Vasquez", + "email": "edwinvasquez50@gmail.com", + "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" + } +}