mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
707 B
23 lines
707 B
10 years ago
|
{
|
||
|
"env": {
|
||
|
"node": true
|
||
|
},
|
||
|
"rules": {
|
||
|
// Disallow semi-colons, unless needed to disambiguate statement
|
||
|
"semi": [2, "never"],
|
||
|
// Require strings to use single quotes
|
||
|
"quotes": [2, "single"],
|
||
|
// Require curly braces for all control statements
|
||
|
"curly": 2,
|
||
|
// Disallow using variables and functions before they've been defined
|
||
|
"no-use-before-define": 2,
|
||
|
// Allow any case for variable naming
|
||
|
"camelcase": 0,
|
||
|
// Disallow unused variables, except as function arguments
|
||
|
"no-unused-vars": [2, {"args":"none"}],
|
||
|
// Allow leading underscores for method names
|
||
|
// REASON: we use underscores to denote private methods
|
||
|
"no-underscore-dangle": 0
|
||
|
}
|
||
|
}
|