0.1.13 • Published 6 months ago
@mochaa/eslintrc v0.1.13
@mochaa/eslintrc
mochaa's shareable eslint config, version 0.
overview
- more strict with unsafe practices.
- tabs and semicolons. single quotes. no abbreviations.
- type aware if using typescript.
- proper react checks.
- latest eslint features.
- stylistically similar to
xo, feature-wiseantfu-ish. - maintained by someone with ocd.
rules
- fp first. use
nothrow, avoid class,thisin own code. prefer immutable data withconstandreadonlytypes. - use arrow functions to annotate pure functions. otherwise use traditional function declaration.
- use full name instead of acronym or abbreviation.
use
import rules from '@mochaa/eslintrc';
export default rules;