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
right now the root contains both node files (server-side JS code) and twinkle.js/morebits.js (client-side JS code), which makes it hard to set up eslint to lint both types of files
What
move twinkle.js and morebits.js into modules/ folder
probably move .css files in the root too
fix everything that breaks (deploy script, jest, documentation, etc.)
eslint config
use wikimedia/server for the root/whole project (.eslintrc.json)
move client-side JS config settings to the eslint config file in the modules folder (modules/.eslintrc.json)
remove scripts/ and tests/ from .eslintignore. should work now with wikimedia/server set up in the root config
Follow up patch
apply eslint autofixes to .js files in scripts/ and tests/ folders
The text was updated successfully, but these errors were encountered:
Move twinkle.js, morebits.js, CSS files, etc. out of the root. The root directory should be config files and readmes only.
Wikimedia also does this. JS files are always all placed in a directory called /modules/ (or sometimes a subdirectory with a different name, the other name escpaes me at the moment). But never in the root.
Fixeswikimedia-gadgets#2078
To test:
- npm start
- perl deploy.pl
Maybe:
- put the old modules in a subdirectory? modules/menuItems/*.js or something?
Why
What
Follow up patch
The text was updated successfully, but these errors were encountered: