sails-generate-eslintrc
Advanced tools
Comparing version
{ | ||
"name": "sails-generate-eslintrc", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "generate eslint config file which contains sails's globals", | ||
"main": "generate.js", | ||
"bin": "./generate.js", | ||
"main": "index.js", | ||
"bin": "./index.js", | ||
"scripts": { | ||
@@ -8,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
@@ -5,5 +5,17 @@ # sails-generate-eslintrc | ||
Generate eslint config file which contains sails's globals.<br/> | ||
It will generate .eslintrc-sails and .eslintrc (if it exists, it will be updated). | ||
It will generate .eslintrc-sails(sails globals file ) and .eslintrc (eslint config file. If it exists, it will be updated). | ||
## Example | ||
## Parameter | ||
- -m --mode | ||
+ *Default* : Add default globals which contains [sails] and object under ['api/controllers', 'api/models', 'api/services'] | ||
+ append: Add other globals given by other parameters(-g, -f), which are appended in sails globals file(.eslintrc-sails) | ||
+ override: Override sails globals file by other parameter(-g, -f). If no other parameters, an empty sails globals file(.eslintrc-sails) will be created. | ||
- -g --globals : Give globals array. Example: -g sails,test1,test2. | ||
- -f --folders : Give folders array containing globals. Example: -f api/models,api/controllers. | ||
- -c --config : Set eslint config file name. | ||
- -p --preset : Set preset code style when creates a new eslint config file. | ||
- -s --show : Show globals added. | ||
## Files Example | ||
- .eslintrc-sails | ||
@@ -50,3 +62,3 @@ ``` | ||
## Usage | ||
- global install | ||
- global install(Recommend) | ||
+ Install: | ||
@@ -53,0 +65,0 @@ ``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12376
25.58%10
42.86%221
21.43%86
16.22%2
100%1
Infinity%