Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Vite integration #52

Merged
merged 61 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
f667736
initial commit
vivek-devtron Oct 5, 2023
e338144
Merge branch 'main' into vite_exploration
vivek-devtron Oct 5, 2023
d7a9432
Merge branch 'main' into vite_exploration
vivek-devtron Oct 9, 2023
4da3318
minor fix
vivek-devtron Oct 9, 2023
6834be0
minor fix
vivek-devtron Oct 10, 2023
07f6264
Merge branch 'main' into vite_exploration
vivek-devtron Oct 12, 2023
94a467c
main merge
vivek-devtron Oct 12, 2023
916f8f3
removed unused code
vivek-devtron Oct 17, 2023
38cc825
Merge branch 'main' into vite_exploration
vivek-devtron Nov 9, 2023
a46f32d
Merge branch 'main' into vite_exploration
vivek-devtron Nov 28, 2023
4cd3e3f
vite config changes
prajjwal-devtron Jan 5, 2024
98e83cd
bump version
prajjwal-devtron Jan 5, 2024
c36931f
Update monaco-editor peer dependency version
prajjwal-devtron Jan 8, 2024
e05421c
Bump release version
prajjwal-devtron Jan 8, 2024
abc3c3c
Added test script in package.json and modified release version
prajjwal-devtron Jan 8, 2024
a3734a5
remove the commonjs plugin of rollup from config
prajjwal-devtron Jan 8, 2024
2a5a1bb
Merge remote-tracking branch 'origin/main' into vite_exploration
prajjwal-devtron Jan 9, 2024
ea458de
package lock changes
prajjwal-devtron Jan 9, 2024
95c24c5
remove duplicate imports
prajjwal-devtron Jan 9, 2024
6064e46
Update package-lock
prajjwal-devtron Jan 9, 2024
5535962
Bump version
prajjwal-devtron Jan 9, 2024
1877b95
tsconfig cleanup - removed comments and declarationDir
prajjwal-devtron Jan 9, 2024
833c8a5
Merge remote-tracking branch 'origin/main' into vite_exploration
prajjwal-devtron Jan 11, 2024
f276595
Updated package-lock
prajjwal-devtron Jan 11, 2024
6fb128b
Fix merge conflict issue
prajjwal-devtron Jan 11, 2024
a61dd46
Bump release version
prajjwal-devtron Jan 11, 2024
b8de1a5
Bump version
prajjwal-devtron Jan 15, 2024
4ca48b8
experimenting with CSS issues
vivek-devtron Jan 17, 2024
cbd5128
Version bump
vivek-devtron Jan 17, 2024
aceabca
version bump
vivek-devtron Jan 17, 2024
75355f7
CSS fixed of EmptyState
vivek-devtron Jan 17, 2024
b2415b8
Merge with main
prajjwal-devtron Jan 18, 2024
8d96116
Merge remote-tracking branch 'origin/main' into vite_exploration
prajjwal-devtron Jan 18, 2024
c31f62f
Bump version
prajjwal-devtron Jan 18, 2024
11d2d96
fixed comments
prajjwal-devtron Jan 19, 2024
fe017c5
removed rollup dependency + Added watcher
vivek-devtron Jan 21, 2024
4f993c2
fixed rjsf page break
vivek-devtron Jan 22, 2024
a0cbc02
version bump
vivek-devtron Jan 22, 2024
d84c629
merged main
vivek-devtron Jan 23, 2024
17defeb
chore: auto fixable eslint issues and ts fixes
eshankvaish Jan 30, 2024
c6aaf2e
version bump
vivek-devtron Jan 30, 2024
553c8e5
Removed unused code
vivek-devtron Jan 30, 2024
36db07e
update node version
vivek-devtron Jan 30, 2024
1184f97
fix: vite config, unused code
eshankvaish Jan 31, 2024
af25e32
replacement of import.meta.env
vivek-devtron Jan 31, 2024
c36bd4d
version bump
vivek-devtron Jan 31, 2024
b094fb8
updated action version
vivek-devtron Jan 31, 2024
f636b9f
version bump + env fix
vivek-devtron Jan 31, 2024
1e55cb6
Merge branch 'main' into vite_exploration
vivek-devtron Feb 5, 2024
a0b37e1
Merge branch 'main' into vite_exploration
vivek-devtron Feb 11, 2024
3c95e1d
fix for tippy issue
shivani170 Feb 12, 2024
24d28a8
version updated
shivani170 Feb 12, 2024
34fbea6
Merge pull request #92 from devtron-labs/vite_exploration-lib-bug
shivani170 Feb 12, 2024
f208ef4
Merge branch 'main' into vite_exploration
vivek-devtron Feb 12, 2024
88f8498
fix for plus
shivani170 Feb 12, 2024
c00d903
updated version
shivani170 Feb 12, 2024
6e33708
eslint fix
vivek-devtron Feb 12, 2024
c509981
version bump
vivek-devtron Feb 12, 2024
cbb81e0
Merge branch 'vite_exploration' into vite_exploration-bugs
shivani170 Feb 12, 2024
6e487b0
Merge pull request #93 from devtron-labs/vite_exploration-bugs
shivani170 Feb 12, 2024
c445837
version bump
vivek-devtron Feb 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .eslintignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.eslintrc.js
.eslintrc.cjs

