Skip to content
Snippets Groups Projects
Verified Commit 62d304c2 authored by BITARD Michaël's avatar BITARD Michaël
Browse files

add lint rules on common and ui

parent a0974852
No related branches found
No related tags found
1 merge request!1685chore(eslint): interdit les utilisations deprecated
Pipeline #545874 passed
......@@ -63,6 +63,7 @@ export default [{
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-unnecessary-condition': 'error',
'@typescript-eslint/no-deprecated': 'warn',
},
}];
......@@ -83,6 +83,7 @@ export default [
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/no-deprecated': 'warn',
// TODO 2024-09-19 activer ça sur le front ?
// '@typescript-eslint/no-floating-promises': 'error',
// '@typescript-eslint/no-misused-promises': 'error',
......
......@@ -12,8 +12,8 @@
"dev:update": "npm-check-updates && npm install && npm audit fix",
"start": "node ./index.js",
"test": "vitest",
"lint": "prettier --write src && eslint --fix src --max-warnings=0",
"lint:check": "prettier --check src && eslint src --max-warnings=0",
"lint": "prettier --write src && eslint --fix src",
"lint:check": "prettier --check src && eslint src",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:test": "test-storybook --browsers chromium"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment