Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting globs #298

Merged
merged 4 commits into from
Jul 10, 2024
Merged

Fix linting globs #298

merged 4 commits into from
Jul 10, 2024

Conversation

SidneyNemzer
Copy link
Collaborator

@SidneyNemzer SidneyNemzer commented Jun 12, 2024

The lint scripts didn't cover all the files

Before:

> echo src/**/*.js
src/alias/alias.js src/constants/index.js src/store/Store.js src/store/applyMiddleware.js src/strategies/constants.js src/wrap-store/wrapStore.js

Fixed:

> echo src/{**/,}*.js
src/alias/alias.js src/constants/index.js src/store/Store.js src/store/applyMiddleware.js src/strategies/constants.js src/wrap-store/wrapStore.js src/index.js src/listener.js src/serialization.js src/util.js

Note: The base of this PR is #297, I'll merge that PR first

** will only match folders, so directly children of src and test were not matched.

Compare:

    > echo src/**/*.js
    src/alias/alias.js src/constants/index.js src/store/Store.js src/store/applyMiddleware.js src/strategies/constants.js src/wrap-store/wrapStore.js

    > echo src{/**,}/*.js
    src/alias/alias.js src/constants/index.js src/store/Store.js src/store/applyMiddleware.js src/strategies/constants.js src/wrap-store/wrapStore.js src/index.js src/listener.js src/serialization.js src/util.js
`npm run` automatically adds `./node_modules/bin/` to PATH before running the script so the prefix can be omitted from the script.
Base automatically changed from mv3 to master July 10, 2024 02:06
@SidneyNemzer SidneyNemzer merged commit a29143b into master Jul 10, 2024
3 checks passed
@SidneyNemzer SidneyNemzer deleted the lint-fix branch July 10, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants