aboutsummaryrefslogtreecommitdiffstats
path: root/src/.eslintrc
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-05-10 12:12:28 +0300
committerOleg Gaidarenko <markelog@gmail.com>2016-06-11 10:41:33 +0300
commit58c6ca9822afa42d3b40cca8edb0abe90a2bcb34 (patch)
treeeb8c4c93031b4f0d88ffe5d58af7d58337c7b116 /src/.eslintrc
parenta4474c9a0025095f82d734a9d7230eace2f08ef8 (diff)
downloadjquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.tar.gz
jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.zip
Build: ESLint details
Use eslint pragmas, fix new errors, etc Closes gh-3148
Diffstat (limited to 'src/.eslintrc')
-rw-r--r--src/.eslintrc29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/.eslintrc b/src/.eslintrc
index ef090331f..dbf16c584 100644
--- a/src/.eslintrc
+++ b/src/.eslintrc
@@ -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"]
+ }
}