Skip to content

Eslint Config Cozy App

What’s eslint-config-cozy-app?

Shareable configurations for Cozy Applications and scripts.

This package is an ESLint shareable config already used by create-cozy-app.

To install:

yarn add --dev eslint-config-cozy-app

Usage with a Create Cozy App projects

If you started your project using create-cozy-app, you don’t need to do anything, you should already have an .eslintrc.json configured to used this preset.

Usage with other projects

In a file named .eslintrc.json (the ESLint configuration file), you can use the config by extending it. For example (see following available configurations documentation):

{
    "extends": ["cozy-app"]
}

Available configurations

Basics

Basic configuration for common Javascript code, this is the default configuration. To use in your .eslintrc.json:

{
    "extends": ["cozy-app"]
}

Or if you want to use it explicitely:

{
    "extends": ["cozy-app/basics"]
}

React

Configuration for React applications (basics configuration included). To use in your .eslintrc.json:

{
    "extends": ["cozy-app/react"]
}

Community

What’s Cozy?


Cozy is a platform that brings all your web services in the same private space. With it, your webapps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one’s tracking you.

Get in touch

You can reach the Cozy Community by:

License

eslint-config-cozy-app is distributed under the MIT license.