Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@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 197 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.