-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc
41 lines (41 loc) · 1.08 KB
/
.eslintrc
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
{
"extends": ["airbnb", "airbnb/hooks", "prettier"],
"root": true,
"rules": {
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"import/extensions": [0],
"react/jsx-filename-extension": [0],
"react/jsx-fragments": [2, "element"],
"react/state-in-constructor": [0],
"react/jsx-props-no-spreading": [0],
"react/function-component-definition": [0],
"react/require-default-props": [0],
"no-restricted-syntax": 0,
"import/prefer-default-export": 0
},
"env": {
"browser": true,
"jest": true
},
"settings": {
"import/resolver": {
"alias": {
"map": [
[
"@financial-times/g-components/styles.css",
"@financial-times/g-components/dist/styles.css"
],
[
"@ft-interactive/vs-components$",
"node-modules/@ft-interactive/vs-components/dist/vs-components.js"
]
],
"extensions": [".ts", ".js", ".jsx", ".json", ".scss"]
}
}
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}