New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-disable-autofix

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-disable-autofix

Disable ESLint autofix (--fix) for specified rules

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25K
decreased by-22.26%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-disable-autofix

Disable ESLint autofix (--fix) for specified rules and prevent them from being formatted without turning them off

Useful when two different rules have the same solution resulting in duplicate formatting

Usage

Install

npm i -D eslint-plugin-disable-autofix

Configure

Add prefix disable-autofix/ to the rule name in eslintrc and disable the original

module.exports = {
  plugins: ['disable-autofix'],
  rules: {
    'prefer-const': 'off',
    'disable-autofix/prefer-const': 'error',
  },
};

Use 3rd-party plugins

module.exports = {
  plugins: ['disable-autofix', 'react'],
  rules: {
    'react/jsx-indent': 'off',
    'disable-autofix/react/jsx-indent': 'error',
  },
};

Use scoped plugins

module.exports = {
  plugins: ['disable-autofix', '@html-eslint'],
  rules: {
    '@html-eslint/require-closing-tags': 'off',
    'disable-autofix/@html-eslint/require-closing-tags': [
      'error',
      { selfClosing: 'always' },
    ],
  },
};

Resources

  • ESLint
  • eslint-rule-composer
  • eslint-plugin-no-autofix

Keywords

FAQs

Package last updated on 31 May 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc