Skip to content

spatie/eslint-config-spatie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-spatie

This package isn't actively maintained anymore, and the documentation is outdated!

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.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

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.

About

Our base eslint configuration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published