13.0.2 • Published 6 years ago

eslint-config-mysticatea v13.0.2

Weekly downloads
39
License
MIT
Repository
github
Last release
6 years ago

eslint-config-mysticatea

npm version Downloads/month Build Status Dependency Status

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"]
    }

🚥 Semantic Versioning Policy

This package follows Semantic Versioning 2.0.0

  • Patch release:
    • A new rule is disabled.
    • A rule's option is changed that results in ESLint reporting fewer errors.
    • Re-releasing after a failed release (i.e., publishing a release that doesn't work for anyone).
  • Minor release:
    • A new preset is created.
    • An existing preset is deprecated.
  • Major release:
    • An existing preset is removed.
    • A new rule is enabled.
    • A rule's option is changed that results in ESLint reporting more errors.
    • Required Node.js version is changed.
    • Required ESLint version is changed.

📰 Changelog

💎 Contributing

Development Tools

  • npm test runs tests.
  • npm run watch runs tests when source code are changed.

There is a test script.

  • Check lacking configurations of new rules.
  • Check configurations of rules. (options are valid or not)
  • Check configurations of deprecated rules. (should turn those off)
  • Check configurations of removed rules. (should remove those)
13.0.2

6 years ago

13.0.1

6 years ago

13.0.0

6 years ago

12.0.0

7 years ago

11.0.0

7 years ago

10.0.0

7 years ago

9.0.2

7 years ago

9.0.1

7 years ago

9.0.0

7 years ago

8.0.0

7 years ago

7.0.1

8 years ago

7.0.0

8 years ago

6.0.0

8 years ago

5.0.0

8 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.9.0

8 years ago

1.8.0

9 years ago

1.7.0

9 years ago

1.6.0

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

1.0.0-rc-3-1

9 years ago

1.0.0-rc-2

9 years ago

1.0.0-rc-1

9 years ago

0.24.0

9 years ago

0.23.4

9 years ago

0.23.3

9 years ago

0.23.2

9 years ago

0.23.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago