mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
fix: add eslint to docs
This commit is contained in:
parent
ce5713ff13
commit
255a1f0054
3 changed files with 49 additions and 15 deletions
19
angular.json
19
angular.json
|
|
@ -274,13 +274,12 @@
|
|||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"docs/tsconfig.spec.json",
|
||||
"docs/tsconfig.app.json"
|
||||
],
|
||||
"exclude": []
|
||||
"lintFilePatterns": [
|
||||
"docs/**/*.ts",
|
||||
"docs/**/*.html"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -296,14 +295,6 @@
|
|||
"protractorConfig": "./protractor.conf.js",
|
||||
"devServerTarget": "docs:serve"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"e2e/tsconfig.e2e.json"],
|
||||
"exclude": []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
42
docs/.eslintrc.json
Normal file
42
docs/.eslintrc.json
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"extends": "../.eslintrc.json",
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": [
|
||||
"docs/tsconfig.app.json",
|
||||
"docs/tsconfig.spec.json"
|
||||
],
|
||||
"createDefaultProgram": true
|
||||
},
|
||||
"rules": {
|
||||
"@angular-eslint/directive-selector": [
|
||||
"error",
|
||||
{
|
||||
"type": "attribute",
|
||||
"style": "camelCase"
|
||||
}
|
||||
],
|
||||
"@angular-eslint/component-selector": [
|
||||
"error",
|
||||
{
|
||||
"type": "element",
|
||||
"style": "kebab-case"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.html"
|
||||
],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -37,6 +37,7 @@
|
|||
"postinstall": "ngcc --properties es2015 es5 browser module main --first-only --create-ivy-entry-points --tsconfig \"./src/tsconfig.app.json\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@akveo/ng2-completer": "^9.0.1",
|
||||
"@angular/animations": "^15.2.10",
|
||||
"@angular/cdk": "^15.2.9",
|
||||
"@angular/common": "^15.2.10",
|
||||
|
|
@ -70,9 +71,9 @@
|
|||
"leaflet": "1.2.0",
|
||||
"marked": "^0.5.2",
|
||||
"nebular-icons": "1.1.0",
|
||||
"ng2-ckeditor": "~1.2.9",
|
||||
"ng-inline-svg": "^11.0.0",
|
||||
"ng-lazyload-image": "^7.1.0",
|
||||
"ng2-ckeditor": "~1.2.9",
|
||||
"ng2-smart-table": "^1.6.0",
|
||||
"ngx-echarts": "^4.2.2",
|
||||
"ngx-swiper-wrapper": "^9.0.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue