Skip to content
@eslintcc

ESLintCC

JavaScript/TypeScript Complexity of Code

ESLint Complexity of Code npmChecks ➜ 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');constcomplexity=newComplexity();constreport=awaitcomplexity.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. eslintcceslintccPublic

    Complexity of Code - JavaScript/TypeScript

    JavaScript 40

  2. eslintcc.github.ioeslintcc.github.ioPublic

    ESLintCC Home Page

    HTML

Repositories

Showing 3 of 3 repositories

Top languages

Loading…

Most used topics

Loading…