diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2016-07-29 22:18:58 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2016-08-02 21:16:20 +0300 |
commit | 6acf4a79467a5aea5bc1eb7d552d72366718635d (patch) | |
tree | 595a026a2f06f22dbc5ad23641c13edf1058dd7b /test/.eslintrc.json | |
parent | 308e4b534b8b8bddff85b6327481d0cee6f70a2a (diff) | |
download | jquery-6acf4a79467a5aea5bc1eb7d552d72366718635d.tar.gz jquery-6acf4a79467a5aea5bc1eb7d552d72366718635d.zip |
Build: .eslintrc -> .eslintrc.json
`.eslintrc` format is deprecated -
http://eslint.org/docs/user-guide/configuring#configuration-file-formats
Fixes gh-3248
Closes gh-3247
Diffstat (limited to 'test/.eslintrc.json')
-rw-r--r-- | test/.eslintrc.json | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/test/.eslintrc.json b/test/.eslintrc.json new file mode 100644 index 000000000..744de89ec --- /dev/null +++ b/test/.eslintrc.json @@ -0,0 +1,58 @@ +{ + "env": { + "browser": 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": { + "require": false, + "define": false, + "DOMParser": false, + "JSON": false, + "Promise": false, + "Symbol": false, + "QUnit": false, + "ajaxTest": false, + "testIframe": false, + "testIframeWithCallback": false, + "iframeCallback": true, + "createDashboardXML": false, + "createXMLFragment": false, + "moduleTeardown": false, + "testFoo": false, + "url": false, + "t": false, + "q": false, + "jQuery": true, + "sinon": true, + "amdDefined": true, + "fireNative": true, + "Globals": true, + "hasPHP": true, + "isLocal": true, + "supportjQuery": true, + "originaljQuery": true, + "$": true, + "original$": true, + "baseURL": true, + "externalHost": true + }, + "rules": { + // See https://github.com/eslint/eslint/issues/2342 + "no-unused-vars": "off", + + // Too much errors + "max-len": "off", + "brace-style": "off", + "key-spacing": "off", + "camelcase": "off", + + // Not really too much - waiting autofix features for these rules + "lines-around-comment": "off", + "dot-notation": "off" + } +} |