Merge pull request #143 from Kaworru/master
Add basic lint options for npm
Showing
.jshintignore
0 → 100644
... | @@ -3,6 +3,9 @@ | ... | @@ -3,6 +3,9 @@ |
"version": "1.0.0", | "version": "1.0.0", | ||
"description": "Blockly is a library for building visual programming editors.", | "description": "Blockly is a library for building visual programming editors.", | ||
"keywords": ["blockly"], | "keywords": ["blockly"], | ||
"scripts": { | |||
"lint": "jshint ." | |||
}, | |||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
"url": "https://github.com/google/blockly.git" | "url": "https://github.com/google/blockly.git" | ||
... | @@ -15,5 +18,15 @@ | ... | @@ -15,5 +18,15 @@ |
"name": "Neil Fraser" | "name": "Neil Fraser" | ||
}, | }, | ||
"license": "Apache-2.0", | "license": "Apache-2.0", | ||
"private": true | "private": true, | ||
"devDependencies": { | |||
"jshint": "latest" | |||
}, | |||
"jshintConfig": { | |||
"unused": true, | |||
"undef": true, | |||
"globalstrict": true, | |||
"sub": true, | |||
"predef": ["Blockly", "goog", "window", "document", "soy", "XMLHttpRequest"] | |||
} | |||
} | } |
Please register or sign in to comment