UNPKG

1.5 kBJSONView Raw
1// Codefresh Code Style - eslint ruleset
2// Based on AirBnB.
3//
4// More details: https://codefresh-io.atlassian.net/wiki/display/COD/Code+Style+Guide
5{
6
7 "extends": "airbnb",
8 "parserOptions": {
9 "ecmaVersion": 6,
10 "sourceType": "script",
11 "ecmaFeatures": {
12 "jsx": true
13 }
14 },
15
16 "env": {
17 "node": true,
18 "mocha": true
19 },
20
21 "plugins": [
22 "chai-friendly",
23 "import",
24 "mocha",
25 "node",
26 "promise"
27 ],
28
29 "rules": {
30 "arrow-body-style": "off",
31 "comma-dangle": [ "error", "only-multiline" ],
32 "func-names": [ "error", "never" ],
33 "guard-for-in": "error",
34 "indent": [ "error", 4, { "SwitchCase": 1, "VariableDeclarator": 1 } ],
35 "new-cap": "warn",
36 "no-else-return": "off",
37 "no-console": "off",
38 "no-param-reassign": "off",
39 "no-underscore-dangle": "off",
40 "no-unused-expressions": "off",
41 "padded-blocks": "off",
42 "quote-props": [ "error", "consistent" ],
43 "quotes": [ "error", "single", { "allowTemplateLiterals": true } ],
44 "strict": [ "error", "global" ],
45
46 "chai-friendly/no-unused-expressions": "error",
47
48 "import/no-extraneous-dependencies": [ "error", { "devDependencies": true } ],
49
50 "mocha/no-exclusive-tests": "warn",
51
52 "node/no-deprecated-api": [ "warn", { "ignoreModuleItems": [ "domain" ] } ],
53 "node/no-unsupported-features": "error",
54 "node/process-exit-as-throw": "error",
55 "node/shebang": "warn",
56
57 "promise/catch-or-return": [ "warn", { "allowThen": true } ]
58 }
59}