Skip to content

Commit

Permalink
GH-1: Enabled linter for the example server app. Removed EOF rule.
Browse files Browse the repository at this point in the history
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
  • Loading branch information
kittaakos committed Mar 24, 2017
1 parent 2dfd96b commit 61841b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion tslint.json → config/tslint/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"class-name": true,
"comment-format": [true, "check-space"],
"curly": true,
"eofline": true,
"forin": true,
"indent": [true, "spaces"],
"max-line-length": [true, 140],
Expand Down
2 changes: 1 addition & 1 deletion config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const monacoJsonLanguagePath = './node_modules/monaco-json/release/min';
const monacoHtmlLanguagePath = './node_modules/monaco-html/release/min';


module.exports = function (dirname, config) {
module.exports = function (dirname, config = {}) {
const commonConfiguration = {

output: {
Expand Down
5 changes: 4 additions & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"scripts": {
"install:theia": "cd ../ && npm link && cd examples && npm link theia",
"clean": "./node_modules/.bin/rimraf lib",
"lint": "./node_modules/.bin/tslint -c ../config/tslint/tslint.json --project ./tsconfig.json",
"build": "npm run build:app && npm run build:web",
"build:app": "./node_modules/.bin/tsc",
"build:app": "./node_modules/.bin/tsc && npm run lint",
"build:web": "./node_modules/.bin/webpack && cp src/web/index.html lib/web",
"build:electron": "npm run build:app && ./node_modules/.bin/webpack --target electron && cp src/electron/index.html lib/electron",
"start:app": "./node_modules/.bin/node ./lib/app.js",
Expand All @@ -31,6 +32,8 @@
"devDependencies": {
"concurrently": "^3.4.0",
"rimraf": "^2.6.1",
"tslint": "^4.5.1",
"tslint-loader": "^3.4.3",
"typescript": "^2.2.1",
"webpack": "^2.2.1",
"webpack-dev-server": "^2.4.1"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
"webpack-merge": "^3.0.0"
},
"scripts": {
"lint": "./node_modules/.bin/tslint -c ./tslint.json --project ./tsconfig.json",
"lint": "./node_modules/.bin/tslint -c ./config/tslint/tslint.json --project ./tsconfig.json",
"build": "./node_modules/.bin/tsc && npm run lint",
"watch": "./node_modules/.bin/tsc --watch && npm run lint",
"watch": "./node_modules/.bin/tsc --watch",
"clean": "./node_modules/.bin/rimraf lib",
"clean:node_modules": "./node_modules/.bin/rimraf node_modules",
"test": "./node_modules/.bin/mocha",
Expand Down

0 comments on commit 61841b7

Please sign in to comment.