0.0.2 • Published 6 years ago

eslint-plugin-surround-object-in-file-with-parentheses v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

eslint-plugin-surround-object-in-file-with-parentheses

Converts files with only { ... } in them into ({ ... }) so that eslint can parse it

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-surround-object-in-file-with-parentheses:

$ npm install eslint-plugin-surround-object-in-file-with-parentheses --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-surround-object-in-file-with-parentheses globally.

Usage

Add surround-object-in-file-with-parentheses to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "surround-object-in-file-with-parentheses"
    ]
}