Skip to content

devshareacademy/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config

Shared Eslint config for my projects

Install

yarn add -DE @devshareacademy/eslint-config

Note: In order to use the package, you will need to have the peer dependencies that are listed installed in your project. You can add these dependencies by running the following command:

yarn add -D -E eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-prettier prettier

Install Via GitHub NPM Packages

You can install this package from the GitHub NPM Package Repository. In order to do this, you must first authenticate with GitHub packages. You can read more about this process here: GitHub - Installing A GitHub Package.

yarn config set @lookio:registry https://npm.pkg.github.com/
echo "//npm.pkg.github.com/:_authToken=<github_personal_access_token>" > .npmrc
yarn add -DE @devshareacademy/eslint-config

Usage

.eslintrc

{
  "root": true,
  "extends": "@devshareacademy/eslint-config",
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "rules": {}
}

Publish New Version

# Authenticate with NPM Package Registry
npm login

# Run publish script
yarn publish:npm
yarn publish:github

Shared Configurations