0.2.8 • Published 3 years ago

@appworks/eslint-plugin-best-practices v0.2.8

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

@appworks/eslint-plugin-best-practices

AppWorks best practices eslint plugin.

Installation

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

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

Usage

Recommend use @appworks/spec

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

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

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

Supported Rules