This package has been deprecated

Author message:

Deprecated in favor of eslint-plugin-v3xlabs.

eslint-plugin-lvksh

1.4.1 • Public • Published

Javascript Style Guide

The Official lvkdotsh javascript/typescript style-guide and linting rules.

Installation

Using npm:

npm install --save-dev eslint eslint-plugin-lvksh

or if you prefer to use the yarn package manager:

yarn add -D eslint eslint-plugin-lvksh

Usage

Recommended .eslintrc.json:

{
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
        "ecmaVersion": 2021
    },
    "extends": [
        "plugin:lvksh/recommended"
    ],
    "ignorePatterns": ["!**/*"],
    "plugins": ["lvksh"],
    "env": {
        "node": true
    },
    "rules": {}
}

The linting command you probably want to use. (Add this to your scripts section)

"lint": "eslint -c .eslintrc.json --ext .ts ./src"

Or if your project also has tests

"lint": "eslint -c .eslintrc.json --ext .ts ./src ./tests"

You might also have to install @typescript-eslint/parser, and probably typescript.

In addition to the above a .prettierrc file is also recommended with the following contents.

{
    "tabWidth": 4,
    "useTabs": false,
    "singleQuote": true
}

Contributors

LICENSE

This package is licensed under the MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-lvksh

Weekly Downloads

1

Version

1.4.1

License

MIT

Unpacked Size

30.9 kB

Total Files

29

Last publish

Collaborators

  • lucemans