Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including eslint-config-cozy-app with all npm packages installed. Try it out:

var eslintConfigCozyApp = require("eslint-config-cozy-app")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-config-cozy-app v1.1.12

ESLint config for Cozy Application (Cozy Cloud)

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"]
}

Vue

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

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

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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free