Skip to content

Commit

Permalink
Add indent and vars rules
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-le-graverend committed Dec 14, 2015
1 parent 05d71d8 commit 41a0089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-bandlab",
"version": "1.1.0",
"version": "1.2.0",
"description": "BandLab's ESLint config, following our styleguide",
"main": "index.js",
"scripts": {
Expand All @@ -26,8 +26,8 @@
},
"homepage": "https://github.com/bandlab/eslint-config-bandlab",
"devDependencies": {
"eslint": "^1.10.1",
"eslint-plugin-angular": "^0.13.0"
"eslint": "^1.10.3",
"eslint-plugin-angular": "^0.15.0"
},
"peerDependencies": {
"eslint": ">=1.0.0"
Expand Down
2 changes: 2 additions & 0 deletions rules/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
'dot-notation': [2, { 'allowKeywords': true }],
'eqeqeq': 2,
'eol-last': 2,
'indent': [2, 2, {'SwitchCase': 1}],
'key-spacing': [2, { 'beforeColon': false, 'afterColon': true }],
'guard-for-in': 2,
'linebreak-style': [2, 'unix'],
Expand Down Expand Up @@ -52,6 +53,7 @@ module.exports = {
'no-useless-call': 0,
'no-void': 0,
'no-with': 2,
'one-var': [2, { 'var': 'always', 'let': 'never', 'const': 'never' }],
'quotes': [2, 'single'],
'semi': 2,
'semi-spacing': [2, { 'before': false, 'after': true }],
Expand Down

0 comments on commit 41a0089

Please sign in to comment.