forked from adobe/alloy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 1.24 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
module.exports = {
extends: ["airbnb-base", "prettier", "plugin:testcafe/recommended"],
env: {
browser: true,
node: true,
jasmine: true
},
plugins: ["ban", "prettier", "testcafe"],
rules: {
"ban/ban": [
"error",
{ name: ["describe", "only"], message: "don't focus tests" },
{ name: "fdescribe", message: "don't focus tests" },
{ name: ["it", "only"], message: "don't focus tests" },
{ name: "fit", message: "don't focus tests" },
{ name: ["fixture", "only"], message: "don't focus tests" },
{ name: ["test", "only"], message: "don't focus tests" },
{ name: "ftest", message: "don't focus tests" }
],
"prettier/prettier": "error",
"no-param-reassign": ["error", { props: false }],
"func-style": "error",
// Turning this off allows us to import devDependencies in our build tools.
// We enable the rule in src/.eslintrc.js since that's the only place we
// want to disallow importing extraneous dependencies.
"import/no-extraneous-dependencies": "off",
"prefer-destructuring": "off",
"import/prefer-default-export": "off"
},
globals: {
expectAsync: "readonly", // newer jasmine feature
spyOnAllFunctions: "readonly" // newer jasmine feature
}
};