Skip to content

Commit

Permalink
Breaking: Upgrade TS deps, enable ESLint for TS files (#91)
Browse files Browse the repository at this point in the history
* Breaking: Upgrade TS deps, enable ESLint for TS files
* Other: Prefix some overrides with c__
  • Loading branch information
forabi committed Jun 27, 2018
1 parent 0cb39f2 commit 638294c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
3 changes: 2 additions & 1 deletion clown/common/validateFilenames.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"**/docker-compose.yml",
"**/Dockerfile*",
"**/LICENSE",
"**/README.md"
"**/README.md",
"**/clownOverrides/c__*"
]
}
]
Expand Down
17 changes: 10 additions & 7 deletions clown/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"scripts": {
"check-ts": "tsc --project . --noEmit",
"lint-ts": "tslint 'src/**/*.ts' --project ."
"lint-ts/eslint": "eslint '**/*.ts{,x}'",
"lint-ts/tslint": "tslint '**/*.ts{,x}' --project . --exclude '**/node_modules/**' --exclude '**/.serverless/**' --exclude '**/.webpack/**' --exclude '**/dist/**'",
"lint-ts": "run-p -c --aggregate-output 'lint-ts/*'"
},
"devDependencies": {
"eslint-plugin-typescript": "^0.11.0",
"typescript": "^2.8.1",
"eslint-plugin-typescript": "^0.12.0",
"typescript": "^2.9.2",
"tslint-language-service": "^0.9.9",
"tslint": "^5.9.1",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.8.0",
"tslint-eslint-rules": "^5.0.0",
"tslint-eslint-rules": "^5.3.1",
"tslint-microsoft-contrib": "^5.0.3",
"tslint-react": "^3.5.1",
"typescript-eslint-parser": "^15.0.0"
"tslint-react": "^3.6.0",
"typescript-eslint-parser": "^16.0.0",
"npm-run-all": "^4.1.3"
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"build": "exit 0"
},
"lint-staged": {
"**/*.js{x,}": [
"eslint -c .eslintrc.json --no-eslintrc"
]
"**/*.js{x,}": ["eslint -c .eslintrc.json --no-eslintrc"]
}
}
}
3 changes: 3 additions & 0 deletions eslint/typescript/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"no-unexpected-require": ["off"],
"import/first": ["off"],

// Buggy for TS, see https://github.com/eslint/typescript-eslint-parser/issues/384
"no-useless-constructor": ["off"],

// Already handled by TSLint

"import/no-dynamic-require": ["off"],
Expand Down
3 changes: 2 additions & 1 deletion validateFilenames.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"**/docker-compose.yml",
"**/Dockerfile*",
"**/LICENSE",
"**/README.md"
"**/README.md",
"**/clownOverrides/c__*"
]
}
]
Expand Down

0 comments on commit 638294c

Please sign in to comment.