@eco-linter/core
v1.1.4
Published
eco-linter analysis engine — rules, scoring, and reporters
Maintainers
Readme
@eco-linter/core
Analysis engine for @eco-linter/cli — rules, scoring, and reporters.
This is an internal package consumed by @eco-linter/cli and @eco-linter/eslint-plugin. For end-user docs see the @eco-linter/cli package.
Programmatic API
import { analyzeProject } from '@eco-linter/core';
const result = await analyzeProject({
cwd: '/path/to/project',
region: 'eu-west',
});
console.log(result.score); // 82
console.log(result.grade); // 'B'
console.log(result.estimatedCO2ePerBuild); // 0.4
console.log(result.violations); // Violation[]License
MIT
