Skip to content

SocialGouv/linters

Repository files navigation

Linters

🧹The Social Gouv linters✨

Github Master CI Build Status License: Apache-2.0 Npm version





Packages

Project Package Version Links
eslint-config-react @socialgouv/eslint-config-react latest README
eslint-config-recommended @socialgouv/eslint-config-reco latest README
eslint-config-typescript @socialgouv/eslint-config-typescript latest README




Usage

Each linter has its own REAME (see links above). As described in eslint-config-recommended README, you can install the config with :

$ npm install -D @socialgouv/eslint-config-recommended eslint prettier
# or
$ yarn add -D @socialgouv/eslint-config-recommended eslint prettier

You can either:

  • add this to your .eslintrc.yml file:

    extends:
      - "@socialgouv/eslint-config-recommended"
  • or add this to your .eslintrc.json file:

    {
      "extends": ["@socialgouv/eslint-config-recommended"]
    }
  • or add this to your package.json file:

    {
      "eslintConfig": {
        "extends": ["@socialgouv/eslint-config-recommended"]
      }
    }

And enjoy it!





Release policy

Auto

Trigger a custom build on Travis (in the "More options" right menu) on the master branch with a custom config:

env:
  global:
    - RELEASE=true

Manual

You need an Github token to release.

#
# Bump, push to git and publish to npm
$ yarn lerna publish

#
# Publish the tag change log on the Github Release
$ CONVENTIONAL_GITHUB_RELEASER_TOKEN==************ npx conventional-github-releaser -p angular

#
# You might want to add a Gif to your release to make it groovy ;)