Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
eslint-config-guard
Advanced tools
Changelog
3.0.0 / 2022-11-02
eslint-plugin-react
version.no-constant-binary-expression
, no-unused-private-class-members
, react/no-arrow-function-lifecycle
, react/no-invalid-html-attribute
, react/no-namespace
, react/jsx-no-leaked-render
.warnOnDuplicates
option for react/jsx-key
rule.Readme
Set of configuration files (shareable configs) for ESLint to guard/protect from problems in different areas of JavaScript development.
Includes:
guard
- contains rules for possible errors, best practices, strict mode and variables; extends eslint:recommended
;guard/editor
- rules corresponding to editor preferences (like editorconfig
)
such as eol-last
, linebreak-style
, no-trailing-spaces
;guard/esnext
- configuration for ECMAScript 6/2015+ features;guard/indent
- configuration of indent
rule;guard/jsdoc
- contains rules related to JSDoc;guard/no-prettier
- adds "prettier/prettier": "off"
to rules; can be helpful to use with TSDX;guard/node
- configuration related to Node.js and CommonJS;guard/proper-arrows
- configuration for stylistic rules related to arrow functions (see @getify/eslint-plugin-proper-arrows
);guard/react
- configuration for React and JSX; extends plugin:react/recommended
;guard/style
- rules for stylistic issues;guard/test
- appropriate for use in tests (relaxes some rules from other configs);guard/test-jest
- appropriate for use in Jest tests; extends guard/test
;guard/test-mocha
- appropriate for use in Mocha tests; extends guard/test
;The following files are combined configs which extend other configs:
guard/ext-style
- extends guard/indent
and guard/style
;guard/optimum
- extends guard
and guard/ext-style
;guard/optimum-next
- extends guard/optimum
and guard/esnext
.See eslint-config-ts-guard for configuration files related to TypeScript.
npm install eslint-config-guard --save-dev
If you are going to use guard/node
you should install eslint-plugin-node
:
npm install eslint-plugin-node --save-dev
If you are going to use guard/proper-arrows
you should install @getify/eslint-plugin-proper-arrows
:
npm install @getify/eslint-plugin-proper-arrows --save-dev
If you are going to use guard/react
you should install eslint-plugin-react
:
npm install eslint-plugin-react --save-dev
In a .eslintrc.json
file:
{
"extends": [
"guard",
"guard/node"
]
}
In a package.json
:
{
"eslintConfig": {
"extends": [
"guard/optimum-next",
"guard/proper-arrows",
"guard/react"
]
}
}
Copyright (c) 2016-2022 Denis Sikuler
Licensed under the MIT license.
FAQs
ESLint configuration files (shareable configs) to guard from problems in different areas of JavaScript development.
The npm package eslint-config-guard receives a total of 313 weekly downloads. As such, eslint-config-guard popularity was classified as not popular.
We found that eslint-config-guard 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.