You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The eslint config packages should be updated and the changes with the incoming rules should be applied to the codebase.
This can partly be done by running npm run fix:eslint. In the case of @typescript-eslint/naming-convention this can be done with regex.
$1. ( |:|\[|<) all possibles characters before the interface declaration/usage
$2. ([IET](?!ODO)) everything starting with one of E/I/T and not followed by ODO to ignore TODO
$3. ([A-Z]){1} the next uppercase letter
$4. (\w+) next word
$5. (| | \{|\{|\(|\[|>| \||,|;|\)) all possible characters after the interface declaration/usage
Packages to be updated
eslint-config-valantic@16.0.1
eslint-plugin-vue@9.11.0
Rules that will be inherited
With the update of the packages the following rules can be removed from .eslintrc.json
space-before-function-paren
max-lines
no-undefined
The text was updated successfully, but these errors were encountered:
benjamin-joham
changed the title
update to latest eslint-config-valantic version
Update to latest eslint-config-valantic version
May 25, 2023
The eslint config packages should be updated and the changes with the incoming rules should be applied to the codebase.
This can partly be done by running
npm run fix:eslint
. In the case of@typescript-eslint/naming-convention
this can be done with regex.Regex
find:
( |:|\[|<)([IET](?!ODO))([A-Z]){1}(\w+)(| | \{|\{|\(|\[|>| \||,|;|\))
replace:
$1$3$4$5
Explanation
$1.
( |:|\[|<)
all possibles characters before the interface declaration/usage$2.
([IET](?!ODO))
everything starting with one of E/I/T and not followed by ODO to ignore TODO$3.
([A-Z]){1}
the next uppercase letter$4.
(\w+)
next word$5.
(| | \{|\{|\(|\[|>| \||,|;|\))
all possible characters after the interface declaration/usagePackages to be updated
Rules that will be inherited
With the update of the packages the following rules can be removed from .eslintrc.json
space-before-function-paren
max-lines
no-undefined
The text was updated successfully, but these errors were encountered: