Skip to content

Commit

Permalink
add eslint configs and add em to npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
okv committed Jan 8, 2020
1 parent 34c66bb commit b201964
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
lib/migrationTemplate.js
35 changes: 35 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
},
"rules": {
"comma-dangle": ["error", "never"],
"object-curly-spacing": ["error", "never"],
"indent": ["error", "tab"],
"no-tabs": 0,
"arrow-body-style": ["off"],
"arrow-parens": ["error", "always"],
"no-underscore-dangle": ["off"],
"camelcase": ["error", {
"properties": "never"
}],
"max-len": ["error", {
"code": 80,
"tabWidth": 1,
"ignoreTemplateLiterals": true
}],
"function-paren-newline": ["error", "consistent"],
"class-methods-use-this": [0],
"global-require": ["off"],
"prefer-destructuring": ["off"],
"strict": ["error", "global"],
"no-plusplus": ["error", {"allowForLoopAfterthoughts": true}],
"no-else-return": ["off"],
"no-lonely-if": ["off"],
"no-param-reassign": ["off"],
"consistent-return": ["off"],
"prefer-rest-params": ["off"]
}
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ coverage/
.npmrc
.travis.yml
.nycrc
.eslintignore
.eslintrc.json

0 comments on commit b201964

Please sign in to comment.