forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…j#18079) * feat(ui): setup eslint Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com> * chore(ui): update `lint:fix` command Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com> * fix(ui-lint): run `yarn lint:fix` > solve remaining manually Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com> * chore(ui): remove tslint from `ui` Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com> * chore(docs-ui): add docs for VSCode configuration eslint Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com> * chore(ui): prettier set `trailingComma` to `none` > prettier config default is changed after version bump - https://prettier.io/docs/en/options.html#trailing-commas Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com> --------- Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
- Loading branch information
Showing
40 changed files
with
1,673 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import globals from 'globals'; | ||
import pluginJs from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js'; | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; | ||
|
||
export default [ | ||
{languageOptions: {globals: globals.browser}}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/no-var-requires': 'off' | ||
} | ||
}, | ||
{ | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
}, | ||
...pluginReactConfig, | ||
rules: { | ||
'react/display-name': 'off', | ||
'react/no-string-refs': 'off' | ||
} | ||
}, | ||
eslintPluginPrettierRecommended, | ||
{ | ||
files: ['./src/**/*.{ts,tsx}'] | ||
}, | ||
{ | ||
ignores: ['dist', 'assets', '**/*.config.js', '__mocks__', 'coverage', '**/*.test.{ts,tsx}'] | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
ui/src/app/applications/components/application-create-panel/application-create-panel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.