Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
run: |
if grep -q "igz-controls/" build.log; then
echo -e "\033[31mModule not found: Error: Can't resolve 'igz-controls....'.\033[0m"
echo -e "\033[33mPlease check for changes in the 'dashboard-react-controls' repository.\033[0m"
echo -e "\033[33mPlease check for missing files in 'ui/src/igz-controls/'.\033[0m"
echo "::set-output name=igz-controls-import-error::failure"
echo "::error::Module not found: Error: Can't resolve 'igz-controls"
else
Expand Down
47 changes: 44 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import js from '@eslint/js'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import eslintPluginImport from 'eslint-plugin-import'
import tseslint from 'typescript-eslint'

export default [
{ ignores: ['dist'] },
js.configs.recommended,
eslintConfigPrettier,
{
files: ['**/*.{js,jsx,ts,tsx}'],
files: ['**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 2021,
globals: {
Expand Down Expand Up @@ -49,9 +50,49 @@ export default [
}
},
{
files: ["**/*.test.jsx"],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2021,
globals: {
...globals.browser,
...globals.jest,
...globals.node
},
parser: tseslint.parser,
parserOptions: {
ecmaFeatures: {
jsx: true
}
}
},
plugins: {
react: react,
'react-hooks': reactHooks,
'@typescript-eslint': tseslint.plugin
},
settings: {
react: {
version: 'detect'
}
},
rules: {
...reactHooks.configs.recommended.rules,
...react.configs.recommended.rules,
'react/react-in-jsx-scope': 'off',
'react/no-unescaped-entities': 'off',
'react/prop-types': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': process.env.NODE_ENV === 'production' ? 2 : 1,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 1,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 1,
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
semi: ['error', 'never']
}
},
{
files: ['**/*.test.jsx'],
rules: {
"import/named": "off"
'import/named': 'off'
}
}
]
5 changes: 4 additions & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
"@/*": [
"src/nextGenComponents/*"
],
"@igz-controls/*": [
"src/igz-controls/nextGenComponents/*"
],
"igz-controls/*": [
"node_modules/iguazio.dashboard-react-controls/dist/*"
"src/igz-controls/*"
]
}
}
Expand Down
Loading