0.0.2 • Published 6 years ago
eslint-plugin-surround-object-in-file-with-parentheses v0.0.2
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-devNext, install eslint-plugin-surround-object-in-file-with-parentheses:
$ npm install eslint-plugin-surround-object-in-file-with-parentheses --save-devNote: 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"
]
}