2.1.1 • Published 1 year ago
@apogeelabs/eslint-config v2.1.1
@apogeelabs/eslint-config
This package provides an eslint9 flat config base for Apogee projects.
Usage
To use this configuration:
- include this package.json
peerDependenciesin your project'sdevDependencies - install this package:
npm install --save-dev @apogeelabs/eslint-config - create an eslint.config.js file in your prjoect that uses the Apogee config:
import { fileURLToPath } from "url";
import { dirname } from "path";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
import globals from "globals";
import apogeeConfig from "@apogeelabs/eslint-config";
export default [
{
ignores: [ /* project-specific ignores */ ],
},
{
languageOptions: {
globals: { ...globals.node },
},
},
...apogeeConfig(__dirname),
{
// project-specific configuration
},
];- verify your rules are configured correctly:
npx eslint --inspect-config
Building/Publishing
- install dependencies:
npm ci - make code changes
- update package.json verison number
- build code changes:
npm run build - publish package:
npm publish
References
- eslint Documentation
- Migrate to v9.x
- ESLint's new config system, Part 1 and Part 2
2.0.15
1 year ago
2.0.3
1 year ago
2.1.1
1 year ago
2.0.16
1 year ago
2.0.2
1 year ago
2.0.13
1 year ago
2.0.5
1 year ago
2.0.14
1 year ago
2.0.11
1 year ago
2.0.7
1 year ago
2.0.12
1 year ago
2.0.6
1 year ago
2.0.9
1 year ago
2.0.10
1 year ago
2.0.8
1 year ago
2.1.0
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
2.0.19
1 year ago
2.0.17
1 year ago
2.0.18
1 year ago
2.0.20
1 year ago
1.3.0
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago