
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
sails-generate-eslintrc
Advanced tools
generate eslint config file which contains sails's globals
Generate eslint config file which contains sails's globals.
It will generate .eslintrc-sails(sails globals file ) and .eslintrc (eslint config file. If it exists, it will be updated).
.eslintrc-sails
{
"globals": {
"sails": true,
"UserController": true,
"User": true
}
}
.eslintrc
If not exists: it will be created.
{
"extends": [
"google",
".eslintrc-sails"
]
}
If exists: it will be updated(fourth line)
{
"extends": [
"google",
".eslintrc-sails"
],
"env": {
"node": true,
"browser": true
},
"plugins": [
"jsdoc"
],
"globals": {}
}
global install(Recommend)
Install:
npm install sails-generate-eslintrc -g
Run:
When you run it first:You can run it under project root path in command line.It will add [sails] and object under ['api/controllers', 'api/models', 'api/services']
sails-generate-eslintrc
When you want to append some globals:
sails-generate-eslintrc -g sails -f api/models -m append
When you want to override config file with globals given by paramters:
sails-generate-eslintrc -g sails -f api/models -m override
install in project path
Install:
npm install sails-generate-eslintrc
Run:
You need run it under project root path in command line
node_modules/.bin/sails-generate-eslintrc
npm install eslint-config-google
FAQs
generate eslint config file which contains sails's globals
The npm package sails-generate-eslintrc receives a total of 772 weekly downloads. As such, sails-generate-eslintrc popularity was classified as not popular.
We found that sails-generate-eslintrc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.