Skip to content

Commit 1a77226

Browse files
committed
Merge branch 'develop' of https://github.com/devtron-labs/devtron-fe-common-lib into feat/skip-hibernated-deploy
2 parents 4041e83 + 82a136d commit 1a77226

File tree

453 files changed

+2570
-1440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+2570
-1440
lines changed

.eslintrc.cjs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17+
const tsconfigPath = require('./tsconfig.json')
18+
1719
module.exports = {
1820
parser: '@typescript-eslint/parser',
19-
plugins: ['@typescript-eslint', 'react', 'prettier', 'import'],
21+
plugins: ['@typescript-eslint', 'react', 'prettier', 'import', 'simple-import-sort'],
2022
env: {
2123
browser: true,
2224
es2021: true,
@@ -109,6 +111,26 @@ module.exports = {
109111
'import/prefer-default-export': 'off',
110112
'no-restricted-exports': 'off',
111113
'import/named': 'off',
114+
'simple-import-sort/imports': [
115+
'error',
116+
{
117+
groups: [
118+
// Packages `react` related packages and external packages.
119+
['^react', '^@?\\w'],
120+
// Devtron packages
121+
['^@devtron-labs'],
122+
// Internal packages.
123+
[...Object.keys(tsconfigPath.compilerOptions.paths).map((alias) => alias.replace('/*', ''))],
124+
// Side effect imports.
125+
['^\\u0000'],
126+
// Put same-folder imports, `..` and `.` last. Other relative imports.
127+
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$',],
128+
// Style imports.
129+
[ '^.+\\.?(css|scss)$'],
130+
],
131+
},
132+
],
133+
'simple-import-sort/exports': 'error',
112134
},
113135
overrides: [
114136
{

package-lock.json

Lines changed: 16 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.10.15",
3+
"version": "1.10.19",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",
@@ -60,6 +60,7 @@
6060
"eslint-plugin-prettier": "^5.1.2",
6161
"eslint-plugin-react": "^7.33.2",
6262
"eslint-plugin-react-hooks": "^4.6.0",
63+
"eslint-plugin-simple-import-sort": "^12.1.1",
6364
"glob": "^10.3.3",
6465
"husky": "^7.0.4",
6566
"json-schema": "^0.4.0",
@@ -73,7 +74,7 @@
7374
"sharp": "^0.33.5",
7475
"svgo": "^3.3.2",
7576
"typescript": "5.5.4",
76-
"vite": "5.4.14",
77+
"vite": "5.4.17",
7778
"vite-plugin-dts": "4.0.3",
7879
"vite-plugin-image-optimizer": "^1.1.8",
7980
"vite-plugin-lib-inject-css": "2.1.1",
@@ -108,10 +109,10 @@
108109
"@replit/codemirror-indentation-markers": "6.5.3",
109110
"@replit/codemirror-vscode-keymap": "6.0.2",
110111
"@types/react-dates": "^21.8.6",
111-
"@xyflow/react": "12.4.2",
112112
"@uiw/codemirror-extensions-hyper-link": "4.23.10",
113113
"@uiw/codemirror-theme-github": "4.23.7",
114114
"@uiw/react-codemirror": "4.23.7",
115+
"@xyflow/react": "12.4.2",
115116
"ansi_up": "^5.2.1",
116117
"codemirror-json-schema": "0.8.0",
117118
"dayjs": "^1.11.13",
@@ -140,7 +141,7 @@
140141
"monaco-editor": "0.44.0"
141142
},
142143
"vite-plugin-svgr": {
143-
"vite": "5.4.14"
144+
"vite": "5.4.17"
144145
},
145146
"react-virtualized-sticky-tree": {
146147
"react": "^17.0.2",
Lines changed: 3 additions & 0 deletions
Loading

src/Assets/IconV2/ic-check.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

src/Assets/IconV2/ic-hibernate.svg

Lines changed: 2 additions & 11 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)