Skip to content

Commit

Permalink
New: Initial push to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Jin committed Apr 6, 2017
0 parents commit 448c477
Show file tree
Hide file tree
Showing 816 changed files with 212,275 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Configuration for Babel transpilation
{
"presets": [
["es2015", { "modules": false }],
"es2016",
"react"
],
"plugins": [
"transform-class-properties",
"transform-object-rest-spread",
"transform-decorators-legacy"
],
"env": {
"test": {
"plugins": [
["istanbul", {
"exclude": [
"**/*-test.js",
"build/**",
"src/lib/polyfill.js",
"src/lib/browser.js",
"src/lib/viewers/box3d/model3d/Model3dAnimationClipsPullup.js",
"src/lib/viewers/box3d/model3d/model3dSettingsPullup.js",
"src/lib/viewers/box3d/model3d/Model3dVrControls.js",
"src/lib/viewers/box3d/**/SceneEntities.js",
"src/lib/viewers/box3d/**Constants.js",
"src/lib/viewers/doc/doc-preloader.js"
]
}],
["babel-plugin-transform-require-ignore", { "extensions": [".scss"] }]
]
}
}
}
69 changes: 69 additions & 0 deletions .conventional-changelog-lintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"rules": {
"body-leading-blank": [
2,
"always"
],
"body-max-length": [
0
],
"body-min-length": [
0
],
"body-tense": [
0,
"never"
],
"footer-leading-blank": [
0,
"never"
],
"header-max-length": [
2,
"always",
72
],
"header-min-length": [
2,
"always",
3
],
"subject-tense": [
0
],
"subject-max-length": [
0
],
"subject-min-length": [
0
],
"type-case": [
0,
"never"
],
"type-empty": [
2,
"never"
],
"type-enum": [
2,
"always",
[
"Fix",
"New",
"Breaking",
"Docs",
"Build",
"Upgrade",
"Chore",
"Update"
]
],
"type-max-length": [
0
],
"type-min-length": [
0
]
}
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/third-party/*
dist/*
52 changes: 52 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"es6": true,
"browser": true,
"mocha": true,
"commonjs": true
},
"globals": {
"after": false,
"afterEach": false,
"before": false,
"beforeEach": false,
"describe": false,
"expect": false,
"it": false,
"sinon": false,
"assert": false,
"fixture": false,
"__": false,
"PDFJS": false,
"Box": false,
"DocumentTouch": false,
"ActiveXObject": false
},
"rules": {
"comma-dangle": [2, "never"],
"indent": [2, 4, {"SwitchCase": 1}],
"import/imports-first": [0],
"jsx-quotes": [2, "prefer-single"],
"max-len": [0, 120],
"react/jsx-indent-props": [2, 4],
"react/jsx-indent": [2, 4],
"no-underscore-dangle": [0],
"react/jsx-filename-extension": [0],
"arrow-body-style": [0],
"no-mixed-operators": ["error", {"allowSamePrecedence": true}],
"class-methods-use-this": [0],
"arrow-parens": ["error", "always"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/no-extraneous-dependencies": [0],
"import/no-webpack-loader-syntax": [0]
},
"settings": {
"import/resolver": {
"webpack": {
"config-index": 0
}
}
}
}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
*.swp
*.iml
.idea
build/rsync.json
.DS_Store
npm-debug.log
reports
dist
src/i18n/json
jsconfig.json
15 changes: 15 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "stylelint-config-standard",
"plugins": ["stylelint-order"],
"rules": {
"indentation": 4,
"at-rule-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"number-leading-zero": never,
"declaration-no-important": true,
"order/declaration-block-properties-alphabetical-order": [true, { "severity": "warning" }]
}
}
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "6"
script: yarn run ci
cache: yarn
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Place your settings in this file to overwrite default and user settings.
{
"typescript.validate.enable": false,
"typescript.format.enable": false,
"flow.useNPMPackagedFlow": true,
"flow.enabled": false,
"javascript.validate.enable": false
}
Loading

0 comments on commit 448c477

Please sign in to comment.