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
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.
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"]
}
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"]
}
Configuration for React applications (basics configuration included). To use in your .eslintrc.json
:
{
"extends": ["cozy-app/react"]
}
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.
You can reach the Cozy Community by:
- Chatting with us on IRC #cozycloud on Libera.Chat
- Posting on our Forum
- Posting issues on the Github repos
- Say Hi! on Twitter
eslint-config-cozy-app
is distributed under the MIT license.