1.1.1 • Published 7 months ago

eslint-config-justgiving v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

JustGiving Prettier/Eslint Plugin

This Prettier plugin extends the Airbnb JavaScript Style Guide and configures Prettier with recommended settings.

Features and Plugins

Usage

Setup

Install this plugin as a development dependency in your project:

npm install eslint-config-justgiving yarn add eslint-config-justgiving

In package.json, add to the eslintConfig field: "eslintConfig": { "extends": [ "eslint-config-justgiving" ] }

OR

Add to an existing .eslint file: { "extends": ["eslint-config-justgiving"] }

Commands

npx eslint . to identify errors. npx eslint . --fix to identify and fix errors.

Integration with VS Code

To set up your local linting to line up with these settings: 1. Install ESLint extension in VS code (if not previously installed) 2. Edit VS code settings by pressing cmd + shift + p (ctrl + shift + p on windows) 3. Search 'Preferences: Open Settings (JSON)' 4. Edit or add the following: // Format a file on save "editor.formatOnSave": true, // show eslint icon at bottom toolbar "eslint.alwaysShowStatus": true, // turns on Auto Fix for all providers including ESLint "editor.codeActionsOnSave": { "source.fixAll": true }

1.1.1

7 months ago

1.1.0

7 months ago

1.0.18

8 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago