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

eslint-plugin-ante

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ante

Shared configurations for JavaScript projects.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-plugin-ante

Standard linting rules for ESLint, suitable for all JavaScript projects.

Installation

We recommend installing eslint and eslint-plugin-ante locally within your project:

# Install eslint if it is not already installed.
$ yarn add --dev eslint

# Install this plugin.
$ yarn add --dev eslint-plugin-ante

Configuration

Within your ESLint configuration file (e.g: .eslintrc.json), add an entry to the "plugins" section:

{
  "plugins": [
    "eslint-plugin-ante"
  ]
}

Shareable Configurations

The recommended configuration enforces a significant subset of the core non-stylistic rules listed at ESLint: Rules, covering the "Possible Errors", "Best Practices", "Variables", and "ECMAScript 6" sections. It is highly recommended to use this in conjunction with the eslint:recommended configuration provided natively by ESLint, as this configuration does not include those rules.

To use this configuration, add an entry to your ESLint configuration's extends section:

{
  "extends": [
    "eslint:recommended",
    "plugin:ante/recommended"
  ]
}
Style

The style configuration enforces a set of stylistic conventions using the core rules described at ESLint: Rules: Stylistic Issues. These are not included in the recommended configuration above because some of the choices are highly subjective. We recommend using this configuration for new projects, or projects where a convention is desired rather than a particular convention, although any of the default rules provided in this configuration may be overridden in your project's rules section.

To use this configuration, add an entry to your ESLint configuration's extends section:

{
  "extends": [
    "plugin:ante/style"
  ]
}
Possible Errors

The possible-errors configuration enforces a significant subset of the core rules described at ESLint: Rules: Possible Errors.

To use this configuration, add an entry to your ESLint configuration's extends section:

{
  "extends": [
    "plugin:ante/possible-errors"
  ]
}
Best Practices

The best-practices configuration enforces a significant subset of the core rules described at ESLint: Rules: Best Practices.

To use this configuration, add an entry to your ESLint configuration's extends section:

{
  "extends": [
    "plugin:ante/best-practices"
  ]
}
ECMAScript 6

The es6 configuration enforces a significant subset of the core rules described at ESLint: Rules: ECMAScript 6.

To use this configuration, add an entry to your ESLint configuration's extends section:

{
  "extends": [
    "plugin:ante/es6"
  ]
}
Variables

The variables configuration enforces a significant subset of the core rules described at ESLint: Rules: Variables.

To use this configuration, add an entry to your ESLint configuration's extends section:

{
  "extends": [
    "plugin:ante/variables"
  ]
}

License

eslint-plugin-ante is licensed under the MIT License.

Keywords

FAQs

Package last updated on 11 Dec 2021

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