8.1.0 • Published 2 years ago

eslint-config-makeable v8.1.0

Weekly downloads
85
License
-
Repository
-
Last release
2 years 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

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

8.0.0

2 years ago

7.0.0

2 years ago

6.2.1

2 years ago

6.1.0

3 years ago

5.3.0

3 years ago

5.2.0

4 years ago

5.1.0

6 years ago

5.0.0

6 years ago

4.1.2

6 years ago

4.1.1

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago