forked from Financial-Times/origami-build-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
78 lines (69 loc) · 2 KB
/
.eslintrc.js
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
'use strict';
const origamiComponentConfig = require('./config/.eslintrc.js');
const merge = require('merge-deep');
const origamiServicesConfig = merge({},
origamiComponentConfig, {
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "script"
},
"env": {
"es6": true,
"browser": false,
"node": true
},
"rules": {
"no-console": "off",
"no-await-in-loop": "off",
"filenames/match-regex": [2, "^[a-z0-9-]+(\.test|(\.config(\.browserstack|\.bower|\.dev|\.chrome|\.prod)?))?$", true],
"import/no-dynamic-require": "error",
"import/no-unresolved": "error",
"import/named": "error",
"import/default": "error",
"import/namespace": "error",
"import/no-absolute-path": "error",
"import/no-webpack-loader-syntax": "error",
"import/export": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-extraneous-dependencies": "error",
"import/no-mutable-exports": "error",
"mocha/no-exclusive-tests": "error",
"mocha/handle-done-callback": "error",
"mocha/no-pending-tests": "error",
"mocha/no-return-and-callback": "error",
"mocha/no-sibling-hooks": "error",
"mocha/no-skipped-tests": "error",
"node/exports-style": "error",
"node/no-deprecated-api": "error",
"node/no-missing-require": "error",
"node/no-unpublished-bin": "error",
"node/no-unpublished-require": "error",
"node/no-unsupported-features": "error",
"node/shebang": "error",
"objects/no-object-properties-one-line": "error",
"objects/no-object-properties-first-line": "error",
"objects/no-object-properties-last-line": "error",
"objects/no-object-property-split": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error"
},
globals:
{
require: true,
module: true,
exports: true
},
plugins: [
'filenames',
'import',
'json',
'mocha',
'node',
'objects',
'promise'
]
}
);
module.exports = origamiServicesConfig;