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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"browser": true // allow usage of window.*, navigator.*, etc...
},
"ignorePatterns": [
// node_modules is implicitly always ignored
"dist",
Expand Down
6 changes: 3 additions & 3 deletions demo/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* eslint-disable func-names, no-nested-ternary, no-return-assign, @typescript-eslint/no-unused-vars, no-promise-executor-return, @typescript-eslint/no-unused-expressions, no-alert, no-undef, @typescript-eslint/no-shadow, react/jsx-no-bind, react/prop-types, import/no-extraneous-dependencies */
/* eslint-disable func-names, no-nested-ternary, no-return-assign, @typescript-eslint/no-unused-vars, no-promise-executor-return, @typescript-eslint/no-unused-expressions, no-alert, @typescript-eslint/no-shadow, react/jsx-no-bind, react/prop-types */

import {
Box,
Expand Down Expand Up @@ -47,6 +47,7 @@ import InputsTab from './InputsTab';
import { EquipmentSearchDialog } from './equipment-search';
import { InlineSearch } from './inline-search';
import {
EQUIPMENT_TYPE,
MultipleSelectionDialog,
OverflowableText,
SnackbarProvider,
Expand Down Expand Up @@ -103,6 +104,7 @@ import {
networkModificationsFr,
logout,
equipmentStyles,
setShowAuthenticationRouterLogin,
} from '../../src';

const messages = {
Expand Down Expand Up @@ -197,7 +199,6 @@ const CustomTreeViewFinder = styled(TreeViewFinder)(TreeViewFinderCustomStylesEm
function Crasher() {
const [crash, setCrash] = useState(false);
if (crash) {
// eslint-disable-next-line no-undef
window.foonotexists.bar();
}
return <Button onClick={() => setCrash(true)}>CRASH ME</Button>;
Expand Down Expand Up @@ -298,7 +299,6 @@ function PermanentSnackButton() {
const validateUser = () => {
// change to false to simulate user unauthorized access
return new Promise((resolve) => {
// eslint-disable-next-line no-undef
window.setTimeout(() => resolve(true), 500);
});
};
Expand Down
1 change: 0 additions & 1 deletion demo/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { createRoot } from 'react-dom/client';

import App from './app';

// eslint-disable-next-line no-undef
const container = document.querySelector('#demo');
const root = createRoot(container);
root.render(<App />);
199 changes: 152 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
"scripts": {
"start": "vite demo/ --config vite.config.ts",
"start:open": "vite demo/ --config vite.config.ts --open",
"build": "tsc && vite build",
"build:pack": "tsc && vite build && npm pack",
"build": "vite build",
"build:pack": "vite build && npm pack",
"prepublishOnly": "npm run build",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"lint": "eslint . --ext js,mjs,jsx,ts,mts,tsx --max-warnings 0",
"lint": "eslint . --ext js,mjs,jsx,ts,mts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:format": "prettier --check --cache .",
"lint:ts": "tsc",
"licenses-check": "license-checker --summary --excludePrivatePackages --production --onlyAllow \"$( jq -r .onlyAllow[] license-checker-config.json | tr '\n' ';')\" --excludePackages \"$( jq -r .excludePackages[] license-checker-config.json | tr '\n' ';')\""
},
"dependencies": {
Expand Down Expand Up @@ -139,8 +140,8 @@
"ts-node": "^10.9.2",
"typescript": "~5.6.3",
"vite": "^6.3.6",
"vite-plugin-checker": "^0.11.0",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-lib-inject-css": "^2.2.2",
"vite-plugin-svgr": "^4.5.0",
"yup": "^1.7.0"
Expand Down
1 change: 0 additions & 1 deletion src/components/snackbarProvider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// eslint-disable-next-line import/prefer-default-export
export * from './SnackbarProvider';
1 change: 0 additions & 1 deletion src/services/study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { VoltageInitStudyParameters } from '../components/parameters/voltage-ini

const PREFIX_STUDY_QUERIES = `${import.meta.env.VITE_API_GATEWAY}/study`;

// eslint-disable-next-line import/prefer-default-export
export function exportFilter(studyUuid: UUID, filterUuid?: UUID, token?: string) {
console.info('get filter export on study root node');
return backendFetchJson(
Expand Down
Loading
Loading