forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`var` has broken/unexpected scoping in JavaScript, and can lead to subtle errors. It's preferable and safer to use `const` whenever possible, and `let` where necessary. Most pages got updated by now, so let's make sure they stay that way. Disable the rule for the four remaining known pages which still use `var`. Also temporarily downgrade the `error` to `warn` when running `npm run eslint`, as that is covered by the unit-tests "distcheck" scenario. This requires touching package.json and thus a node_modules rebuild.
- Loading branch information
1 parent
a498f6c
commit ba8700a
Showing
4 changed files
with
10 additions
and
4 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
Submodule node_modules
updated
2067 files
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
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