https://github.com/peakchen90/eslint-plugin-proposal
some rules for ECMAScript proposal. eg: class property.
https://github.com/peakchen90/eslint-plugin-proposal
class class-properties development ecmascript eslint eslint-plugin javascript lint proposal
Last synced: 19 days ago
JSON representation
some rules for ECMAScript proposal. eg: class property.
- Host: GitHub
- URL: https://github.com/peakchen90/eslint-plugin-proposal
- Owner: peakchen90
- License: mit
- Created: 2019-04-09T12:16:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-12T03:41:12.000Z (almost 4 years ago)
- Last Synced: 2025-04-30T13:21:52.221Z (about 1 month ago)
- Topics: class, class-properties, development, ecmascript, eslint, eslint-plugin, javascript, lint, proposal
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-plugin-proposal
- Size: 46.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-proposal

[](https://travis-ci.org/peakchen90/eslint-plugin-proposal)


[](https://www.npmjs.com/package/eslint-plugin-proposal)
[](https://github.com/peakchen90/eslint-plugin-proposal/blob/master/LICENSE)some rules for ECMAScript proposal. eg: class property.
## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ npm i eslint --save-dev
```Next, install `eslint-plugin-proposal`:
```
$ npm install eslint-plugin-proposal --save-dev
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-proposal` globally.
## Usage
Add `proposal` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"proposal"
]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"proposal/class-property-space-infix-ops": "error"
}
}
```## List of supported rules
* [proposal/class-property-space-infix-ops](./docs/rules/class-property-space-infix-ops.md) require or disallow spacing between operator '=' in class property.
* [proposal/class-property-semi](./docs/rules/class-property-semi.md) require or disallow semicolons instead of ASI in class property.
* [proposal/class-property-no-extra-semi](./docs/rules/class-property-no-extra-semi.md) disallow unnecessary semicolons in class property.
* [proposal/class-property-no-semi-spacing](./docs/rules/class-property-no-semi-spacing.md) disallow spacing before semicolons in class property.
* [proposal/class-property-no-dupe-property](docs/rules/class-property-no-dupe-property.md) disallow duplicate class property.
* [proposal/class-property-no-initialized](docs/rules/class-property-no-initialized.md) disallow uninitialized class property.
* [proposal/no-dynamic-import](docs/rules/no-dynamic-import.md) disallow use dynamic import syntax.## Shareable configurations
### Recommended
This plugin exports a recommended configuration.To enable this configuration use the extends property in your .eslintrc config file:
```json
{
"extends": [
"plugin:proposal/recommended"
]
}
```The rules enabled in this configuration are:
* [proposal/class-property-space-infix-ops](./docs/rules/class-property-space-infix-ops.md)
* [proposal/class-property-no-extra-semi](./docs/rules/class-property-no-extra-semi.md)
* [proposal/class-property-no-semi-spacing](./docs/rules/class-property-no-semi-spacing.md)
* [proposal/class-property-no-dupe-property](docs/rules/class-property-no-dupe-property.md)