Standard linting rules for ESLint, suitable for all JavaScript projects.
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
Within your ESLint configuration file (e.g: .eslintrc.json), add an entry to the "plugins" section:
{
"plugins": [
"eslint-plugin-ante"
]
}
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"
]
}
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"
]
}
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"
]
}
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"
]
}
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"
]
}
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"
]
}
eslint-plugin-ante is licensed under the MIT License.