Giter VIP home page Giter VIP logo

eslint-config's Introduction

eslint-config-mysticatea

This package was deprecated. Please use @mysticatea/eslint-plugin instead.

Shareable configurations of ESLint.

There is basic configuration at base.js.

๐Ÿ’ฟ Installation

npm install --save-dev eslint eslint-config-mysticatea

Requirements

  • Node.js ^4.0.0, ^6.0.0, ^8.0.0, or newer.
  • ESLint ^4.14.0, or newer.

๐Ÿ“– Usage

Write in your ESLint configurations: http://eslint.org/docs/user-guide/configuring#using-the-configuration-from-a-plugin

First, please choose a base template.

  • mysticatea - A rule set for ECMAScript 2017.
  • mysticatea/es5 - A rule set for ECMAScript 5.

Second, please choose a optional template and add it.

  • mysticatea/browser - An additional setting for browser environment.
  • mysticatea/mocha - An additional setting for mocha environment.
  • mysticatea/modules - An additional setting for ES Modules enviroment.
  • mysticatea/node - An additional setting for Node.js environment.
  • mysticatea/vue - An additional setting for Vue.js environment. This setting includes mysticatea/browser and mysticatea/modules.

Then, please write those into extends field.

Examples

  • Node.js with ES5

    {
        "extends": ["mysticatea/es5", "mysticatea/node"]
    }
  • Node.js with ES2015

    {
        "extends": ["mysticatea", "mysticatea/node"]
    }

    In this case, engines field of package.json is needed to specify the version of Node.

  • Node.js with ES2015 & Modules

    {
        "extends": ["mysticatea", "mysticatea/modules", "mysticatea/node"]
    }

    In this case, engines field of package.json is needed to specify the version of Node. Or just turn node/no-unsupported-features off.

  • Browser with ES2015

    {
        "extends": ["mysticatea", "mysticatea/browser"]
    }

eslint-config's People

Contributors

mysticatea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rzeng95

eslint-config's Issues

Remove TDD variables from 'mysticatea/mocha' preset.

Currently:

        "after": false,
        "afterEach": false,
        "before": false,
        "beforeEach": false,
        "context": false,
        "describe": false,
        "it": false,
        "mocha": false,
        "setup": false,
        "specify": false,
        "suite": false,
        "suiteSetup": false,
        "suiteTeardown": false,
        "teardown": false,
        "test": false,
        "xcontext": false,
        "xdescribe": false,
        "xit": false,
        "xspecify": false

I need:

    "globals": {
        "after": false,
        "afterEach": false,
        "before": false,
        "beforeEach": false,
        "context": false,
        "describe": false,
        "it": false,
        "mocha": false,
        "xcontext": false,
        "xdescribe": false,
        "xit": false
    },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.