-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
29 lines (29 loc) · 1 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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
"project": "./tsconfig.json"
},
extends: ['airbnb', 'airbnb/hooks', 'airbnb-typescript'],
rules: {
quotes: "off",
"@typescript-eslint/quotes": ["error", "double", { "allowTemplateLiterals": true }],
"react/function-component-definition": ["error", {
namedComponents: ["function-declaration", "arrow-function"],
unnamedComponents: "arrow-function",
}],
"import/prefer-default-export": "off",
"arrow-parens": ["error", "as-needed"],
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true }],
"import/order": [1, {
"groups": [
"external", "builtin", "internal", "sibling", "parent", "index"
],
"pathGroups": [
{ "pattern": "components", "group": "internal" },
],
"pathGroupsExcludedImportTypes": ["internal"],
"alphabetize": { "order": "asc", "caseInsensitive": true }
}],
"react/require-default-props": "off"
}
};