forked from CRUKorg/react-exercise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (33 loc) · 861 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
32
33
module.exports = {
extends: ["@cruk", "next/core-web-vitals"],
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
rules: {
// It's ok to have dev dependencies imported for test files
"import/no-extraneous-dependencies": [
2,
{
devDependencies: [
"**/*.cypress.tsx",
"**/*.stories.tsx",
"**/*.test.tsx",
],
},
],
"react/function-component-definition": [
2,
{
namedComponents: ["arrow-function"],
},
],
"jest/expect-expect": [0],
"jest/valid-expect": [0],
"import/no-named-as-default": [0],
"react/require-default-props": [0],
"react/jsx-no-useless-fragment": [0],
},
ignorePatterns: ["cypress", "*.config.js", "webpack.*.js", "node_modules"],
};