Skip to content

yooga-tecnologia/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESlint Config

A set of rules for JS applications, considering Yooga recommendations.

Please prefer to give feedbacks or update rules in our monorepo instead of using eslint-disable

Project structure

.
└── src/
    ├── 📦eslint-config-base
    ├── 📦eslint-config-angular
    └── 📦eslint-config-vue # WIP

Base

Base config for JS files, inspired by Airbnb's eslint plugin.

Recommended for:

  • Simple projects, without frameworks (like this one)

Angular

A plugin recommended for Angular projects, also inspired by Airbnb's eslint plugin, which encapsulates rules from angular-eslint.

✅ Can be used for: Projects which contain Angular framework

⛔ Should not be used for: Vue, React, and other front-end frameworks which is not related to Angular.

Vue

A WIP project. Will be available soon. ;)

Install

Github Packages

Using GitHub Packages to manage app packages? Make sure to follow the official guide.

NPM

  1. Replace PACKAGE-NAME by base || angular || vue

  2. Add the package to your project

npm i --save-dev @yooga/eslint-config-PACKAGE-NAME
  1. Create config file (.eslintrc.js) at project root:
module.exports = {
  "ignorePatterns": [
    // Add ignored files and folders here
  ],
  "extends": [
    "@yooga/eslint-config-PACKAGE-NAME/.eslintrc.js"
  ]
}
  1. Add scripts to your project
{
    "scripts": {
        "lint:js": "npx eslint",
        "lint:cache": "npx eslint --cache-strategy content",
    }
}

About

Style Guide for Yooga projects written in JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published