Skip to content
@eslintcc

ESLintCC

JavaScript/TypeScript Complexity of Code

ESLint Complexity of Code npm Checks ➜ Tests ➜ Publish

ESLintCC is a ECMAScript/JavaScript/TypeScript tool that computes complexity of code by using ESLint

ESLint calculates complexity of code, while this tool only collects a report based on his complexity rule messages

Installation and Usage

Requirements, principles of local and global installation and usage are the same as ESLint Installation and Usage

Globally:

$ npm install -g eslintcc
$ eslintcc yourfile.js

Locally:

$ npm install eslintcc
$ ./node_modules/.bin/eslintcc yourfile.js

NPX (you can do it without installing):

$ npx eslintcc yourfile.js

Integration in JavaScript application (see more...):

const { Complexity } = require('eslintcc');

const complexity = new Complexity();
const report = await complexity.lintFiles(['yourfile.js']);

console.log(JSON.stringify(report, null, '\t'));

Note: ESLintCC ignores all rules, specified in configuration files, and uses to generate a report only complexity rules.

see more about eslintcc...

Pinned Loading

  1. eslintcc eslintcc Public

    Complexity of Code - JavaScript/TypeScript

    JavaScript 37

  2. eslintcc.github.io eslintcc.github.io Public

    ESLintCC Home Page

    HTML

Repositories

Showing 3 of 3 repositories
  • eslintcc Public

    Complexity of Code - JavaScript/TypeScript

    eslintcc/eslintcc’s past year of commit activity
    JavaScript 37 MIT 0 3 1 Updated Sep 24, 2024
  • .github Public
    eslintcc/.github’s past year of commit activity
    0 0 0 0 Updated Jun 15, 2023
  • eslintcc.github.io Public

    ESLintCC Home Page

    eslintcc/eslintcc.github.io’s past year of commit activity
    HTML 0 Unlicense 0 0 0 Updated Jun 15, 2023

Top languages

Loading…

Most used topics

Loading…