eslint-config-usecases
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "eslint-config-usecases", | ||
"description": "ESLint configs by usecase", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Marc-Aurèle DARCHE", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -13,8 +13,11 @@ eslint-config-usecases | ||
* JavaScript in Node.js applications (use this for Electron applications too) ([`usecases/usecase/nodejs`](./usecase/nodejs.js)) | ||
* JavaScript in the browsers ([`usecases/usecase/browser`](./usecase/browser.js)) | ||
* JavaScript in development code (including automated tests) ([`usecases/usecase/dev`](./usecase/dev.js)) | ||
* JavaScript in Node.js applications (use this for Electron applications too) | ||
([`usecases/usecase/nodejs`](./usecase/nodejs.js)) | ||
* JavaScript in the browsers | ||
([`usecases/usecase/browser`](./usecase/browser.js)) | ||
* JavaScript in development code (including automated tests) | ||
([`usecases/usecase/dev`](./usecase/dev.js)) | ||
All those usecases have their special env and rules set, and all those usecases | ||
inherit [some common properties](./usecase/lib/common.js). | ||
All those usecases have their special `env` and `rules` set, while inheriting | ||
[some common properties](./usecase/lib/common.js). | ||
@@ -25,7 +28,13 @@ | ||
In your project locally install the `eslint-config-usecases` package: | ||
If not already present, install the `eslint` package locally in your project: | ||
$ npm install eslint --save-dev | ||
Then, still in your project, locally install the `eslint-config-usecases` | ||
package: | ||
$ npm install eslint-config-usecases --save-dev | ||
Then add a file `.eslintrc.js` at the root of your project with the following content: | ||
And finally, you have to add an `.eslintrc.js` file at the root of your project | ||
with the following content: | ||
@@ -32,0 +41,0 @@ ```javascript |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7794
70