@zohodesk/codestandard-analytics

1.0.0 • Public • Published

Linter Analysis Tool

Overview

This tool is designed to streamline the linting process for JavaScript projects using ESLint and SonarQube. It automates the configuration of ESLint and facilitates integration with your SonarQube server for comprehensive code analysis.

Configuration

ESLint

ESLint configuration can be customized in the .eslintrc.js file. Refer to the ESLint documentation for available configuration options and rules.

SonarQube

Need to setup Sonar Jar in Java-jar Folder

Configure your SonarQube server settings in the lint.config.js file.

Usage

To lint your code using ESLint, run the following command:

-** To run locally **

npx npx ZDLintingFramework lint -- --dir=path/to/file

--** To run CI **

npx ZDLintingFramework lint-ci

flags

  • --dir - specify directory to lint

Running Unit Tests

This project uses Jest for unit testing.

Setup

  1. Install dependencies (if not already):

    npm install
  2. (Optional) If you add new test files, ensure they are named *.test.js and placed in src/test/ or src/utils/.

Running Tests

npm test

or

npx jest

Notes

  • The project uses ES modules ("type": "module" in package.json).
  • Jest config is in jest.config.js.
  • You can mock dependencies using jest.mock() as shown in the test files.

For more advanced configuration, see the Jest documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i @zohodesk/codestandard-analytics

Weekly Downloads

752

Version

1.0.0

License

ISC

Unpacked Size

797 kB

Total Files

47

Last publish

Collaborators

  • deekay.npm
  • vimalesan
  • skumaresan
  • kathiresan.r
  • jesinth
  • sriramamoorthy
  • lingam
  • ponkumar.s
  • kdsankar
  • sudalaimuthu
  • iniankarthick
  • johnson_raavanan
  • ksamy2020
  • kumaresanm
  • villuvicky
  • _dev_johnson
  • karuppiah.r
  • lakshmi_ts
  • iambk
  • vallinayagam.t
  • navas-0968
  • ganeshkumar.m
  • muthumari
  • antro.j
  • mariappan.r
  • prakash.m
  • maheshmdr
  • esakkimuthu1512
  • madhubalan
  • selvakumar.pl
  • mahalingam.chinnasamy
  • hariharan_vs
  • ramkumar90
  • sankara.subramanian
  • eldhose_saji
  • aravindh.ts
  • deekay.zoho
  • rajsekar.haribalan
  • sheikbasheeth
  • arunkumar.ps
  • jos33
  • immanuel.sm
  • ravikumars
  • rajagopal.g
  • sangeetha-19940
  • ramarajkiren.rs
  • ponkumar_zoho
  • mssethulakshmi
  • renukadevi06
  • siva.subramanian
  • sureshk