mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
feature(package) add eslint
This commit is contained in:
parent
20d14c0bdd
commit
383d6f0057
3 changed files with 26 additions and 1 deletions
11
.eslintrc
Normal file
11
.eslintrc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"env": {
|
||||
"node": true,
|
||||
"browser": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"extends": ["eslint:recommended"]
|
||||
}
|
||||
11
legacy/.eslintrc
Normal file
11
legacy/.eslintrc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"env": {
|
||||
"node": true,
|
||||
"browser": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 5,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"extends": ["eslint:recommended"]
|
||||
}
|
||||
|
|
@ -48,11 +48,13 @@
|
|||
"lint": "redrun lint:*",
|
||||
"lint:css": "recess css/*.css",
|
||||
"lint:style": "stylelint css/*.css",
|
||||
"lint:js": "redrun jshint jscs",
|
||||
"lint:js": "redrun jshint jscs eslint",
|
||||
"lint:js:legacy": "redrun legacy:*",
|
||||
"eslint": "eslint --rule 'no-console:0' bin/release.js",
|
||||
"jshint": "jshint bin/release.js",
|
||||
"jscs": "jscs --esnext $npm_package_config_dirs",
|
||||
"legacy:jshint": "jshint --config legacy/.jshintrc $npm_package_config_dirs --exclude bin/release.js",
|
||||
"legacy:eslint": "eslint -c legacy/.eslintrc --rule 'no-console:0' $npm_package_config_dirs --ignore-path bin/release.js",
|
||||
"test": "tape test/**/*.js",
|
||||
"spell": "yaspeller .",
|
||||
"wisdom": "npm run docker:rm-old; bin/release.js",
|
||||
|
|
@ -122,6 +124,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"coveralls": "^2.11.6",
|
||||
"eslint": "^3.1.1",
|
||||
"jscs": "^3.0.1",
|
||||
"jshint": "^2.8.0",
|
||||
"minor": "^1.2.2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue