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

@juln/fabric

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juln/fabric

A collection of configuration files containing prettier, eslint, stylelint

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
12
500%
Maintainers
1
Weekly downloads
 
Created
Source

fabric代码规范

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

A collection of configuration files containing prettier, eslint, stylelint

Use

安装

npm i @juln/fabric -D
yarn add @juln/fabric -D

in .eslintrc.js

const path = require("path");

module.exports = {
  extends: [path.resolve('./node_modules/@juln/fabric')],

  rules: {
    // your rules
  },
};

module.exports = {
  extends: ['@juln/fabric'],

  rules: {
    // your rules
  },
};

in .prettierrc.js

const prettier = require('@juln/fabric/prettier');

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

in .stylelintrc.js

module.exports = {
  extends: [require.resolve('@juln/fabric/stylelint')],
  rules: {
    // your rules
  },
};

相关问题

  • @typescript-eslint/no-unused-var 误报

@typescript-eslint/no-unused-vars 规则在极少数情况下会误报。 比如下面这段代码, ts函数类型定义,函数中的参数会被当作真实变量被判断。

type Fn = (arg: any) => void; // arg 误报

解决方案: 使用@typescript-eslint/no-unused-vars-experimental代替@typescript-eslint/no-unused-vars。但是lint速度会很明显变慢很多

// .eslintrc.js
module.exports = {
  extends: ['@juln/fabric'],
  rules: {
    '@typescript-eslint/no-unused-vars': 'off',
    '@typescript-eslint/no-unused-vars-experimental': 'error',
  },
};

Keywords

eslint

FAQs

Package last updated on 31 Jul 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