New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bdlite/fe-lint

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bdlite/fe-lint

一个包含 eslint、stylelint、prettier 配置文件的集合

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@bdlite/fe-lint

一个包含 prettier,eslint,stylelint 的配置文件合集

A collection of configuration files containing prettier, eslint, stylelint

部分jsx规则详解

Use

in .eslintrc.js

module.exports = {
  extends: [require.resolve('@bdlite/fe-lint/lib/eslint')],
  rules: {
    // your rules
  },
};

in .eslintrc

{
  extends: [require.resolve('@bdlite/fe-lint/lib/eslint')],
  rules: {
    // your rules
  },
};

in .stylelintrc.js

module.exports = {
  extends: [require.resolve('@bdlite/fe-lint/lib/stylelint')],
  rules: {
    // your rules
  },
};

in .prettierrc.js

const feLint = require('@bdlite/fe-lint');

module.exports = {
  ...feLint.prettier,
};

tips

治理和雷达接入的时候需要把package.json内依赖的所有npm包都复制一份到项目根目录,否则yarn安装的时候没有安装到项目根目录的node_modules内,怀疑是别的包也依赖相同的包,并且版本冲突导致的

Keywords

eslint

FAQs

Package last updated on 07 Mar 2023

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