My personal ESLint settings.
Note: The below commands will generate the command you will need to run for installation. You can replace
yarn add --dev
withnpm i --save-dev
if not using Yarn.
(
export PKG=eslint-config-wyze; npm info $PKG config.basePeers --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs echo yarn add --dev $PKG
)
(
export PKG=eslint-config-wyze; npm info $PKG config.reactPeers --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs echo yarn add --dev $PKG
)
(
export PKG=eslint-config-wyze; npm info $PKG config.flowPeers --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs echo yarn add --dev $PKG
)
{
// React
"eslintConfig": {
"extends": "wyze"
}
// Preact
"eslintConfig": {
"extends": "wyze/preact"
}
// Non-React
"eslintConfig": {
"extends": "wyze/base"
}
// Flow
"eslintConfig": {
"extends": "wyze/flow"
}
// Multiple (React + Flow)
"eslintConfig": {
"extends": [
"wyze",
"wyze/flow"
]
}
}
Package | Base | Preact/React | Flow |
---|---|---|---|
babel-eslint | 📦 | ||
eslint | 📦 | 📦 | 📦 |
eslint-config-airbnb | 📦 | 📦 | |
eslint-plugin-eslint-comments | 📦 | 📦 | |
eslint-plugin-flowtype | 📦 | ||
eslint-plugin-import | 📦 | 📦 | |
eslint-plugin-jsx-a11y | 📦 | ||
eslint-plugin-react | 📦 | ||
eslint-plugin-wyze | 📦 | 📦 |
v5.0.0 (2017-04-02)
- [
facbd4e68b
] - Upgrade dependencies (Neil Kistner) - [
5a278abd00
] - Update readme and installation method (Neil Kistner) - [
c8476650de
] - Addeslint-comments
plugin (Neil Kistner) - [
3d20212e92
] - Enable rules foreslint-plugin-jsx-a11y
@4 and require overrides (Neil Kistner) - [
6162b2b688
] - Exclude test files from npm package (Neil Kistner) - [
3265224d17
] - Upgrade dependencies (Neil Kistner) - [
3e2283e267
] - Update version script to skip beta releases in changelog (Neil Kistner) - [
63f1686355
] - Enable someeslint-plugin-jsx-a11y
rules (Neil Kistner) - [
c7fd8556ff
] - Enablereact/void-dom-elements-no-children
rule (Neil Kistner) - [
62c1ebcf45
] - Relaxreact/sort-prop-types
rule (Neil Kistner) - [
f3c9fe769f
] - Remove react rules enforced by AirBnb (Neil Kistner) - [
cd4a6a1d29
] - Relaxreact/jsx-sort-props
rule (Neil Kistner) - [
57c75e3d9d
] - Add past changelog and changelog build script (Neil Kistner) - [
a878cce34a
] - Fix build (Neil Kistner) - [
b1fa5888f7
] - Upgrade dependencies (Neil Kistner) - [
645d72e356
] - Fixing lint errors (Neil Kistner) - [
8f666bbf5d
] - Streamline test process a little more (Neil Kistner) - [
763c78b238
] - Always enforce space in arrays, no exceptions (Neil Kistner) - [
ec0c03368d
] - Removemax-len
rule and fall back to AirBnb's (100 char) (Neil Kistner) - [
96569b19a8
] - Removeid-blacklist
rule and use AirBnb's setting (Neil Kistner) - [
bc33e5b42c
] - Switch to Jest for testing (Neil Kistner) - [
62302e6d52
] - Quick project cleanup (Neil Kistner)
MIT © Neil Kistner