-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
121 lines (121 loc) · 3.68 KB
/
package.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"name": "react-import-sorter",
"displayName": "React Import Sorter",
"description": "React Import Sorter is a powerful and user-friendly VS Code extension that helps you keep your imports in React projects organized and easy to maintain.",
"version": "0.0.7",
"publisher": "MrOnline",
"repository": {
"type": "git",
"url": "https://github.com/Mr0nline/React-Import-Sorter"
},
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Formatters"
],
"icon": "logo.png",
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "React Import Sorter",
"properties": {
"reactImportSorter.sortingOrder": {
"type": "array",
"items": {
"type": "string",
"enum": [
"REACT",
"MODULES",
"PATH_MODULES",
"PATH_IMPORTS"
]
},
"default": [],
"description": "An array of strings that defines the order of imports to sort by."
},
"reactImportSorter.separateByImportTypes": {
"type": "boolean",
"default": true,
"description": "Whether to separate different types of imports with a new line."
},
"reactImportSorter.separateMultilineImports": {
"type": "boolean",
"default": false,
"description": "Whether to add a new line before multiline imports."
},
"reactImportSorter.sortDestructuredModules": {
"type": "boolean",
"default": true,
"description": "Whether to sort destructured imports. i.e. { c, a, d } => { a, c, d }"
},
"reactImportSorter.sortBy": {
"type": "string",
"enum": [
"+size",
"-size",
"a-z",
"z-a"
],
"default": "+size",
"description": "The sorting order for the imports."
},
"reactImportSorter.sortDestructuredModulesBy": {
"type": "string",
"enum": [
"+size",
"-size",
"a-z",
"z-a"
],
"default": "a-z",
"description": "The sorting order for the destructured imports only applicable when sortDestructuredModules is on."
},
"reactImportSorter.pathImportPrefixes": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "An array of strings that defines the custom made alias paths (Generally via tsconfig.json's paths). Should be like ['@components', '@pages', 'common'] etc. By default all the imports with '/' will be considered as path imports even if it's from node_modules like @mui/material"
}
}
},
"commands": [
{
"command": "react-import-sorter.sortReactImports",
"title": "Sort React Imports"
}
]
},
"keywords": [
"react",
"import",
"sorter",
"modules"
],
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.40.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"@vscode/test-electron": "^2.3.0",
"all-contributors-cli": "^6.26.1",
"eslint": "^8.39.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^5.0.4"
}
}