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

Add environment specific ESLint Configs #1260

Merged
merged 4 commits into from
Oct 22, 2020

Conversation

brionmario
Copy link
Member

Purpose

Some lint rules like no-debugger are set to error by the extended plugins and this causes the usage debugger points to fail the development build. And during development we can supress the errors but it'll lead to these debug points to be pushed to vcs by mistake since the build will not catch them due to the supression.

Goals

This PR introduces the ability to have environment specific lint rules.

Approach

Added a new ESLint config for production that is extended from the base config and can be used to override any rule that should be applied only in production.

TODO

eslint-loader was deprecated in favor of eslint-webpack-plugin. Tried to migrate but faced some issues due to the plugin being unstable. Migration has to be only done when the issues are solved by the developers of the plugin.
Tracker - wso2/product-is#10009

@brionmario brionmario merged commit a8d25b3 into wso2:master Oct 22, 2020
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