Skip to content

Commit 7364bf1

Browse files
author
Oleksandr Dzhychko
authored
Merge pull request #481 from modelix/replace-tslint-with-eslint
build(ts-model-api): move from TSLint to ESLint
2 parents 87481c3 + bfcb637 commit 7364bf1

11 files changed

+1379
-1244
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ repos:
4747
4848
- "@typescript-eslint/[email protected]"
4949
- "@typescript-eslint/[email protected]"
50-
files: ^vue-model-api/src/
51-
'types': [ts]
50+
files: ^(vue-model-api)|(ts-model-api)/src/
51+
types: [ts]

ts-model-api/.eslintrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"ecmaVersion": "latest",
14+
"sourceType": "module"
15+
},
16+
"plugins": [
17+
"@typescript-eslint"
18+
],
19+
"rules": {
20+
}
21+
}

ts-model-api/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ tasks.assemble {
4242
dependsOn(patchKotlinExternals)
4343
}
4444

45-
tasks.check {
46-
dependsOn("npm_run_lint")
47-
}
48-
4945
tasks.named("npm_run_generateKotlin") {
5046
finalizedBy(patchKotlinExternals)
5147
}

0 commit comments

Comments
 (0)