@ecssc/eslint-config
v1.0.2
Published
Shared ESLint config for ECSSC projects
Readme
@ecssc/eslint-config
Shared ESLint configuration for ECSSC projects. Requires ESLint 9+ and supports flat config.
Installation
These packages are published to GitHub Packages. Add an .npmrc to your project pointing the @ecssc scope at that registry:
@ecssc:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}GitHub Packages requires authentication even for public packages, so NODE_AUTH_TOKEN must hold a token with the read:packages scope. Then install:
npm install --save-dev @ecssc/eslint-config eslintUsage
Create an eslint.config.mjs:
import defaultConfig from '@ecssc/eslint-config/default'
export default [
...defaultConfig,
]Available Configs
| Import Path | Description |
|-------------|-------------|
| @ecssc/eslint-config/default | Base JavaScript config with import sorting |
| @ecssc/eslint-config/typescript | TypeScript support |
| @ecssc/eslint-config/vue | Vue 3 + TypeScript + Tailwind + Prettier |
| @ecssc/eslint-config/react-native | React Native support |
Combining Configs
Layer typescript on top of default for a TypeScript project:
import defaultConfig from '@ecssc/eslint-config/default'
import typescriptConfig from '@ecssc/eslint-config/typescript'
export default [
...defaultConfig,
...typescriptConfig,
]The vue and react-native configs are self-contained presets — vue already bundles TypeScript, Tailwind, and Prettier, so use them on their own rather than stacking them with typescript.
