This website requires JavaScript.
Explore
Help
Register
Sign In
wikimedia
/
mediawiki-extensions-Popups
Watch
1
Star
0
Fork
You've already forked mediawiki-extensions-Popups
0
mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced
2024-12-18 02:00:53 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
7a6cac8a64
mediawiki-extensions-Popups
/
resources
/
.eslintrc.json
8 lines
90 B
JSON
Raw
Normal View
History
Unescape
Escape
build: Fix gaps in lint coverage and update old patterns eslint: * Remove hardcoded glob paths that are (relatively slow) to expand before linting could start, in favour of specifying directories which can be iterated while linting happens. * JSON files in i18n/ were skipped, unlike other repos. JS code under .storybook/ was skipped. JS code under resources/ext.popups/ was skipped. Fix all these by doing what other repos do, which is to let ESLint iterate the repository and tell it which directories not to enter. This has the happy side-effect of making IDE integrations for ESLint work correctly (as customisation in package.json has the same problems as using Gruntfile, namely that invoking 'eslint' directly can't be aware of this), as well as allowing things like `eslint --fix` to be used. ``` /Popups/resources/ext.popups/index.js 4:2 error Unexpected var, use let or const instead no-var ``` nyc: * Remove SPAWN_WRAP_SHIM_ROOT. This was a hack for an early CI experiment that hasn't been needed for several years. storybook: * Remove gitignore entries for additional npm and build output in the storybook subdirectory, which appears to not exist anymore since 189b386a1318159. Doxygen: * Sync with cookiecutter example from https://gerrit.wikimedia.org/g/mediawiki/tools/cookiecutter-library/+/HEAD/ - remove redundant stuff, - enable quiet mode to hide verbose non-warning, - include CoC. Change-Id: If8f6b833067192aea96a87f04c7978c9af11f996
2021-08-12 16:10:23 +00:00
{
"root"
:
true
,
ES6: Prefer Object.assign and Promise to jQuery Additional change: * Lint dist folder as ES6 code now ES6 is everywhere Change-Id: Ie77046f5c6fbdafa4679dbaf97f7bf6f16292b9c
2023-04-14 17:54:55 +00:00
"extends"
:
"wikimedia/language/es6"
,
"rules"
:
{
"no-var"
:
"off"
}
build: Fix gaps in lint coverage and update old patterns eslint: * Remove hardcoded glob paths that are (relatively slow) to expand before linting could start, in favour of specifying directories which can be iterated while linting happens. * JSON files in i18n/ were skipped, unlike other repos. JS code under .storybook/ was skipped. JS code under resources/ext.popups/ was skipped. Fix all these by doing what other repos do, which is to let ESLint iterate the repository and tell it which directories not to enter. This has the happy side-effect of making IDE integrations for ESLint work correctly (as customisation in package.json has the same problems as using Gruntfile, namely that invoking 'eslint' directly can't be aware of this), as well as allowing things like `eslint --fix` to be used. ``` /Popups/resources/ext.popups/index.js 4:2 error Unexpected var, use let or const instead no-var ``` nyc: * Remove SPAWN_WRAP_SHIM_ROOT. This was a hack for an early CI experiment that hasn't been needed for several years. storybook: * Remove gitignore entries for additional npm and build output in the storybook subdirectory, which appears to not exist anymore since 189b386a1318159. Doxygen: * Sync with cookiecutter example from https://gerrit.wikimedia.org/g/mediawiki/tools/cookiecutter-library/+/HEAD/ - remove redundant stuff, - enable quiet mode to hide verbose non-warning, - include CoC. Change-Id: If8f6b833067192aea96a87f04c7978c9af11f996
2021-08-12 16:10:23 +00:00
}
Reference in a new issue
Copy permalink