Skip to content

Commit

Permalink
[Dev Deps] update jscs, eslint, @ljharb/eslint-config, nsp
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 1, 2015
1 parent c38c355 commit 74af4f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
17 changes: 13 additions & 4 deletions .jscs.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@

"disallowIdentifierNames": [],

"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireCurlyBraces": {
"allExcept": [],
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
},

"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],

"disallowSpaceAfterKeywords": [],

"disallowSpaceBeforeComma": true,
"disallowSpaceAfterComma": false,
"disallowSpaceBeforeSemicolon": true,

"disallowNodeTypes": [
Expand All @@ -27,7 +31,7 @@
"WithStatement"
],

"requireObjectKeysOnNewLine": true,
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },

"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
Expand Down Expand Up @@ -76,7 +80,7 @@

"disallowMultipleLineStrings": true,

"requireDotNotation": true,
"requireDotNotation": { "allExcept": ["keywords"] },

"requireParenthesesAroundIIFE": true,

Expand Down Expand Up @@ -127,6 +131,11 @@

"disallowNestedTernaries": { "maxLevel": 1 },

"requireSpaceAfterComma": true
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
"requireAlignedMultilineParams": false,

"requireSpacesInGenerator": {
"afterStar": true
}
}

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"jscs": "jscs test/*.js *.js",
"eslint": "eslint test/*.js *.js",
"eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
"security": "nsp package"
"security": "nsp check"
},
"repository": {
"type": "git",
Expand All @@ -33,11 +33,11 @@
"devDependencies": {
"tape": "^4.2.2",
"covert": "^1.1.0",
"jscs": "^2.3.5",
"eslint": "^1.7.3",
"@ljharb/eslint-config": "^1.4.1",
"jscs": "^2.5.0",
"eslint": "^1.8.0",
"@ljharb/eslint-config": "^1.5.0",
"editorconfig-tools": "^0.1.1",
"nsp": "^1.1.0"
"nsp": "^2.0.0"
},
"testling": {
"files": "test/index.js",
Expand Down

0 comments on commit 74af4f3

Please sign in to comment.