8.1.0 • Published 8 months ago

eslint-config-makeable v8.1.0

Weekly downloads
85
License
-
Repository
-
Last release
8 months ago

Makeable esLint-setup

Enable Makeable's NodeJS formatting and linting for Typescript projects

Prerequisites

To enable auto-formatting when saving in vscode, the extension ESLint is required.

https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

Installation

cd into the directory containing your Typescript package.json and run the following command:

npm i eslint-config-makeable -D

Copy the following scripts into your package.json-file:

"scripts": {
    "lint": "eslint --ext .ts,.js,.vue src/",
    "lint:fix": "eslint --fix --ext .ts,.js,.vue src/"
}

Copy the following setting into your package.json-file:

"eslintConfig": {
    "extends": [
        "eslint-config-makeable"
    ]
},

Copy the .vscode folder from the newly installed node-module to the root of your directory to avoid auto-formatting conflicts with other services like prettier-extension, typescript and vscode auto-formatting.

Usage

The following command will show all the errors and warnings in the current project:

npm run lint

The following command will format all the easy fixes for the current project

If the eslint-extension for vscode is enabled, this command will be executed automatically when saving a file.

npm run lint:fix

8.1.0

8 months ago

7.0.2

10 months ago

7.0.1

10 months ago

8.0.0

10 months ago

7.0.0

1 year ago

6.2.1

1 year ago

6.1.0

2 years ago

5.3.0

2 years ago

5.2.0

2 years ago

5.1.0

4 years ago

5.0.0

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago