
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@strapi/eslint-config
Advanced tools
This package provides Strapi's .eslintrc
as an extensible shared config.
This package is meant for internal use only. The configurations are subject to change at any given point.
You can install this package using it's GitHub repository:
yarn add --dev @strapi/eslint-config
We export four ESLint configurations for your usage. Choose the version you need and look at the usage instructions.
This configuration is aimed as a base.
yarn add --dev eslint@^8.10.0 \
eslint-config-airbnb-base@^15.0.0 \
eslint-config-prettier@^8.5.0 \
eslint-plugin-import@^2.25.4
"extends": "strapi"
to your .eslintrc
This configuration is aimed for backend usage.
yarn add --dev eslint@^8.10.0 \
eslint-config-airbnb-base@^15.0.0 \
eslint-config-prettier@^8.5.0 \
eslint-plugin-import@^2.25.4 \
eslint-plugin-node@^11.1.0
"extends": "strapi/back"
to your .eslintrc
This configuration is aimed for frontend usage as it adds React specific rules.
yarn add --dev babel-eslint@10.0.0 \
eslint@^8.10.0 \
eslint-config-airbnb@^19.0.4 \
eslint-config-prettier@^8.5.0 \
eslint-plugin-import@^2.25.4 \
eslint-plugin-jsx-a11y@^6.5.1 \
eslint-plugin-node@^11.1.0 \
eslint-plugin-react@^7.29.3 \
eslint-plugin-react-hooks@^4.3.0
"extends": "strapi/front"
to your .eslintrc
This configuration is aimed for backend usage with TypeScript.
yarn add --dev @typescript-eslint/eslint-plugin@^5.14.0 \
@typescript-eslint/parser@^5.14.0 \
eslint@^8.10.0 \
eslint-config-airbnb-base@^15.0.0 \
eslint-config-airbnb-typescript@^16.1.1 \
eslint-config-prettier@^8.5.0 \
eslint-plugin-import@^2.25.4 \
eslint-plugin-node@^11.1.0 \
typescript@^4.6.2
"extends": "strapi/typescript"
to your .eslintrc
FAQs
Strapi eslint configurations
We found that @strapi/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.