-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
31 lines (31 loc) · 892 Bytes
/
.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
module.exports = {
parser: "babel-eslint",
extends: ["airbnb", "plugin:prettier/recommended", "plugin:jest/recommended"],
plugins: ["prettier", "cypress", "graphql-next", "jest"],
env: {
browser: true
},
rules: {
"prettier/prettier": "error",
"import/prefer-default-export": 0,
"graphql-next/template-strings": ["error"],
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 1,
"jsx-a11y/anchor-is-valid": [
"error",
{
components: ["Link"],
specialLink: ["to"]
}
],
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-for": 0,
"jest/no-hooks": 2,
"jest/no-test-prefixes": 2,
"jest/prefer-to-be-null": 2,
"jest/prefer-to-be-undefined": 2,
"jest/valid-expect": 2,
"jest/valid-expect-in-promise": 2
}
};