Skip to content

colinrobertbrooks/eslint-config-colinrobertbrooks

Repository files navigation

eslint-config-colinrobertbrooks

ESLint rules for my personal projects using eslint-config-airbnb as a base and exposing some additional extensions.

npm version

Usage

Install packages:

npm install --save-dev eslint eslint-config-colinrobertbrooks

Add "extends": "colinrobertbrooks" to your .eslintrc:

{
  "extends": "colinrobertbrooks",
  "env": {
    "browser": true // be sure to add this for frontend projects
  },
  "rules": {
    // your overrides
  }
}

Additional extensions:

  • colinrobertbrooks/cypress
  • colinrobertbrooks/jest
  • colinrobertbrooks/prettier
  • colinrobertbrooks/typescript

colinrobertbrooks/prettier must come last in the "extends" array so it gets the chance to override other configs.

License

MIT