Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
eslint-config-reverentgeek
Advanced tools
This package is ReverentGeek's preferred configuration settings for eslint.
npm install --save-dev eslint eslint-config-reverentgeek
eslint.config.js
file."use strict";
const rgConfig = require( "eslint-config-reverentgeek" );
module.exports = [
...rgConfig.configs.common,
{
rules: {
}
}
];
The blog config changes the code style to two-spaced indentions, which is better for copying code samples to blog posts.
"use strict";
const rgConfig = require( "eslint-config-reverentgeek" );
module.exports = [
...rgConfig.configs.browser,
...rgConfig.configs.blog,
{
rules: {
}
}
];
The node config adds specific support for Node.js and CommonJS modules.
"use strict";
const rgConfig = require( "eslint-config-reverentgeek" );
module.exports = [
...rgConfig.configs.node,
{
rules: {
"n/no-unpublished-require": [ "error", {
allowModules: [ "eslint-config-reverentgeek" ]
} ]
}
}
];
The node-esm config adds specific support for Node.js and ES modules (import
/export
).
import rg from "eslint-config-reverentgeek";
export default [
...rg.configs[ "node-esm" ],
{
rules: {
"n/no-unpublished-import": [ "error", {
allowModules: [ "eslint-config-reverentgeek" ]
} ]
}
}
];
The react config adds specific support for React, browser, and ES modules (import
/export
).
npm install --save-dev eslint-plugin-react
import rg from "eslint-config-reverentgeek";
import react from "eslint-plugin-react";
export default [
...rg.configs.browser,
...rg.configs.react,
{
plugins: {
react,
},
rules: {
"n/no-unpublished-import": [ "error", {
allowModules: [ "eslint-config-reverentgeek" ]
} ]
}
}
];
The browser config sets the browser
environment and adds ES module support.
"use strict";
const rgConfig = require( "eslint-config-reverentgeek" );
module.exports = [
...rgConfig.configs.browser,
{
rules: {
}
}
];
npm install --save-dev eslint@8 eslint-config-reverentgeek@4
.eslintrc.js
file.module.exports = {
extends: [ "reverentgeek" ]
};
The blog rule set changes to code style to two-spaced indentions, which is better for copying code samples to blog posts.
module.exports = {
extends: [ "reverentgeek/blog" ]
};
The node rule set adds specific support for Node.js and CommonJS modules.
"use strict";
module.exports = {
extends: [ "reverentgeek/node" ]
};
The node/module rule set adds specific support for Node.js and ES modules (import
/export
).
"use strict";
module.exports = {
extends: [ "reverentgeek/node/module" ]
};
The browser rule set the browser
environment and adds ES module support.
module.exports = {
extends: [ "reverentgeek/browser" ]
};
FAQs
ESLint rules that ReverentGeek likes :)
The npm package eslint-config-reverentgeek receives a total of 32 weekly downloads. As such, eslint-config-reverentgeek popularity was classified as not popular.
We found that eslint-config-reverentgeek 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.