@ngnlx/eslint-config

0.0.10 • Public • Published

License: MIT

Introduction

The common ESLint config makes the code clean, consistent, more readable, and understandable.

Installation

npm install @ngnlx/eslint-config
OR
yarn add @ngnlx/eslint-config

Usage

{
  "extends": ['eslint:recommended', '@ngnlx/eslint-config']
}

Add .prettierrc.js in root folder of application with configurations below:

module.exports = {
  singleQuote: true,
  printWidth: 120,
  trailingComma: 'none',
  arrowParens: 'always'
};

You can override rules by addding custom rules into rules node in .eslintrc.js/.eslintrc.json/package.json/... in your application.

Example:

rules: {
  semi: "off",
},

Execute linting the project:

VueJS app

We have already linting command:

"lint": "vue-cli-service lint"

Just run the command below to execute linting:

yarn lint
or
npm run lint

License

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @ngnlx/eslint-config

      Weekly Downloads

      1

      Version

      0.0.10

      License

      MIT

      Unpacked Size

      6.18 kB

      Total Files

      8

      Last publish

      Collaborators

      • nguyenlx