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: tools/eslint/README.md
+36-21Lines changed: 36 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,17 +31,49 @@ After that, you can run ESLint on any JavaScript file:
31
31
32
32
eslint test.js test2.js
33
33
34
+
## Configuration
35
+
36
+
After running `eslint --init`, you'll have a `.eslintrc` file in your directory. In it, you'll see some rules configured like this:
37
+
38
+
```json
39
+
{
40
+
"rules": {
41
+
"semi": [2, "always"],
42
+
"quotes": [2, "double"]
43
+
}
44
+
}
45
+
```
46
+
47
+
The names `"semi"` and `"quotes"` are the names of [rules](http://eslint.org/docs/rules) in ESLint. The number is the error level of the rule and can be one of the three values:
48
+
49
+
*`0` - turn the rule off
50
+
*`1` - turn the rule on as a warning (doesn't affect exit code)
51
+
*`2` - turn the rule on as an error (exit code will be 1)
52
+
53
+
The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the [configuration docs](http://eslint.org/docs/user-guide/configuring)).
54
+
55
+
## Sponsors
56
+
57
+
* Development is sponsored by [Box](https://box.com)
58
+
34
59
## Team
35
60
36
61
These folks keep the project moving and are resources for help:
37
62
38
63
* Nicholas C. Zakas ([@nzakas](https://github.com/nzakas)) - project lead
In addition, the following companies are using ESLint internally to validate their JavaScript:
80
-
81
-
*[Box](https://box.com)
82
-
*[CustomInk](https://customink.com)
83
-
*[Fitbit](http://www.fitbit.com)
84
-
*[HolidayCheck](http://holidaycheck.de)
85
-
*[the native web](http://www.thenativeweb.io)
86
-
87
102
### What about ECMAScript 6 support?
88
103
89
104
ESLint has full support for ECMAScript 6. By default, this support is off. You can enable ECMAScript 6 support through [configuration](http://eslint.org/docs/user-guide/configuring).
@@ -102,10 +117,10 @@ Join our [Mailing List](https://groups.google.com/group/eslint) or [Chatroom](ht
0 commit comments