mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Merge pull request #143 from Kaworru/master
Add basic lint options for npm
This commit is contained in:
commit
05bdd5903c
4 changed files with 26 additions and 3 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,7 @@
|
|||
node_modules
|
||||
npm-debug.log
|
||||
.DS_Store
|
||||
.settings
|
||||
.project
|
||||
*.pyc
|
||||
*.komodoproject
|
||||
|
|
6
.jshintignore
Normal file
6
.jshintignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
node_modules/
|
||||
tests/
|
||||
demos/
|
||||
**/*_compressed.js
|
||||
**/*_uncompressed.js
|
||||
**/*_test.js
|
|
@ -670,7 +670,7 @@ Blockly.Msg.TEXT_GET_SUBSTRING_END_LAST = 'to last letter';
|
|||
Blockly.Msg.TEXT_GET_SUBSTRING_TAIL = '';
|
||||
|
||||
/// url - Information about the case of letters (upper-case and lower-case).
|
||||
Blockly.Msg.TEXT_CHANGECASE_HELPURL = 'https://github.com/google/blockly/wiki/Text#adjusting-text-case'
|
||||
Blockly.Msg.TEXT_CHANGECASE_HELPURL = 'https://github.com/google/blockly/wiki/Text#adjusting-text-case';
|
||||
/// tooltip - Describes a block to adjust the case of letters. For more information on this block,
|
||||
/// see [https://github.com/google/blockly/wiki/Text#adjusting-text-case
|
||||
/// https://github.com/google/blockly/wiki/Text#adjusting-text-case].
|
||||
|
@ -970,7 +970,7 @@ Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP = 'Creates a copy of the specified portion
|
|||
/// url - Information describing splitting text into a list, or joining a list into text.
|
||||
Blockly.Msg.LISTS_SPLIT_HELPURL = 'https://github.com/google/blockly/wiki/Lists#splitting-strings-and-joining-lists';
|
||||
/// dropdown - Indicates that text will be split up into a list (e.g. "a-b-c" -> ["a", "b", "c"]).
|
||||
Blockly.Msg.LISTS_SPLIT_LIST_FROM_TEXT = 'make list from text'
|
||||
Blockly.Msg.LISTS_SPLIT_LIST_FROM_TEXT = 'make list from text';
|
||||
/// dropdown - Indicates that a list will be joined together to form text (e.g. ["a", "b", "c"] -> "a-b-c").
|
||||
Blockly.Msg.LISTS_SPLIT_TEXT_FROM_LIST = 'make text from list';
|
||||
/// block text - Prompts for a letter to be used as a separator when splitting or joining text.
|
||||
|
|
15
package.json
15
package.json
|
@ -3,6 +3,9 @@
|
|||
"version": "1.0.0",
|
||||
"description": "Blockly is a library for building visual programming editors.",
|
||||
"keywords": ["blockly"],
|
||||
"scripts": {
|
||||
"lint": "jshint ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/google/blockly.git"
|
||||
|
@ -15,5 +18,15 @@
|
|||
"name": "Neil Fraser"
|
||||
},
|
||||
"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"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue