Skip to content

Commit 213ccc8

Browse files
committed
front: set max-warnings allowed in the CI to 0
1 parent 9301dba commit 213ccc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

front/src/modules/rollingStock/helpers/electric.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* eslint-disable import/prefer-default-export */
21
import { RollingStock } from 'common/api/osrdEditoastApi';
32

43
export function isElectric(effortCurves: RollingStock['effort_curves'] | null) {
54
if (!effortCurves) {
5+
console.log('hello');
66
return false;
77
}
88
return Object.values(effortCurves.modes).some((mode) => mode.is_electric);

front/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineConfig(({ mode }) => {
2020
buildMode: true,
2121
},
2222
eslint: {
23-
lintCommand: 'eslint --ext .ts,.tsx,.js,.jsx src --max-warnings 2',
23+
lintCommand: 'eslint --ext .ts,.tsx,.js,.jsx src --max-warnings 0',
2424
},
2525
overlay: env.OSRD_VITE_OVERLAY !== 'false' && {
2626
initialIsOpen: env.OSRD_VITE_OVERLAY_OPEN_BY_DEFAULT === 'true',

0 commit comments

Comments
 (0)