
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
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 509 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.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.