Skip to content

rodogir/eslint-config

Repository files navigation

@rodogir/eslint-config

This package provides @rodogir's personal eslint configuration as a ready to use package.

Introduction

This eslint config supports the following technologies and plugins:

  • TypeScript
  • React
  • Airbnb
  • Prettier

Quick Start

yarn add -D @rodogir/eslint-config prettier@2

Then, create a .eslintrc.js file with the following content.

module.exports = {
  extends: "@rodogir/eslint-config",
};

Add a script to lint your code to the package.json

{
  // ...
  "scripts": {
    // ...
    "lint": "eslint --ext .js,.jsx,.ts,.tsx ./"
  }
}

Add a tsconfig.eslint.json file with the following content. See here why this is necessary.

{
  "extends": "./tsconfig.json",
  "include": ["/**/*.ts", "/**/*.tsx", "./**/*.js"]
}

Publish new version

Use the npm version command to update the version number. This will automatically create a commit and tag it.

npm version minor

Now, just push the tag to origin and the the new version is automatically released to GitHub Packages.

git push --tags

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages