@iceworks/eslint-plugin-best-practices

0.2.11 • Public • Published

@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

/@iceworks/eslint-plugin-best-practices/

    Package Sidebar

    Install

    npm i @iceworks/eslint-plugin-best-practices

    Weekly Downloads

    287

    Version

    0.2.11

    License

    none

    Unpacked Size

    30.9 kB

    Total Files

    32

    Last publish

    Collaborators

    • yuanyan
    • sobear
    • empireo
    • alvinhui
    • rax-publisher
    • luhengchang228
    • fyangstudio