# Files with ESLint errors/warnings
src/Common/AddCDButton/AddCDButton.tsx
Expand All @@ -9,38 +9,30 @@ src/Common/AppStatus/index.ts
src/Common/AppStatus/utils.ts
src/Common/BreadCrumb/BreadCrumb.tsx
src/Common/BreadCrumb/BreadcrumbStore.tsx
src/Common/BreadCrumb/Types.ts
src/Common/CIPipeline.Types.ts
src/Common/ChartVersionAndTypeSelector.tsx
src/Common/Checkbox.tsx
src/Common/ClipboardButton/ClipboardButton.tsx
src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx
src/Common/CodeEditor/CodeEditor.tsx
src/Common/Common.service.ts
src/Common/Constants.ts
src/Common/CustomInput/CustomInput.tsx
src/Common/CustomInput/Types.ts
src/Common/CustomInput/index.ts
src/Common/CustomTagSelector/PropagateTagInfo.tsx
src/Common/CustomTagSelector/ResizableTagTextArea.tsx
src/Common/CustomTagSelector/TagDetails.tsx
src/Common/CustomTagSelector/TagLabelSelect.tsx
src/Common/CustomTagSelector/TagLabelValueSelector.tsx
src/Common/CustomTagSelector/TagSelector.utils.ts
src/Common/CustomTagSelector/Types.ts
src/Common/CustomTagSelector/ValidationRules.ts
src/Common/CustomTagSelector/index.ts
src/Common/DebouncedSearch/DebouncedSearch.tsx
src/Common/DebouncedSearch/Utils.ts
src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx
src/Common/DeleteComponentModal/DeleteComponent.tsx
src/Common/DeleteComponentModal/types.ts
src/Common/DevtronProgressing/DevtronProgressing.tsx
src/Common/Dialogs/ConfirmationDialog.tsx
src/Common/Dialogs/DeleteDialog.tsx
src/Common/Dialogs/DialogForm.tsx
src/Common/Dialogs/ForceDeleteDialog.tsx
src/Common/Dialogs/Types.ts
src/Common/Dialogs/index.ts
src/Common/DraggableWrapper/DraggableButton.tsx
src/Common/DraggableWrapper/DraggableWrapper.tsx
src/Common/Drawer/Drawer.tsx
Expand All @@ -53,15 +45,13 @@ src/Common/Helper.tsx
src/Common/Hooks/UseClickOutside/UseClickOutside.tsx
src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx
src/Common/Hooks/UseWindowSize/UseWindowSize.tsx
src/Common/ImageTags.Types.ts
src/Common/ImageTags.tsx
src/Common/InfoColorBar/InfoColourbar.tsx
src/Common/Modals/Modal.tsx
src/Common/Modals/OpaqueModal.tsx
src/Common/Modals/VisibleModal.tsx
src/Common/Modals/VisibleModal2.tsx
src/Common/MultiSelectCustomization.tsx
src/Common/Policy.Types.ts
src/Common/PopupMenu.tsx
src/Common/Progressing.tsx
src/Common/RJSF/Form.tsx
Expand All @@ -87,10 +77,9 @@ src/Common/RadioGroup/RadioGroup.tsx
src/Common/Reload.tsx
src/Common/ResizableTextarea.tsx
src/Common/Security/ScanVulnerabilitiesTable.tsx
src/Common/Select/Select.tsx
src/Common/ServerError.ts
src/Common/TippyCustomized.tsx
src/Common/ToastBody.tsx
src/Common/Toggle/Toggle.tsx
src/Common/Types.ts
src/custom.d.ts
src/index.ts
110 changes: 110 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react', 'prettier'],
env: {
browser: true,
es2021: true,
},
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: ['./tsconfig.json'],
},
globals: {
JSX: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/eslint-recommended',
'airbnb',
'airbnb/hooks',
'prettier',
],
rules: {
'prettier/prettier': ['error'],
'linebreak-style': ['error', 'unix'],
'no-console': 'warn',
'no-var': 'error',
'no-duplicate-imports': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
// Since we are using typescript, we can disable the no-unused-vars rule for enum,etc
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'react/jsx-filename-extension': [
'error',
{
extensions: ['tsx'],
},
],
'react/jsx-props-no-spreading': 'off',
'react/prefer-stateless-function': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'no-underscore-dangle': 'off',
'import/no-extraneous-dependencies': [
'warn',
{
devDependencies: true,
},
],
'no-plusplus': [
'error',
{
allowForLoopAfterthoughts: true,
},
],
// Since we dont use prop-types, we can disable this rule
'react/require-default-props': 'off',
'react-hooks/exhaustive-deps': 'off',
'react/function-component-definition': [
'warn',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
// additional rules:
'@typescript-eslint/no-floating-promises': 'error',
'import/extensions': [
'warn',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-undef': 'off',
},
},
],
settings: {
react: {
version: 'detect',
},
'import/resolver': {
node: {
moduleDirectory: ['src', 'node_modules'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
ignorePatterns: [".eslintrc.cjs", "vite.config.ts"],
}
109 changes: 0 additions & 109 deletions .eslintrc.js

This file was deleted.

File renamed without changes.
Loading
Loading