包详细信息

@iceworks/eslint-plugin-best-practices

rax-publisher1.5k0.2.11

Iceworks best practices eslint plugin.

iceworks, best practices, eslint, eslintplugin

自述文件

@iceworks/eslint-plugin-best-practices

Iceworks best practices eslint plugin.

Installation

Install esLint, @iceworks/eslint-plugin-best-practices:

$ npm install --save-dev eslint @iceworks/eslint-plugin-best-practices

Usage

Recommend use @iceworks/spec

Then configure the rules you want to use under the rules section.

// .eslintrc.js
const { getESLintConfig } = require('@iceworks/spec');

// getESLintConfig(rule: 'rax'|'rax-ts'|'react'|'react-ts', customConfig?);
module.exports = getESLintConfig('rax', {
  // custom config it will merge into main config
  rules: {
    '@iceworks/best-practices/rule-name': 'off',
  },
});

Supported Rules