This package has been deprecated

Author message:

This package is migrated to eslint-plugin-proposal(https://github.com/peakchen90/eslint-plugin-proposal)

eslint-plugin-proposal-class

1.1.6 • Public • Published

eslint-plugin-proposal-class

npm (tag) Travis (.org) branch node npm peer dependency version npm GitHub

some rules for proposal class. eg: class property.

This package is migrated to eslint-plugin-proposal, please use eslint-plugin-proposal instead of eslint-plugin-proposal-class.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-proposal-class:

$ npm install eslint-plugin-proposal-class --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-proposal-class globally.

Usage

Add proposal-class to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [
    "proposal-class"
  ]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "proposal-class/class-property-space-infix-ops": "error"
  }
}

List of supported rules

Shareable configurations

Recommended

This plugin exports a recommended configuration.

To enable this configuration use the extends property in your .eslintrc config file:

{
  "extends": [
    "plugin:proposal-class/recommended"
  ]
}

The rules enabled in this configuration are:

Package Sidebar

Install

npm i eslint-plugin-proposal-class

Weekly Downloads

3

Version

1.1.6

License

MIT

Unpacked Size

30.5 kB

Total Files

23

Last publish

Collaborators

  • peakchen90