Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc7c8557

Browse files
rk-7andrefarzat
authored andcommitted
build(lint): migrate to project to eslint
- adds eslint schematics- migrates the project to use eslint- removes tslint- removes codelyzer since it is no longer neededThis commit migrates the project from tslint to eslint
1 parent31ee217 commitc7c8557

File tree

10 files changed

+4407
-1342
lines changed

10 files changed

+4407
-1342
lines changed

‎.eslintrc.json‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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/directive-selector": [
23+
"error",
24+
{
25+
"type":"attribute",
26+
"prefix":"lib",
27+
"style":"camelCase"
28+
}
29+
],
30+
"@angular-eslint/component-selector": [
31+
"error",
32+
{
33+
"type":"element",
34+
"prefix":"lib",
35+
"style":"kebab-case"
36+
}
37+
]
38+
}
39+
},
40+
{
41+
"files": [
42+
"*.html"
43+
],
44+
"extends": [
45+
"plugin:@angular-eslint/template/recommended"
46+
],
47+
"rules": {}
48+
}
49+
]
50+
}

‎angular.json‎

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,49 @@
11
{
2-
"$schema":"./node_modules/@angular/cli/lib/config/schema.json",
3-
"version":1,
4-
"newProjectRoot":"projects",
5-
"projects": {
6-
"plotly": {
7-
"projectType":"library",
8-
"root":"projects/plotly",
9-
"sourceRoot":"projects/plotly/src",
10-
"prefix":"lib",
11-
"architect": {
12-
"build": {
13-
"builder":"@angular-devkit/build-angular:ng-packagr",
14-
"options": {
15-
"tsConfig":"projects/plotly/tsconfig.lib.json",
16-
"project":"projects/plotly/ng-package.json"
17-
},
18-
"configurations": {
19-
"production": {
20-
"tsConfig":"projects/plotly/tsconfig.lib.prod.json"
21-
}
22-
}
2+
"$schema":"./node_modules/@angular/cli/lib/config/schema.json",
3+
"version":1,
4+
"newProjectRoot":"projects",
5+
"projects": {
6+
"plotly": {
7+
"projectType":"library",
8+
"root":"projects/plotly",
9+
"sourceRoot":"projects/plotly/src",
10+
"prefix":"lib",
11+
"architect": {
12+
"build": {
13+
"builder":"@angular-devkit/build-angular:ng-packagr",
14+
"options": {
15+
"tsConfig":"projects/plotly/tsconfig.lib.json",
16+
"project":"projects/plotly/ng-package.json"
2317
},
24-
"test": {
25-
"builder":"@angular-devkit/build-angular:karma",
26-
"options": {
27-
"main":"projects/plotly/src/test.ts",
28-
"tsConfig":"projects/plotly/tsconfig.spec.json",
29-
"karmaConfig":"projects/plotly/karma.conf.js"
18+
"configurations": {
19+
"production": {
20+
"tsConfig":"projects/plotly/tsconfig.lib.prod.json"
3021
}
3122
}
23+
},
24+
"test": {
25+
"builder":"@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main":"projects/plotly/src/test.ts",
28+
"tsConfig":"projects/plotly/tsconfig.spec.json",
29+
"karmaConfig":"projects/plotly/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"builder":"@angular-eslint/builder:lint",
34+
"options": {
35+
"lintFilePatterns": [
36+
"projects/plotly/**/*.ts",
37+
"projects/plotly/**/*.html"
38+
]
39+
}
3240
}
33-
}},
34-
"cli": {
35-
"analytics":false
36-
},
37-
"defaultProject":"angular-plotlyjs"
38-
}
41+
}
42+
}
43+
},
44+
"cli": {
45+
"analytics":false,
46+
"defaultCollection":"@angular-eslint/schematics"
47+
},
48+
"defaultProject":"angular-plotlyjs"
49+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp