forked from jquery/jquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use eslint pragmas, fix new errors, etc Closes jquerygh-3148
- Loading branch information
Showing
46 changed files
with
349 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,145 1,7 @@ | ||
{ | ||
"env": {}, | ||
"globals": {}, | ||
"rules": { | ||
"no-cond-assign": [ | ||
"error", | ||
"except-parens" | ||
], | ||
"curly": [ | ||
"error", | ||
"all" | ||
], | ||
"object-curly-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"computed-property-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"array-bracket-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"eqeqeq": [ | ||
"error", | ||
"smart" | ||
], | ||
|
||
// Shows errors where jshint wouldn't (see jshint "expr" rule) | ||
// clarifing this with eslint team | ||
// "no-unused-expressions": "error", | ||
"wrap-iife": [ | ||
"error", | ||
"inside" | ||
], | ||
"no-caller": "error", | ||
"quotes": [ | ||
"error", | ||
"double", | ||
"avoid-escape" | ||
], | ||
"no-undef": "error", | ||
"no-unused-vars": "error", | ||
"operator-linebreak": [ | ||
"error", | ||
"after" | ||
], | ||
"comma-style": [ | ||
"error", | ||
"last" | ||
], | ||
"camelcase": [ | ||
"error", | ||
{ | ||
"properties": "never" | ||
} | ||
], | ||
"dot-notation": [ | ||
"error", | ||
{ | ||
"allowPattern": "^[a-z] (_[a-z] ) $" | ||
} | ||
], | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 100, | ||
"ignoreComments": true | ||
} | ||
], | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-trailing-spaces": "error", | ||
"no-multi-str": "error", | ||
"comma-dangle": [ | ||
"error", | ||
"never" | ||
], | ||
"comma-spacing": [ | ||
"error", | ||
{ | ||
"before": false, | ||
"after": true | ||
} | ||
], | ||
"space-before-blocks": [ | ||
"error", | ||
"always" | ||
], | ||
"space-in-parens": [ | ||
"error", | ||
"always" | ||
], | ||
"keyword-spacing": [ | ||
2 | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"semi-spacing": [ | ||
"error", | ||
{ | ||
// Because of the `for ( ; ...)` requirement | ||
// "before": true, | ||
"after": true | ||
} | ||
], | ||
"space-infix-ops": "error", | ||
"eol-last": "error", | ||
"lines-around-comment": [ | ||
"error", | ||
{ | ||
"beforeLineComment": true | ||
} | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"no-with": "error", | ||
"brace-style": "error", | ||
"space-before-function-paren": [ | ||
"error", | ||
"never" | ||
], | ||
"no-loop-func": "error", | ||
"no-spaced-func": "error", | ||
"key-spacing": [ | ||
"error", | ||
{ | ||
"beforeColon": false, | ||
"afterColon": true | ||
} | ||
], | ||
"space-unary-ops": [ | ||
"error", | ||
{ | ||
"words": false, | ||
"nonwords": false | ||
} | ||
], | ||
"no-multiple-empty-lines": 2 | ||
"extends": "eslint-config-jquery", | ||
"root": true, | ||
"env": { | ||
"node": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 10,7 @@ | |
|
||
npm-debug.log | ||
|
||
/dist | ||
/dist/jquery* | ||
/node_modules | ||
|
||
/test/node_smoke_tests/lib/ensure_iterability.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,17 @@ | ||
{ | ||
"extends": "../src/.eslintrc", | ||
"rules": { | ||
// That is okay for built version | ||
"no-multiple-empty-lines": "off", | ||
|
||
// Because sizze is not compatible to jquery code style | ||
"lines-around-comment": "off", | ||
"space-in-parens": "off", | ||
"camelcase": "off", | ||
"computed-property-spacing": "off", | ||
"max-len": "off", | ||
"dot-notation": "off", | ||
"semi-spacing": "off", | ||
"brace-style": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 1,18 @@ | ||
{ | ||
"env": { | ||
"browser" | ||
}, | ||
"extends": "../.eslintrc", | ||
"root": true, | ||
"globals": { | ||
"window": true, | ||
"JSON": false, | ||
"jQuery": true, | ||
"define": true, | ||
"module": true, | ||
"noGlobal": true | ||
} | ||
// Support: IE <=9 only, Android <=4.0 only | ||
// The above browsers are failing a lot of tests in the ES5 | ||
// test suite at http://test262.ecmascript.org. | ||
"parserOptions": { | ||
"ecmaVersion": 3 | ||
}, | ||
"globals": { | ||
"window": true, | ||
"jQuery": true, | ||
"define": true, | ||
"module": true, | ||
"noGlobal": true | ||
}, | ||
"rules": { | ||
"strict": ["error", "function"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.