![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
eslint-config-problems
Advanced tools
An eslint config that catches problems in your code, without checking style. For use with prettier.
eslint-config-problems
is an ESLint config that doesn't regulate your code style. It only catches actual problems with your code.
It's designed for use with Prettier, the opinionated code formatter; but you could also use this as a solid base config to add stylistic rules on top of.
Rules were chosen based on the following criteria:
eval
with
new Number(13)
if (someCondition) return someValue;
else {
// Do something else
}
The else
block is unneeded, since the if
block contains a return
statement. eslint-config-problems
will point this out to you (or auto-fix with the --fix
option).By default eslint-config-problems
forces the use of ES2015+ features supported by Node.js versions 4 and higher. Here are the rules enforced:
no-var
- Use let
/const
instead.object-shorthand
- Use object shorthand where possible.prefer-arrow-callback
- Use arrow functions as callbacks where possible.prefer-numeric-literals
- Don't use parseInt()
to write binary, octal, and hexadecimal numbers, use the literal form instead.prefer-template
- Use template strings instead of string concatenation.prefer-const
- I realize this is very opinionated; if you don't like it, add prefer-const: off
to your config.If you would like a config that omits these rules, for use in ES5 environments, I'd be glad to add such a config. Just open an issue.
There is a sub-config, accessed via extends: problems/node6
that contains the base config, plus these additional rules:
prefer-spread
- Use the spread operator instead of .apply
where possible.prefer-rest-params
- Use rest parameters instead of arguments
.This is for use in Node versions 6 and higher that support rest/spread.
If you disagree; feel free to open an issue. I'm open to changing rules if you have a good reason.
If I missed a rule that prevents an actual problem or is otherwise in keeping with the general guidelines above, please open an issue as well; I just might add it.
eslint-config-problems
doesn't set any environments by default, other than the es6
environment (to turn on the ES2015 parser, allow Promise
, etc.) So you'll have to manually set your environment in your ESLint config. Here's a list of environments.
npm install -D eslint eslint-config-problems
In your eslintrc.yaml:
extends: 'problems' # or extends: 'problems/node6'
env:
# Set your environments here; for example:
node: true
eslint-plugin-prettier
npm install -D eslint prettier eslint-config-problems eslint-plugin-prettier
In your eslintrc.yaml:
extends: 'problems' # or extends: 'problems/node6'
env:
# Set your environments here; for example:
node: true
plugins:
- prettier
rules:
- prettier/prettier: error
FAQs
An eslint config that catches problems in your code, without checking style. For use with prettier.
The npm package eslint-config-problems receives a total of 0 weekly downloads. As such, eslint-config-problems popularity was classified as not popular.
We found that eslint-config-problems demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.