eslint-config-wzx-react
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "eslint-config-wzx-react", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "The custom react eslint rules based on airbnb. (Support Typescript Eslint)", | ||
@@ -18,3 +18,4 @@ "main": "index.js", | ||
"husky:commit-msg": "husky add .husky/commit-msg \"npx --no-install commitlint --edit $1\"", | ||
"prepare": "husky install && npm run husky:pre-commit && npm run husky:commit-msg" | ||
"husky:init": "husky install && npm run husky:pre-commit && npm run husky:commit-msg", | ||
"prepare": "is-ci || npm run husky:init" | ||
}, | ||
@@ -47,8 +48,8 @@ "repository": { | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-react": "^7.27.1", | ||
"eslint-plugin-react": "^7.28.0", | ||
"eslint-plugin-react-hooks": "^4.3.0" | ||
}, | ||
"peerDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.7.0", | ||
"@typescript-eslint/parser": "^5.7.0", | ||
"@typescript-eslint/eslint-plugin": "^5.8.0", | ||
"@typescript-eslint/parser": "^5.8.0", | ||
"typescript": "^4.5.4" | ||
@@ -59,6 +60,8 @@ }, | ||
"@commitlint/config-conventional": "^15.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.7.0", | ||
"@typescript-eslint/parser": "^5.7.0", | ||
"@typescript-eslint/eslint-plugin": "^5.8.0", | ||
"@typescript-eslint/parser": "^5.8.0", | ||
"ava": "^3.15.0", | ||
"fs-extra": "^10.0.0", | ||
"husky": "^7.0.4", | ||
"is-ci": "^3.0.1", | ||
"lint-staged": "^12.1.3", | ||
@@ -65,0 +68,0 @@ "nyc": "^15.1.0", |
# eslint-config-wzx-react | ||
[![NPM version](https://img.shields.io/npm/v/eslint-config-wzx-react)](https://www.npmjs.com/package/eslint-config-wzx-react) | ||
[![node](https://img.shields.io/node/v/eslint-config-wzx-react)](https://nodejs.org) | ||
[![Build Status](https://travis-ci.com/VicSolWang/eslint-config-wzx-react.svg?branch=master)](https://travis-ci.com/VicSolWang/eslint-config-wzx-react) | ||
[![codecov](https://codecov.io/gh/VicSolWang/eslint-config-wzx-react/branch/master/graph/badge.svg)](https://codecov.io/gh/VicSolWang/eslint-config-wzx-react) | ||
[![NPM downloads](https://img.shields.io/npm/dt/eslint-config-wzx-react)](https://www.npmjs.com/package/eslint-config-wzx-react) | ||
[![NPM version](https://img.shields.io/npm/v/eslint-config-wzx-react?logo=npm&style=flat-square)](https://www.npmjs.com/package/eslint-config-wzx-react) | ||
[![node](https://img.shields.io/node/v/eslint-config-wzx-react?logo=nodedotjs&style=flat-square)](https://nodejs.org) | ||
[![Code Style](https://img.shields.io/badge/code%20style-prettier-ff69b4?logo=prettier&style=flat-square)](https://prettier.io) | ||
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/VicSolWang/eslint-config-wzx-react/test-release-ci/master?logo=github&style=flat-square)](https://github.com/VicSolWang/eslint-config-wzx-react/actions/workflows/test-release.yml) | ||
[![release](https://img.shields.io/badge/release-semantic--release-e10079?logo=semantic-release&style=flat-square)](https://github.com/semantic-release/semantic-release) | ||
[![codecov](https://img.shields.io/codecov/c/gh/VicSolWang/eslint-config-wzx-react/master?label=codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/VicSolWang/eslint-config-wzx-react) | ||
[![NPM downloads](https://img.shields.io/npm/dt/eslint-config-wzx-react?style=flat-square)](https://www.npmjs.com/package/eslint-config-wzx-react) | ||
The custom react eslint rules based on [eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb). (Support Typescript Eslint) | ||
> The custom react eslint rules based on [eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb). (Support Typescript Eslint) | ||
# Installation | ||
## :cd: Installation | ||
npm install --save-dev eslint-config-wzx-react | ||
Note: Typescript eslint needs to install [typescript](https://www.npmjs.com/package/typescript), [@typescript-eslint/parser](https://www.npmjs.com/package/@typescript-eslint/parser), [@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin). | ||
:bulb: Typescript eslint needs to install [typescript](https://www.npmjs.com/package/typescript), [@typescript-eslint/parser](https://www.npmjs.com/package/@typescript-eslint/parser), [@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin). | ||
npm install --save-dev typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin | ||
# Usage | ||
## :rocket: Usage | ||
@@ -27,6 +29,6 @@ Add eslint-config-wzx-react to the "extends" in your `.eslintrc.* file`. | ||
Note: Typescript eslint needs `tsconfig.json` in your project root directory. | ||
:bulb: Typescript eslint needs `tsconfig.json` in your project root directory. | ||
# License | ||
## :lock: License | ||
[MIT](LICENSE). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13749
19
203
34
0
12
2
Updatedeslint-plugin-react@^7.28.0