Skip to content

codeur/eslint-config-codeur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeur ESLint Config

Requirements

Follow this guide to get your personnal access token dedicated to GitHub package registry: Creating a personal access token for the command line

Add your token to ~/.npmrc like so:

//npm.pkg.github.com/:_authToken=YOURTOKENHERE

If you want to use Github Actions on a project using this package, you need to set the registry authentication in the test:

  - name: NPM Authentication
    run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_PERSONAL_TOKEN }}" >> ~/.npmrc

Note that you need to give a personnal token to your repository settings (Settings > Secrets) in order to use the secrets object in your workflow files.

Installation

Using .npmrc file

If the project doesn't have a .npmrcat its root yet, create one and add the following line. Simply add the line if the project already has one:

@codeur:registry=https://npm.pkg.github.com

Then install the package using npm or yarn

npm install @codeur/eslint-config eslint
or
yarn add @codeur/eslint-config eslint

Using command line

Run the following command

yarn add @codeur/eslint-config --registry https://npm.pkg.github.com/

Usage

Add the config to ESLint config file .eslintrc.js

module.exports = {
  extends: [
    "@codeur"
  ]
}

Development

To publish a newer version of the package, update version number in package.json run npm publish

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •