@climatiq/eslint-config
v3.3.1
Published
ESlint configuration for Climatiq projects
Readme
Climatiq ESLint Config
This package provides Climatiq's ESLint configuration as a base config for any project in Climatiq. It uses ESLint 9's flat config format and includes configurations for Next.js, TypeScript, and Prettier.
Installation
npm install --save-dev @climatiq/eslint-configor with yarn:
yarn add --dev @climatiq/eslint-configor with pnpm:
pnpm add -D @climatiq/eslint-configUsage
Create an eslint.config.mjs file in your project root:
import climatiqConfig from "@climatiq/eslint-config";
export default [
...climatiqConfig,
// Add your custom rules here
];What's Included
This config includes:
- Next.js rules (core web vitals + TypeScript)
- Prettier integration
- Unused imports detection and auto-removal
- Sensible defaults for TypeScript projects
Next.js Projects
Next.js has built-in ESLint support. Simply create your eslint.config.mjs as shown above and run:
next lintRelease process
To publish a new release, just create a new Release on the GitHub Repo Releases page with the new version.
The GitHub Actions workflow release.yaml will tag the new version and publish it to npm.
Therefore, the version in the package.json does not necessarily reflect the current version of the package.
