Skip to content

Commit fde05d0

Browse files
authored
tslit out eslint in (#555)
* tslit out eslint in
1 parent d8de3c5 commit fde05d0

7 files changed

Lines changed: 2800 additions & 946 deletions

File tree

.eslintrc.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"parserOptions": {
12+
"project": [
13+
"tsconfig.json"
14+
],
15+
"createDefaultProgram": true
16+
},
17+
"extends": [
18+
"plugin:@angular-eslint/recommended",
19+
"plugin:@angular-eslint/template/process-inline-templates"
20+
],
21+
"rules": {
22+
"@angular-eslint/component-selector": [
23+
"error",
24+
{
25+
"prefix": "dp",
26+
"style": "kebab-case",
27+
"type": "element"
28+
}
29+
],
30+
"@angular-eslint/directive-selector": [
31+
"error",
32+
{
33+
"prefix": "dp",
34+
"style": "camelCase",
35+
"type": "attribute"
36+
}
37+
],
38+
"@angular-eslint/no-output-native": ["off"],
39+
"@angular-eslint/no-output-on-prefix": ["off"]
40+
}
41+
},
42+
{
43+
"files": [
44+
"*.html"
45+
],
46+
"extends": [
47+
"plugin:@angular-eslint/template/recommended"
48+
],
49+
"rules": {}
50+
}
51+
]
52+
}

.github/workflows/test.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: CI
22

3-
on:
4-
pull_request:
5-
branches: [ master ]
3+
on: [pull_request]
64

75
jobs:
86
build:

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

angular.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,12 @@
9191
}
9292
},
9393
"lint": {
94-
"builder": "@angular-devkit/build-angular:tslint",
94+
"builder": "@angular-eslint/builder:lint",
9595
"options": {
96-
"tsConfig": [
97-
"src/tsconfig.app.json",
98-
"src/tsconfig.spec.json"
99-
],
100-
"exclude": []
96+
"lintFilePatterns": [
97+
"src/**/*.ts",
98+
"src/**/*.html"
99+
]
101100
}
102101
}
103102
}
@@ -115,12 +114,12 @@
115114
}
116115
},
117116
"lint": {
118-
"builder": "@angular-devkit/build-angular:tslint",
117+
"builder": "@angular-eslint/builder:lint",
119118
"options": {
120-
"tsConfig": [
121-
"e2e/tsconfig.e2e.json"
122-
],
123-
"exclude": []
119+
"lintFilePatterns": [
120+
"src/**/*.ts",
121+
"src/**/*.html"
122+
]
124123
}
125124
}
126125
}
@@ -135,5 +134,8 @@
135134
"@schematics/angular:directive": {
136135
"prefix": "dp"
137136
}
137+
},
138+
"cli": {
139+
"defaultCollection": "@angular-eslint/schematics"
138140
}
139141
}

0 commit comments

Comments
 (0)