Skip to content

Commit

Permalink
Update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 3, 2015
1 parent 606f77c commit 360ef45
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
34 changes: 24 additions & 10 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,49 @@

"rules": {
"accessor-pairs": [2, { getWithoutSet: false, setWithoutGet: true }],
"array-bracket-spacing": [2, "never", {
"singleValue": false,
"objectsInArrays": false,
"arraysInArrays": false
}],
"block-scoped-var": [0],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [0],
"comma-dangle": [2, "never"],
"comma-spacing": [2],
"comma-style": [2, "last"],
"complexity": [0, 11],
"complexity": [2, 11],
"computed-property-spacing": [2, "never"],
"consistent-return": [2],
"consistent-this": [0, "that"],
"constructor-super": [2],
"curly": [2, "all"],
"default-case": [2],
"dot-notation": [2, { "allowKeywords": false }],
"eol-last": [2],
"eqeqeq": [2],
"func-names": [0],
"func-style": [2, "expression"],
"generator-star-spacing": [2, "after"],
"generator-star-spacing": [2, { "before": false, "after": true }],
"global-strict": [0, "never"],
"guard-for-in": [0],
"handle-callback-err": [0],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"linebreak-style": [2, "unix"],
"lines-around-comment": [2, { "beforeBlockComment": false, "afterBlockComment": false, "beforeLineComment": false, "beforeLineComment": false }],
"lines-around-comment": [2, {
"beforeBlockComment": false,
"afterBlockComment": false,
"beforeLineComment": false,
"beforeLineComment": false,
"allowBlockStart": true,
"allowBlockEnd": true
}],
"quotes": [2, "single", "avoid-escape"],
"max-depth": [0, 4],
"max-depth": [2, 4],
"max-len": [0, 80, 4],
"max-nested-callbacks": [0, 2],
"max-params": [0, 3],
"max-statements": [0, 10],
"max-nested-callbacks": [2, 5],
"max-params": [2, 3],
"max-statements": [2, 19],
"new-parens": [2],
"new-cap": [2, { "capIsNewExceptions": ["Template"] }],
"newline-after-var": [0],
Expand Down Expand Up @@ -70,7 +83,6 @@
"no-extra-boolean-cast": [2],
"no-extra-parens": [0],
"no-extra-semi": [2],
"no-extra-strict": [2],
"no-fallthrough": [2],
"no-floating-decimal": [2],
"no-func-assign": [2],
Expand Down Expand Up @@ -111,7 +123,7 @@
"no-regex-spaces": [2],
"no-reserved-keys": [2],
"no-restricted-modules": [0],
"no-return-assign": [2],
"no-return-assign": [2, "always"],
"no-script-url": [2],
"no-self-compare": [0],
"no-sequences": [2],
Expand All @@ -122,12 +134,14 @@
"no-sparse-arrays": [2],
"no-sync": [0],
"no-ternary": [0],
"no-this-before-super": [2],
"no-throw-literal": [2],
"no-trailing-spaces": [2, { "skipBlankLines": false }],
"no-undef": [2],
"no-undef-init": [2],
"no-undefined": [0],
"no-underscore-dangle": [2],
"no-unexpected-multiline": [2],
"no-unneeded-ternary": [2],
"no-unreachable": [2],
"no-unused-expressions": [2],
Expand Down Expand Up @@ -166,7 +180,7 @@
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always"],
"spaced-line-comment": [0, "always"],
"strict": [0],
"strict": [2, "global"],
"use-isnan": [2],
"valid-jsdoc": [0],
"valid-typeof": [2],
Expand Down
3 changes: 2 additions & 1 deletion lib/htmlEscape.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use strict';

/*
from hogan https://github.com/twitter/hogan.js/blob/master/lib/template.js#L317-L327
*/
module.exports = (function () {
'use strict';

var rAmp = /&/g;
var rLt = /</g;
Expand Down
2 changes: 2 additions & 0 deletions lib/tag.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var htmlEscape = require('./htmlEscape');

// generates a string for common HTML tag attributes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"testling": "^1.7.1",
"covert": "^1.1.0",
"jscs": "^1.13.1",
"eslint": "^0.23.0"
"eslint": "^0.24.0"
},
"license": "MIT",
"licenses": [
Expand Down

0 comments on commit 360ef45

Please sign in to comment.