forked from KartulUdus/PoracleJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (44 loc) · 2.39 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"parserOptions": { "ecmaVersion": 8 },
"extends": "airbnb-base",
"rules": {
// use tabs, not spaces, and in switch statements the case statement should indent again (the default is to be level with the switch)
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
// if you want to put a blank line at the beginning or end of a block, knock yourself out
"padded-blocks": [ "off" ],
// I like tabs. besides, we set indent to require them
"no-tabs": [ "off" ],
// seriously, who cares if there's a blank line at the end of the file or not?
"eol-last": [ "off" ],
// sometimes having a long single line makes sense, this also seems buggy and inconsistent, so we ignore it
"max-len": [ "off" ],
// semicolons at line ends make code less readable and are generally useless
"semi": [ "error", "never" ],
// particularly with callbacks we may not use all the args, but we still like knowing they're available
"no-unused-vars": [ "error", { "vars": "all", "args": "none", "ignoreRestSiblings": true } ],
// we don't want else to be on the same line as the closing } of an if statement
"brace-style": [ "error", "stroustrup" ],
// if you wish to call all your errors err, go ahead
"no-shadow": ["error", { "allow": ["err"] }],
// don't use .call or .apply when you don't need to
"no-useless-call": [ "warn" ],
// forgetting to return after calling a callback is an easy mistake to make, so we'll warn you if you are
"callback-return": [ "warn" ],
// to keep the cache continuous, the cache object has a dandling _ and needs it
"no-underscore-dangle": 0,
// because Travis-ci does not have config files, therefore this rule cannot error
"import/no-unresolved": 0,
// as I some modules are bundled with nuxt, this rule bad
"import/no-extraneous-dependencies": 0,
// this rule collides with vuex store strict mode, so it will be disabled
"import/prefer-default-export": 0,
// something used by nuxt and needed to run statistics page
"no-restricted-syntax": 0,
// reassigning and returning variables bad; however, \everything\ operator still requires it
"no-param-reassign": 0,
// dynamically imported discord commands don't have a return value after exports.run = () => ...
"consistent-return": 0,
// This is needed for both transation files and command modulules
"import/no-dynamic-require": 0
}
}