forked from benmj/password-strength
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
18 lines (18 loc) · 824 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"root": true,
"extends": "airbnb/legacy",
"rules": {
"indent": [2, 4], //our indentation
"comma-dangle": 0, //don't require dangling comma
"strict": [2, "global"], //use the global strict keyword
"no-else-return": 0, //allow return in else blocks
"func-names": 0, //we can use a custom rule for func names
"spaced-comment": 0, //don't force a space after // in a comment
"id-length": [2, {"min": 2, "properties": "never", "exceptions": ["$", "_", "i", "j", "k", "x", "y"]}],
"one-var": 0, //we don't use one var keyword for all defs
"no-throw-literal": 0, //we sometimes throw strings, which is ok
"radix": 0, //don't force a radix
"eol-last": 1, //warn when file doesn't end with newline
"no-multi-spaces": 0 //we do .constant('blah', require('blah')) a lot
}
}