1.2.0 • Published 3 months ago

@frontendlive/eslint-config v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

eslint-config-frontendlive

Personal ESLint Configuration for projects at github.com/frontendlive

Features

  • JavaScript linting with eslint-config-airbnb
  • React best practices (including hooks)
  • Accessibility (a11y) best practices
  • Browser compatibility warnings
  • Typescript integration
  • Import sorting

Sort Order

This configuration enables automatic import sorting using eslint --fix to sort imports to the following order:

  1. import React from 'react' (always goes first)
  2. Third party libraries (i.e. from node_modules)
  3. Imports from the root directory using the alias '@/../..'
  4. Relative imports (i.e. ../ or ./)

Imports in the same group will then be sorted alphabetically.