Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
eslint-config-wojtekmaj
Advanced tools
[![CI](https://github.com/wojtekmaj/eslint-config-wojtekmaj/actions/workflows/ci.yml/badge.svg)](https://github.com/wojtekmaj/eslint-config-wojtekmaj/actions)
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, provided that TypeScript has been installed in your project.jest
environment will be set for files matching **/*.spec.js
, **/*.spec.jsx
, **/*.spec.ts
, **/*.spec.tsx
, **/__tests__/*
patterns, provided that Jest has been installed in your project.dependencies
, not peerDependencies
, so you don't need to install them on your own.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
The npm package eslint-config-wojtekmaj receives a total of 452 weekly downloads. As such, eslint-config-wojtekmaj popularity was classified as not popular.
We found that eslint-config-wojtekmaj demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.