@rollstack/eslint-config
v0.1.1
Published
ESLint config for Rollstack projects
Downloads
10
Readme
@rollstack/eslint-config
ESLint config for Rollstack projects
Usage
Install as a dev dependency alongside ESLint and predefined global variables:
pnpm add -D @rollstack/eslint-config
pnpm add -D eslint globalsSet up ESLint with presets documented below:
// eslint.config.js
import baseConfig from "@rollstack/eslint-config/base";
import { defineConfig } from "eslint/config";
import globals from "globals";
export default defineConfig([
{ files: ["**/*.ts", "**/*.mts", "**/*.cts", "**/*.jsx", "**/*.tsx"] },
{ ignores: ["dist/"] },
...baseConfig,
{
languageOptions: {
globals: {
...globals["shared-node-browser"],
},
},
},
]);If using TypeScript, consider adopting @total-typescript/tsconfig or:
- Enable
strictNullChecksor the broaderstrictcompiler option - Set
moduletoPreserveorNodeNext, as package entry points may fail to resolve otherwise
Presets
base— JS + TS, no framework-specific rules, typed linting via project service
