-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Webapp Preview: Cluster Overview with sparklines
- Loading branch information
Showing
14 changed files
with
2,329 additions
and
1,472 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
18 changes: 0 additions & 18 deletions
18
core/trino-web-ui/src/main/resources/webapp-preview/.eslintrc.cjs
This file was deleted.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
core/trino-web-ui/src/main/resources/webapp-preview/eslint.config.js
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,73 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import js from '@eslint/js'; | ||
import globals from 'globals'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import tsPlugin from '@typescript-eslint/eslint-plugin'; | ||
import reactHooksPlugin from 'eslint-plugin-react-hooks'; | ||
import reactRefreshPlugin from 'eslint-plugin-react-refresh'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': tsPlugin, | ||
}, | ||
rules: { | ||
...tsPlugin.configs.recommended.rules, | ||
'@typescript-eslint/no-unused-expressions': [ | ||
'error', | ||
{ | ||
allowShortCircuit: true, | ||
allowTernary: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'], | ||
plugins: { | ||
'react-hooks': reactHooksPlugin, | ||
}, | ||
rules: { | ||
...reactHooksPlugin.configs.recommended.rules, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.{js,jsx,ts,tsx}'], // Match all JS/TS files | ||
plugins: { | ||
'react-refresh': reactRefreshPlugin, | ||
}, | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
'eol-last': ['warn', 'always'], | ||
'no-multiple-empty-lines': ['warn', { max: 1, maxEOF: 0 }], | ||
}, | ||
}, | ||
{ | ||
ignores: ['dist', '.eslintrc.cjs'], | ||
}, | ||
]; |
Oops, something went wrong.