Skip to content

Commit

Permalink
eslint@1.2.0 and add some new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 21, 2015
1 parent 0c72d6f commit 8b16afc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion esnext.js
Expand Up @@ -30,8 +30,10 @@ def.ecmaFeatures = {
def.env.es6 = true;
def.rules['no-var'] = 2;
def.rules['object-shorthand'] = [2, 'always'];
def.rules['prefer-arrow-callback'] = 2;
def.rules['prefer-const'] = 2;
def.rules['prefer-reflect'] = 2;
def.rules['prefer-reflect'] = [2, {exceptions: ['delete']}];
def.rules['prefer-template'] = 2;
def.rules['prefer-spread'] = 2;

module.exports = def;
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -170,6 +170,7 @@ module.exports = {
'generator-star-spacing': [2, 'before'],
'no-class-assign': 2,
'no-const-assign': 2,
'no-dupe-class-members': 2,
'no-this-before-super': 2
}
};
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -51,11 +51,11 @@
"devDependencies": {
"ava": "0.0.4",
"clear-require": "^1.0.1",
"eslint": "^1.1.0",
"eslint": "^1.2.0",
"is-plain-obj": "^1.0.0",
"temp-write": "^1.1.2"
},
"peerDependencies": {
"eslint": ">=1.1.0"
"eslint": ">=1.2.0"
}
}

0 comments on commit 8b16afc

Please sign in to comment.