
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.
eslint-config-wojtekmaj
Advanced tools
Set of default, recommended rules from:
@typescript-eslint
eslint-plugin-import
,eslint-plugin-jsx-a11y
,eslint-plugin-react
,eslint-plugin-react-hooks
with a few changes and enhancements:
@typescript-eslint/parser
will parse your TypeScript files.eslint-plugin-import
were turned off in TypeScript files, as they are already covered by TypeScript itself.vite-plugin-pwa
and other Vite plugins using virtual:*
imports.This config is designed to be run alongside Prettier.
eslint-config-wojtekmaj
comes in several flavors:
wojtekmaj
wojtekmaj/node
- Basic flavor + Node.js-specific rules.wojtekmaj/browser
- Basic flavor + Browser-specific rules.wojtekmaj/react
- Browser flavor + React-specific rules.wojtekmaj/react-no-automatic-runtime
- Browser flavor + React-specific rules, for legacy projects with automatic runtime disabled.@typescript-eslint/consistent-type-definitions
: Changed to prefer types over interfaces.@typescript-eslint/no-unused-vars
: ignoreRestSiblings
flag set to true
.@typescript-eslint/no-use-before-define
: Set to "error"
.import/no-named-as-default
: Turned off.import/no-unresolved
: Kept at "error"
, but ignoring virtual:*
imports.no-self-compare``: Set to
"error"`.no-template-curly-in-string
: Set to "warn"
.no-unused-vars
: ignoreRestSiblings
flag set to true
.no-use-before-define
: Set to "error"
.valid-typeof
: Set to "error"
.None
no-alert
: Set to "warn"
.no-console
: Set to "warn"
, with the exception of files only executed internally e.g. Webpack config files.react/jsx-no-leaked-render
: Set to "error"
.react/jsx-uses-react
: Turned off (assumes JSX automatic runtime is turned on).react/no-array-index-key
: Set to "warn"
.react/react-in-jsx-scope
: Turned off (assumes JSX automatic runtime is turned on).react/no-unused-prop-types
: Set to "error"
.The MIT License.
| Wojciech Maj |
FAQs
ESLint configuration by wojtekmaj
We found that eslint-config-wojtekmaj 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
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.