Skip to content

Commit

Permalink
create new
Browse files Browse the repository at this point in the history
  • Loading branch information
dingdong-io committed Jun 29, 2016
0 parents commit 8f1df29
Show file tree
Hide file tree
Showing 110 changed files with 30,375 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
*.zip
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "thirdparty/js-beautify"]
path = thirdparty/js-beautify
url = git://github.com/beautify-web/js-beautify.git
86 changes: 86 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details

"maxerr": 50, // {int} Maximum error before stopping

// Enforcing
"bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase": false, // true: Identifiers must be in camelCase
"curly": false, // true: Require {} for every new block or scope
"eqeqeq": true, // true: Require triple equals (===) for comparison
"forin": true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"immed": false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"indent": 4, // {int} Number of spaces to use for indentation
"latedef": false, // true: Require variables/functions to be defined before being used
"newcap": false, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg": true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"noempty": true, // true: Prohibit use of empty blocks
"nonew": false, // true: Prohibit use of constructors for side-effects (without assignment)
"plusplus": true, // true: Prohibit use of `++` & `--`
"quotmark": false, // Quotation mark consistency:
// false : do nothing (default)
// true : ensure whatever is used is consistent
// "single" : require single quotes
// "double" : require double quotes
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused": false, // true: Require all defined variables be used
"strict": false, // true: Requires all functions run in ES5 Strict Mode
"trailing": false, // true: Prohibit trailing whitespaces
"maxparams": false, // {int} Max number of formal params allowed per function
"maxdepth": false, // {int} Max depth of nested blocks (within functions)
"maxstatements": false, // {int} Max number statements per function
"maxcomplexity": false, // {int} Max cyclomatic complexity per function
"maxlen": false, // {int} Max number of characters per line

// Relaxing
"asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
"boss": false, // true: Tolerate assignments where comparisons would be expected
"debug": false, // true: Allow debugger statements e.g. browser breakpoints.
"eqnull": false, // true: Tolerate use of `== null`
"es5": false, // true: Allow ES5 syntax (ex: getters and setters)
"esnext": true, // true: Allow ES.next (ES6) syntax (ex: `const`)
"moz": false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
// (ex: `for each`, multiple try/catch, function expression…)
"evil": false, // true: Tolerate use of `eval` and `new Function()`
"expr": false, // true: Tolerate `ExpressionStatement` as Programs
"funcscope": false, // true: Tolerate defining variables inside control statements"
"globalstrict": true, // true: Allow global "use strict" (also enables 'strict')
"iterator": false, // true: Tolerate using the `__iterator__` property
"lastsemic": false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
"laxbreak": false, // true: Tolerate possibly unsafe line breakings
"laxcomma": false, // true: Tolerate comma-first style coding
"loopfunc": false, // true: Tolerate functions being defined in loops
"multistr": true, // true: Tolerate multi-line strings
"proto": false, // true: Tolerate using the `__proto__` property
"scripturl": false, // true: Tolerate script-targeted URLs
"smarttabs": false, // true: Tolerate mixed tabs/spaces when used for alignment
"shadow": false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
"sub": true, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
"supernew": false, // true: Tolerate `new function () { ... };` and `new Object;`
"validthis": false, // true: Tolerate using this in a non-constructor function

// Environments
"browser": true, // Web Browser (window, document, etc)
"couch": false, // CouchDB
"devel": true, // Development/debugging (alert, confirm, etc)
"dojo": false, // Dojo Toolkit
"jquery": false, // jQuery
"mootools": false, // MooTools
"node": true, // Node.js
"nonstandard": false, // Widely adopted globals (escape, unescape, etc)
"prototypejs": false, // Prototype and Scriptaculous
"rhino": false, // Rhino
"worker": false, // Web Workers
"wsh": false, // Windows Scripting Host
"yui": false, // Yahoo User Interface

// Legacy
"nomen": false, // true: Prohibit dangling `_` in variables
"onevar": false, // true: Allow only one `var` statement per function
"passfail": false, // true: Stop on first error
"white": false, // true: Check against strict whitespace and indentation rules

// Custom Globals
"globals": ["$", "io", "moment", "angular", "it", "describe", "socket", "_", "toastr"] // additional predefined global variables
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Change Log

## 1.2.0 - 2015-08-11
### Changed

Updated js-beautify to version 1.5.10
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2007-2014 Drew Hamlett, Einar Lielmanis and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
beautify.io
# 功能性修改 (在beautify基础上)
修改方法:在settings.json修改字段.(虽然brackets-beautify提到{"js":{},"css":{}}的写法,但测试未过,还不知道html和css的beautify要怎么改.一个需求是html的行内处理得不好)

目前产生修改的:
"comma_first":true //前置逗号风格,不单允许前置逗号,在使用beautify时,会默认将后置逗号改前置.
"brace_style": "end-expand" //else换行--方便brackets折叠
"preserve_newlines": false //保持换行 -true时,前置逗号行每beautify一次,会新增一换行,故改为false
"max_preserve_newlines": 2 //最大空行:2


# 其它
* 2016年2月26日
brackets插件管理器搜出来的beautify (!!而不是brackets-beautify) ,[原项目地址]https://github.com/brackets-beautify/brackets-beautify,
注:插件下载的与github下的略不同,拷贝自 插件管理器下载的beautify 1.2.0

删除\thirdparty\js-beautify\ 下的.git,否则无法直接提交
Loading

0 comments on commit 8f1df29

Please sign in to comment.