1.0.0 • Published 4 years ago
@pixelperf/eslint-config v1.0.0
eslint-config-pixelperf
Personal ESLint Configuration for projects at github.com/pixelperf
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:
import React from 'react'(always goes first)- Third party libraries (i.e. from
node_modules) - Imports from the root directory using the alias
'@/../..' - Relative imports (i.e.
../or./)
Imports in the same group will then be sorted alphabetically.