Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@inrupt/eslint-config-react
Advanced tools
Eslint and prettier configs
npm install --save-dev @inrupt/eslint-config-react @rushstack/eslint-patch
Create a .eslintrc.js
in the the root of your project with the following contents:
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
extends: ["@inrupt/eslint-config-react"],
parserOptions: {
project: "./tsconfig.eslint.json",
},
rules: {},
};
The file tsconfig.eslint.json
is your typescript configuration with the e2e tests, unit tests and examples included, e.g.,
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts", "e2e/**/*.ts", "*.md"],
"exclude": ["**/node_modules", "**/dist/**"]
}
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
extends: [
"@inrupt/eslint-config-react",
"@inrupt/eslint-config-lib",
"plugin:import/typescript",
],
parserOptions: {
project: "./tsconfig.eslint.json",
},
// These settings and the `plugin:import/typescript` are required until we add
// this configuration to our @inrupt/eslint-config-lib base
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: "./tsconfig.eslint.json",
},
},
},
rules: {
"react/jsx-filename-extension": [
"error",
{
extensions: [".tsx"],
},
],
},
};
extends: ['@inrupt/eslint-config-react']
to your .eslintrc.js
file..eslintrc.js
file:require("@rushstack/eslint-patch/modern-module-resolution");
Exhaustive documentation forthcoming. For now, the general principles are:
FAQs
Shared eslint config for React projects at @inrupt
The npm package @inrupt/eslint-config-react receives a total of 427 weekly downloads. As such, @inrupt/eslint-config-react popularity was classified as not popular.
We found that @inrupt/eslint-config-react 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.