@ngnlx/eslint-config

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

Usage no npm install needed!

<script type="module">
  import ngnlxEslintConfig from 'https://cdn.skypack.dev/@ngnlx/eslint-config';
</script>

README

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