diff --git a/angular.json b/angular.json index 79dba31d..10316b42 100644 --- a/angular.json +++ b/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": [] - } } } } diff --git a/docs/.eslintrc.json b/docs/.eslintrc.json new file mode 100644 index 00000000..29b78bcb --- /dev/null +++ b/docs/.eslintrc.json @@ -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": {} + } + ] +} diff --git a/package.json b/package.json index c9d06258..14643290 100644 --- a/package.json +++ b/package.json @@ -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",