diff --git a/package.json b/package.json index 65e4f6b1e4d75bc18e7ac30a263f37a6bb62e1ca..16333775c4414d5c3ee91ded0ddf0d401d2f099d 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,8 @@ "bugs": { "url": "https://github.com/mrdoob/three.js/issues" }, - "homepage": "http://threejs.org/" + "homepage": "http://threejs.org/", + "devDependencies": { + "jscs": "^1.13.1" + } } diff --git a/utils/codestyle/codestyle.sh b/utils/codestyle/codestyle.sh new file mode 100755 index 0000000000000000000000000000000000000000..5663cd008369ceadd08409a723b43af9d58fe109 --- /dev/null +++ b/utils/codestyle/codestyle.sh @@ -0,0 +1,5 @@ + +jscs "../../src" --fix --preset=mdcs +jscs "../../examples/js" --fix --preset=mdcs + + diff --git a/utils/codestyle/config.json b/utils/codestyle/config.json new file mode 100644 index 0000000000000000000000000000000000000000..73bffcf7dca4b6343ab016e285146a6b4bc2ecc6 --- /dev/null +++ b/utils/codestyle/config.json @@ -0,0 +1,13 @@ +{ + "preset": "mdcs", + "excludeFiles": [ + "build/**", + "docs/**", + "editor/**", + "examples/**", + "node_modules/**", + "test/**", + "utils/**" + ] + +} \ No newline at end of file