![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-genius
Advanced tools
An ESLint config for geniuses. But you can continue to be standard if you want.
An ESLint config for geniuses.
But you can continue to be standard if you want.
This is a combination of best practices, styles that have objective benefits, and my own (let's face it, correct) opinions. I try to provide my rationale for the more contentious decisions.
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
}
}
camelcase
"error"
Require camelCase
for variables and object properties.
comma-dangle
[
"error",
"always-multiline"
]
Require multiline list items to have a dangling comma.
const things = [
'foo',
'bar'
];
const data = {
foo: 'bar',
baz: 'bat'
}
const things = [
'foo',
'bar',
];
const data = {
foo: 'bar',
baz: 'bat',
};
comma-spacing
"error"
Space after commas, but not before.
comma-style
"error"
Require a comma after and on the same line as an array element, object property, or variable declaration
curly
"error"
Blocks require curly braces.
if (foo) alert(foo);
if (foo)
alert(foo);
alert(bar); // not inside the if block!
if (foo) {
alert(foo);
}
if (foo) {
alert(foo);
}
alert(bar); // obviously not inside the if block.
eol-last
"error"
Require a newline at the end of files.
eqeqeq
"error"
Always require ===
and !==
, even for literals on both sides and even when null
is involved.
func-call-spacing
[
"error",
"never"
]
Disallow whitespace between a function call and its parens.
no-mixed-spaces-and-tabs
[
"error",
"smart-tabs"
]
Require tabs for indentation, but spaces for alignment. Combining them in this specific way provides the best of both.
if (foo) {
/*ss*/alert(foo);
}
const data = {
/*tab*/foo: 'barbaz',/*tab*/ // Some descriptive text
/*tab*//*tab*//*tab*//*tab*/ // explaining this item
/*tab*/quz: 'qux',
};
if (foo) {
/*tab*/alert(foo);
}
const data = {
/*tab*/foo: 'barbaz', // Some descriptive text
/*tab*//*ssssssssss*/ // explaining this item
/*tab*/quz: 'qux',
};
no-trailing-spaces
"error"
Do not allow trailing whitespace, even on blank lines.
no-var
"error"
Always require let
or const
as opposed to var
.
prefer-const
"error"
Always prefer const
as opposed to let
when possible.
semi
"error"
Always require semicolons.
space-before-blocks
"error"
Require a space before the opening brace of a block.
if (a){
b();
}
function a(){}
try {} catch(a){}
class Foo{
constructor(){}
}
if (a) {
b();
}
function a() {}
try {} catch(a) {}
class Foo {
constructor() {}
}
space-before-function-paren
[
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
]
Require a space after anonymous and arrow function parens and disallow for named function parens.
space-in-parens
[
"error",
"never"
]
Disallow spaces padding the insides of parens.
space-unary-ops
[
"error",
{
"words": true,
"nonwords": false,
"overrides": {
"!": true,
"!!": true
}
}
]
Require a space after !
and !!
, but not other non-word unary operators.
!
(and, to a lesser extent, !!
) in front of a variable when scanning code. A space instantly makes things clearer at a glance.if (!foo) {
badFooCount ++;
}
foo = !bar;
if (! foo) {
badFooCount++;
}
foo = ! bar;
FAQs
An ESLint config for geniuses. But you can continue to be standard if you want.
The npm package eslint-config-genius receives a total of 2 weekly downloads. As such, eslint-config-genius popularity was classified as not popular.
We found that eslint-config-genius demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.