Skip to content

Commit

Permalink
chore: add lint script and tune up rc
Browse files Browse the repository at this point in the history
  • Loading branch information
qfox committed Jul 26, 2016
1 parent 798a4ee commit e42277d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .eslintrc
Expand Up @@ -2,6 +2,7 @@ parserOptions:
ecmaVersion: 6

env:
es6: true
node: true
mocha: true

Expand All @@ -11,7 +12,4 @@ globals:
bench: false
suite: false

extends: pedant

rules:
no-shadow: off
extends: pedant/es6
2 changes: 1 addition & 1 deletion lib/normalize.js
Expand Up @@ -19,7 +19,7 @@ module.exports = function (decl) {
if (!decl) { return []; }
if (!Array.isArray(decl)) { decl = [decl]; }

for (var i = 0; i < decl.length; ++i) {
for (let i = 0; i < decl.length; ++i) {
const entity = decl[i];
const block = entity.name;
const mods = entity.mods;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -36,7 +36,8 @@
"nyc": "^7.0.0"
},
"scripts": {
"pretest": "eslint . && jscs .",
"lint": "eslint . && jscs .",
"pretest": "npm run lint",
"test": "nyc ava",
"bench": "matcha benchmark/*.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
Expand Down

0 comments on commit e42277d

Please sign in to comment.