-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimport.js
53 lines (41 loc) · 1.66 KB
/
import.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"use strict";
exports.rules = {
/**
* Static analysis ---------------------------------------------------------------------------------------------------
* @see https://github.com/import-js/eslint-plugin-import#static-analysis
*/
"import/no-absolute-path" : "error",
"import/no-cycle" : "error",
"import/no-self-import" : "error",
"import/no-relative-parent-imports": "error",
/**
* Helpful warnings --------------------------------------------------------------------------------------------------
* @see https://github.com/import-js/eslint-plugin-import#helpful-warnings
*/
"import/no-named-as-default" : "error",
"import/no-named-as-default-member": "error",
"import/no-deprecated" : "error",
/**
* Module systems ----------------------------------------------------------------------------------------------------
* @see https://github.com/import-js/eslint-plugin-import#module-systems
*/
/**
* Style guide -------------------------------------------------------------------------------------------------------
* @see https://github.com/import-js/eslint-plugin-import#style-guide
*/
"import/first": "error",
"import/exports-last": "error",
"import/no-duplicates": ["error", { considerQueryString: true }],
"import/extensions": ["error", "always", { ignorePackages: true }],
"sort-imports": "off",
"import/order": [
"error",
{
groups : ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
alphabetize: {
order: "asc",
},
},
],
"import/newline-after-import": ["error", { count: 1 }],
};