File tree Expand file tree Collapse file tree 9 files changed +88
-36
lines changed Expand file tree Collapse file tree 9 files changed +88
-36
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "root" : true ,
3
+
4
+ "extends" : " jquery" ,
5
+
6
+ // Support: IE <=9 only, Android <=4.0 only
7
+ // The above browsers are failing a lot of tests in the ES5
8
+ // test suite at http://test262.ecmascript.org.
9
+ "parserOptions" : {
10
+ "ecmaVersion" : 3
11
+ },
12
+
13
+ // The browser env is not enabled on purpose so that code takes
14
+ // all browser-only globals from window instead of assuming
15
+ // they're available as globals. This makes it possible to use
16
+ // jQuery with tools like jsdom which provide a custom window
17
+ // implementation.
18
+ "env" : {},
19
+
20
+ "globals" : {
21
+ "window" : true ,
22
+ "jQuery" : true ,
23
+ "define" : true ,
24
+ "module" : true ,
25
+ "noGlobal" : true
26
+ },
27
+
28
+ "rules" : {
29
+ "strict" : [" error" , " function" ]
30
+ }
31
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "root" : true ,
3
+
4
+ "extends" : " jquery" ,
5
+
6
+ "parserOptions" : {
7
+ "ecmaVersion" : 5
8
+ },
9
+
10
+ "env" : {
11
+ "node" : true
12
+ }
13
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " eslint-config-jquery" ,
3
2
"root" : true ,
4
- "env" : {
5
- "node" : true
6
- }
3
+
4
+ "extends" : " ./.eslintrc-node.json"
7
5
}
Original file line number Diff line number Diff line change @@ -203,12 +203,21 @@ module.exports = function( grunt ) {
203
203
204
204
grunt . registerTask ( "lint" , [
205
205
"jsonlint" ,
206
- runIfNewNode ( "eslint" )
206
+
207
+ // Running the full eslint task without breaking it down to targets
208
+ // would run the dist target first which would point to errors in the built
209
+ // file, making it harder to fix them. We want to check the built file only
210
+ // if we already know the source files pass the linter.
211
+ runIfNewNode ( "eslint:dev" ) ,
212
+ runIfNewNode ( "eslint:dist" )
207
213
] ) ;
208
214
209
215
grunt . registerTask ( "lint:newer" , [
210
216
"newer:jsonlint" ,
211
- runIfNewNode ( "newer:eslint" )
217
+
218
+ // Don't replace it with just the task; see the above comment.
219
+ runIfNewNode ( "newer:eslint:dev" ) ,
220
+ runIfNewNode ( "newer:eslint:dist" )
212
221
] ) ;
213
222
214
223
grunt . registerTask ( "test:fast" , runIfNewNode ( "node_smoke_tests" ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../src/.eslintrc.json" ,
2
+ "root" : true ,
3
+
4
+ "extends" : " ../.eslintrc-browser.json" ,
5
+
3
6
"rules" : {
4
7
// That is okay for the built version
5
8
"no-multiple-empty-lines" : " off" ,
Original file line number Diff line number Diff line change 1
1
{
2
- // Support: IE <=9 only, Android <=4.0 only
3
- // The above browsers are failing a lot of tests in the ES5
4
- // test suite at http://test262.ecmascript.org.
5
- "parserOptions" : {
6
- "ecmaVersion" : 3
7
- },
8
- "globals" : {
9
- "window" : true ,
10
- "jQuery" : true ,
11
- "define" : true ,
12
- "module" : true ,
13
- "noGlobal" : true
14
- },
15
- "rules" : {
16
- "strict" : [" error" , " function" ]
17
- }
2
+ "root" : true ,
3
+
4
+ "extends" : " ../.eslintrc-browser.json"
18
5
}
Original file line number Diff line number Diff line change 1
1
{
2
+ "root" : true ,
3
+
4
+ "extends" : " ../.eslintrc-browser.json" ,
5
+
2
6
"env" : {
7
+
8
+ // In source the browser env is not enabled but unit tests rely on them
9
+ // too much and we don't run them in non-browser environments anyway.
3
10
"browser" : true
4
11
},
5
- // Support: IE <=9 only, Android <=4.0 only
6
- // The above browsers are failing a lot of tests in the ES5
7
- // test suite at http://test262.ecmascript.org.
8
- "parserOptions" : {
9
- "ecmaVersion" : 3
10
- },
12
+
11
13
"globals" : {
12
14
"require" : false ,
13
15
"define" : false ,
41
43
"baseURL" : true ,
42
44
"externalHost" : true
43
45
},
46
+
44
47
"rules" : {
45
48
// See https://github.com/eslint/eslint/issues/2342
46
49
"no-unused-vars" : " off" ,
47
50
48
- // Too much errors
51
+ // Too many errors
49
52
"max-len" : " off" ,
50
53
"brace-style" : " off" ,
51
54
"key-spacing" : " off" ,
52
55
"camelcase" : " off" ,
56
+ "strict" : " off" ,
53
57
54
- // Not really too much - waiting autofix features for these rules
58
+ // Not really too many - waiting for autofix features for these rules
55
59
"lines-around-comment" : " off" ,
56
60
"dot-notation" : " off"
57
61
}
Original file line number Diff line number Diff line change 1
1
{
2
+ "root" : true ,
3
+
4
+ "extends" : " ../../.eslintrc-node.json" ,
5
+
6
+ "parserOptions" : {
7
+ "ecmaVersion" : 2015
8
+ },
9
+
2
10
"env" : {
3
11
"es6" : true
4
- },
5
- "extends" : " ../../.eslintrc.json" ,
6
- "root" : true
12
+ }
7
13
}
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../../.eslintrc.json" ,
3
- "root" : true
2
+ "root" : true ,
3
+
4
+ "extends" : " ../../.eslintrc-node.json"
4
5
}
You can’t perform that action at this time.
0 commit comments