Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
eslint-config-flowics
Advanced tools
Common coding conventions for ensuring consistent style across Flowics JavaScript projects
Run
npm publish
And answer the questions!
Install eslint, the config, and the required plugins
npm i --save-dev eslint babel-eslint eslint-config-flowics eslint-plugin-react eslint-plugin-promise
eslint-config-flowics
exports 4 different configurations:
backend
(default)frontend
tests
commons
(extended by all previous three)The common use case (for a project with server, client and development code) would be to create
a .eslintrc
file in the project's root folder and include the following line in it:
extends: flowics
This will enforce a backend coding style by default.
To allow proper linting of client code:
.eslintrc
in client code directory env:
browser: true
node: false
To allow proper linting of test code:
.eslintrc
in test code directory env:
mocha: true
NOTE:
frontend
andtests
configuration are recommended only for more specific use cases, like a pure frontend project.
Sets environment node
to true
.
extends: flowics
Sets environment browser
to true
extends: flowics/lib/frontend
Extends from backend
and sets environment mocha
to true
extends: flowics/lib/tests
No environment assumption is made.
extends: flowics/lib/commons
FAQs
ESLint's shareable config for Flowics JavaScript projects
The npm package eslint-config-flowics receives a total of 3 weekly downloads. As such, eslint-config-flowics popularity was classified as not popular.
We found that eslint-config-flowics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.