-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (30 loc) · 925 Bytes
/
index.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
module.exports = {
rules: {
"import/first": "error",
"import/order": [
"error",
{
"newlines-between": "always",
groups: [
["builtin", "external"],
["internal", "object", "parent", "sibling", "index", "type"],
["unknown"]],
pathGroups: [
{
pattern: "./*.+(scss|css)",
group: "unknown",
position: "after",
},
],
warnOnUnassignedImports: true,
},
],
"object-shorthand": "error",
"prefer-const": ["error"],
eqeqeq: ["error"],
"func-style": ["error", "declaration", { allowArrowFunctions: false }],
"react/jsx-curly-brace-presence": ["error", "never"],
"padding-line-between-statements": ["error", { blankLine: "always", prev: "*", next: "return" }],
"lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
},
};