1. eslint-config-spatie
Spatie's ESLint config
eslint-config-spatie
Package: eslint-config-spatie
Created by: spatie
Last modified: Fri, 17 Jun 2022 20:09:58 GMT
Version: 2.0.3
License: MIT
Downloads: 365
Repository: https://github.com/spatie/eslint-config-spatie

Install

npm install eslint-config-spatie
yarn add eslint-config-spatie

eslint-config-spatie

Our base eslint configuration.

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Installation

Install this package, and save it as a devDependency:

npm install --save-dev eslint-config-spatie

Then have your project's .eslintrc file extend the ruleset.

 {
    "extends": "spatie"
}

If you're using React in your project, you'll need to extend the React extension of the configuration, and install the eslint React plugin:

 {
    "extends": "spatie/react"
}
yarn add eslint-plugin-react --dev

If you're using Vue in your project, you'll need to extend the Vue extension of the configuration, and install the eslint Vue and html plugins:

 {
    "extends": "spatie/vue"
}
yarn add eslint-plugin-vue eslint-plugin-html --dev

Common Settings Cookbook

Globals

 {
    "globals": {
        "$": true
    }
}

Environments

 {
    "env": {
      "browser": true,
      "node": true
    }
}

About Spatie

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code