eslint-config-trails v3.1.0
eslint-config-trails
:shipit: Trails ESLint Configuration
The sharable ESLint config used in the trails.js projects. This config is also included in newly generated Trails projects. We recommend that you use this config for consistency, but it is not required.
Usage
Default
The default ESLint configuration lints for ES6.
Install the default configuration package and eslint dependency:
npm install --save-dev eslint-config-trails eslintAdd the config to a .eslintrc.json file or the eslintConfig object in package.json using the ESLint extends attribute:
{
"extends": "trails"
}React.js
The React.js eslint configuration lints for both ES6 and React.js.
Install the React.js configuration package and eslint dependency:
npm install --save-dev eslint-config-trails eslint-plugin-react eslintAdd the config to a .eslintrc.json file or the eslintConfig object in package.json using the ESLint extends attribute:
{
"extends": "trails/react"
}Testing
A module for test-specific rules is available.
Add the config to a .eslintrc.json file or the eslintConfig object in package.json using the ESLint extends attribute:
{
"extends": "trails/test"
}Config
A couple minor rules are relaxed for the trails config/ folder.
{
"extends": "trails/config"
}License
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago