3.0.0 • Published 3 years ago

eslint-config-ruppy-base v3.0.0

Weekly downloads
28
License
MIT
Repository
github
Last release
3 years ago

eslint-config-ruppy-base 🐣

Discord GitHub Workflow Status NPM Package

Ruppy's base eslint configurations

Description

This eslint configurations is mostly follow and heavily inspired by Airbnb JavaScript Style Guide. Ruppy use prettier styles for formatting the codes. With that it mind, this configs extends prettier for linting javascript code styles with prettier. This eslint configurations has two exported configs.

ruppy-base

This is the default configs. It contains all eslint rules without deprecated and removed rules. It support for linting ES2015/ES6 - ES2017 javascript syntax without ESModules by default.

ruppy-base/legacy

This configs support for linting legacy javascript language (ES5 and below).

Usage

  • The easiest way to add this configs into project is running this commands in your root project:

    npx eslint-ruppy -i

OR follow along these steps below:

  • Install this configs and its peer dependencies.

    yarn add -D eslint-config-ruppy-base eslint prettier

    or

    npm install -D eslint-config-ruppy-base eslint prettier
  • Create .eslintrc.js file in the root project and extends this configs. Also set the environment your project would live on.

    require("eslint-config-ruppy-base/patch");
    
    module.exports = {
      extends: ["ruppy-base"], // or 'ruppy-base/legacy' for ES5 and below
      env: {
        node: true,
        browser: true,
      },
    };

    An environment defines global variables that are predefined. See eslint configurations guide for available environments.

  • Optionally create prettier configuration file for the code styles, .prettierrc:

    {
      "overrides": [
        {
          "files": "*.{js,jsx,ts,tsx}",
          "options": {
            "singleQuote": true
          }
        }
      ]
    }

    See all available prettier options and how to write configuration files to see more info on that.

Hacking to the Gate~! 🎶

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.0

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.4.1

4 years ago

0.4.2

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago