You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-24Lines changed: 4 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,18 +43,14 @@ Or use the plugin API to do things like:
43
43
```javascript
44
44
gulp.src(['**/*.js','!node_modules/**'])
45
45
.pipe(eslint({
46
-
extends:'eslint:recommended',
47
-
parserOptions: {
48
-
sourceType:'module'
49
-
},
50
46
rules: {
51
47
'my-custom-rule':1,
52
48
'strict':2
53
49
},
54
-
globals:{
55
-
'jQuery':false,
56
-
'$':true
57
-
},
50
+
globals:[
51
+
'jQuery',
52
+
'$'
53
+
],
58
54
envs: [
59
55
'browser'
60
56
]
@@ -128,26 +124,12 @@ Type: `Array`
128
124
129
125
Specify a list of [environments](http://eslint.org/docs/user-guide/configuring#specifying-environments) to be applied.
130
126
131
-
Type: `Object`
132
-
133
-
Specify [environments](http://eslint.org/docs/user-guide/configuring#specifying-environments). Each key must match an existing env definition, and the key determines whether the env’s rules are applied (`true`) or not (`false`).
134
-
135
-
Note that setting an env to `false` will not override an env that is set to `true` in the _.eslintrc_ being extended.
136
-
137
-
Alias: `env`*(deprecated)*
138
-
139
127
#### options.rulePaths
140
128
141
129
Type: `Array`
142
130
143
131
This option allows you to specify additional directories from which to load rules files. This is useful when you have custom rules that aren't suitable for being bundled with ESLint. This option works much like the ESLint CLI's [rulesdir option](http://eslint.org/docs/user-guide/command-line-interface#rulesdir).
144
132
145
-
Type: `String`*(deprecated)*
146
-
147
-
Load a single rules file.
148
-
149
-
Alias: `rulesdir`*(deprecated)*
150
-
151
133
#### options.configFile
152
134
153
135
Type: `String`
@@ -166,8 +148,6 @@ Type: `Boolean`
166
148
167
149
When `false`, ESLint will not load [.eslintrc files](http://eslint.org/docs/user-guide/configuring#using-configuration-files).
0 commit comments