Socket
Book a DemoInstallSign in
Socket

eslint-config-lyrical

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

eslint-config-lyrical

ESLint config base version

unpublished
latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

ESLint规范

是商羚前端ESLint规范,目前支持taro|vue|react

安装

npm install eslint-config-selling -D
# OR
yarn add eslint-config-selling --dev

使用

在你的工程根目录下创建一个.eslintrc.js配置文件

配置如下:

  • taro
module.exports = {
  extends: ['selling/taro'],
};
  • vue
module.exports = {
  extends: ['selling/vue'],
};
  • react
module.exports = {
  extends: ['selling/react'],
};

:::caution 如果项目之前安装过ESLint相关的包,建议卸载,避免引入不必要的包。如eslinteslint-plugin-vue@babel/eslint-parser@typescript-eslint/eslint-plugin@typescript-eslint/parser@vue/eslint-config-standard@vue/eslint-config-typescripteslint-config-react-appeslint-plugin-import等,直接在package.json搜索eslint,相关的包全部卸载 :::

规范

ESLint规范

Keywords

eslint

FAQs

Package last updated on 13 Apr 2022

Did you know?

Socket

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.

Install

Related posts