{"id":293625,"date":"2019-08-20T15:00:40","date_gmt":"2019-08-20T15:00:40","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=293625"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=293625","title":{"rendered":"\u041a\u0430\u043a \u044f \u043d\u0430\u0432\u043e\u0434\u0438\u043b \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0433\u0434\u0435 \u043b\u0435\u0441 \u043f\u0440\u044f\u043c\u044b\u0445 \u0440\u0443\u043a (\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 tslint, prettier, etc)"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u0418 \u0441\u043d\u043e\u0432\u0430 \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u041d\u0430 \u0441\u0432\u044f\u0437\u0438 <a href=\"https:\/\/vk.com\/sergamers\">\u041e\u043c\u0435\u043b\u044c\u043d\u0438\u0446\u043a\u0438\u0439 \u0421\u0435\u0440\u0433\u0435\u0439<\/a>. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0412\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0432\u043e\u0438\u0445 \u0433\u043e\u043b\u043e\u0432\u043d\u044b\u0445 \u0431\u043e\u043b\u0435\u0439, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0438\u0448\u0443\u0442 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 angular \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rh\/d8\/qu\/rhd8quhfm4yaula6kmhtricic0m.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043f\u043e\u0432\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044f \u0434\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439, \u0433\u0434\u0435 \u043c\u044b \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438 \u0442.\u043f. \u041f\u0440\u0438\u0442\u0435\u0440\u043b\u0438\u0441\u044c \u043a \u043d\u0438\u043c \u0438 \u0436\u0438\u043b\u0438 \u0434\u0440\u0443\u0436\u043d\u043e \u0438 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u043e. \u041d\u0430 \u0440\u0430\u0434\u043e\u0441\u0442\u044f\u0445 \u044f \u0434\u0430\u0436\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0425\u0430\u0431\u0440 \u043f\u043e <a href=\"https:\/\/habr.com\/ru\/sandbox\/128796\/\">\u043d\u0430\u0448\u0435\u043c\u0443 \u043a\u043e\u0434\u0441\u0442\u0430\u0439\u043b\u0443<\/a>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437 \u0447\u0435\u0433\u043e-\u0442\u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e tslint \u043d\u0430 \u043f\u0440\u0435-\u043a\u043e\u043c\u043c\u0438\u0442.<\/p>\n<p>  <\/p>\n<p>\u0418 \u0442\u0443\u0442 \u043c\u044b \u0440\u0430\u0437\u0440\u043e\u0441\u043b\u0438\u0441\u044c. \u041f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u0430 \u043a \u043d\u0435\u043c\u0443 \u0432 \u043f\u0440\u0438\u0434\u0430\u0447\u0443 \u043d\u043e\u0432\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0435 4-\u0445 \u0434\u043e\u0431\u0440\u044b\u0445 \u043c\u043e\u043b\u043e\u0434\u0446\u0435\u0432. \u0418 \u0447\u0435\u0442 \u0442\u0443\u0442 \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u043f\u043e \u043f\u043b\u0430\u043d\u0443. <\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ii\/r-\/ng\/iir-ng28tv_evior6s_lgeup2tw.jpeg\"> <\/p>\n<p>  <\/p>\n<p>\u042f \u0434\u0443\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u043d\u0435 \u043a\u0430\u0439\u0444. \u041d\u0430 \u043c\u043e\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u044b\u043b \u0432 \u0432\u043e\u0441\u0442\u043e\u0440\u0433\u0435, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435\u2026 \u0422\u0430\u043a \u043e \u0447\u0435\u043c \u044f?) \u0410\u0445 \u0434\u0430.<\/p>\n<p>  <\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 \u0436\u0435\u043b\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435\u0433\u043e, \u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043d\u0438\u043b\u0430\u0441\u044c. \u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043f\u0440\u0438\u0443\u043d\u044b\u043b \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0448\u043a\u0430 \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043d\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f, \u0442\u0438\u043f \u2014 \u0447\u0442\u043e \u044d\u0442\u043e?). \u0412\u043e\u0442 \u0441 \u044d\u0442\u0438\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u043e\u043c\u0443 \u043d\u0435 \u0442\u0435\u0440\u043f\u0438\u0442\u0441\u044f \u0443\u0437\u043d\u0430\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u0433\u0438 \u0441\u0440\u0430\u0437\u0443:<\/b><\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li>\n<p>\u041c\u044b \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0438 tslint \u043d\u0430 \u043c\u044f\u0433\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 ( \u0434\u043b\u044f pre-commit ) \u0438 \u0436\u0435\u0441\u0442\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 ( \u0434\u043b\u044f ide, \u0447\u0442\u043e\u0431 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0430 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0437\u0430\u0431\u044b\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c )<\/p>\n<p>  <\/li>\n<li>\n<p>\u041f\u043e\u0432\u0435\u0441\u0438\u043b\u0438 \u043d\u0430 pre-commit \u0430\u0432\u0442\u043e\u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043e\u0442 \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e tslint<\/p>\n<p>  <\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f prettier <\/p>\n<p>  <\/li>\n<li>\n<p>\u0422\u0430\u043d\u0446\u0435\u0432\u0430\u043b\u0438 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c \u0447\u0442\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c ng lint \u0441 lint-staged<\/p>\n<p>  <\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"shag-pervyy---razdelyay-i-vlastvuy\">\u0428\u0430\u0433 \u043f\u0435\u0440\u0432\u044b\u0439 \u2014 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439<\/h3>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u0438\u0434\u0435\u044f \u0443\u0436\u0435\u0441\u0442\u043e\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043b\u0438\u043d\u0442\u0435\u0440\u0430 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u0432\u0435\u0441\u0438\u043c\u0441\u044f. \u041a\u043e\u0434-\u0442\u043e \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439. \u0412 \u043d\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f, \u0430 \u0432 \u0442\u0430\u043a\u043e\u043c \u043e\u0431\u044a\u0435\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f. \u0411\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c 2-\u0439 \u043b\u0438\u043d\u0442\u0435\u0440 \u0434\u043b\u044f ide, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u044b \u043c\u043e\u0437\u043e\u043b\u0438\u043b \u0433\u043b\u0430\u0437\u0430 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u043f\u0438\u0441\u0430\u0442\u044c jsdoc \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u0441\u0432-\u0432, \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0438\u043b\u0438 \u0437\u043b\u0430\u0441\u0447\u0430\u0441\u0442\u043d\u044b\u0439 onPush \u0438 \u0442.\u043f.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a \u0432 \u043a\u043e\u0440\u043d\u0435 \u0443 \u043d\u0430\u0441 \u043d\u0430\u0447\u0430\u043b\u043e \u043b\u0435\u0436\u0430\u0442\u044c 2 tslin \u0444\u0430\u0439\u043b\u0430:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">tsconfig.json<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"json\">{   \"rulesDirectory\": [     \"node_modules\/codelyzer\"   ],   \"rules\": {     \"arrow-return-shorthand\": true,     \"callable-types\": true,     \"class-name\": true,     \"comment-format\": [       true,       \"check-space\"     ],     \"curly\": true,     \"deprecation\": {       \"severity\": \"warn\"     },     \"eofline\": true,     \"forin\": true,     \"import-blacklist\": [       true,       \"rxjs\/Rx\"     ],     \"import-spacing\": true,     \"indent\": [       true,       \"spaces\"     ],     \"interface-over-type-literal\": true,     \"label-position\": true,     \"max-line-length\": [       true,       200     ],     \"member-access\": false,     \"member-ordering\": [       true,       {         \"order\": [           \"static-field\",           \"instance-field\",           \"static-method\",           \"instance-method\"         ]       }     ],     \"no-arg\": true,     \"no-bitwise\": true,     \"no-console\": [       true,       \"debug\",       \"info\",       \"time\",       \"timeEnd\",       \"trace\"     ],     \"no-construct\": true,     \"no-debugger\": true,     \"no-duplicate-super\": true,     \"no-empty\": false,     \"no-empty-interface\": true,     \"no-eval\": true,     \"no-inferrable-types\": [       false,       \"ignore-params\"     ],     \"no-duplicate-imports\": true,     \"no-misused-new\": true,     \"no-non-null-assertion\": true,     \"no-redundant-jsdoc\": true,     \"no-shadowed-variable\": false,     \"no-string-literal\": false,     \"no-string-throw\": true,     \"no-switch-case-fall-through\": true,     \"no-trailing-whitespace\": [       true,       \"ignore-comments\",       \"ignore-jsdoc\"     ],     \"no-unnecessary-initializer\": true,     \"no-unused-expression\": true,     \"no-use-before-declare\": false,     \"no-var-keyword\": true,     \"object-literal-sort-keys\": false,     \"one-line\": [       true,       \"check-open-brace\",       \"check-catch\",       \"check-else\",       \"check-whitespace\"     ],     \"prefer-const\": true,     \"quotemark\": [       true,       \"single\"     ],     \"radix\": false,     \"semicolon\": [       true,       \"always\"     ],     \"triple-equals\": [       true,       \"allow-null-check\"     ],     \"typedef-whitespace\": [       true,       {         \"call-signature\": \"nospace\",         \"index-signature\": \"nospace\",         \"parameter\": \"nospace\",         \"property-declaration\": \"nospace\",         \"variable-declaration\": \"nospace\"       }     ],     \"unified-signatures\": true,     \"variable-name\": false,     \"whitespace\": [       true,       \"check-branch\",       \"check-decl\",       \"check-operator\",       \"check-separator\",       \"check-type\"     ],     \"directive-selector\": [       true,       \"attribute\",       \"app\",       \"camelCase\"     ],     \"component-selector\": [       true,       \"element\",       \"app\",       \"kebab-case\"     ],     \"no-output-on-prefix\": false,     \"no-inputs-metadata-property\": true,     \"no-outputs-metadata-property\": true,     \"no-host-metadata-property\": true,     \"no-input-rename\": false,     \"no-output-rename\": true,     \"use-lifecycle-interface\": true,     \"use-pipe-transform-interface\": true,     \"component-class-suffix\": true,     \"directive-class-suffix\": true,     \"no-consecutive-blank-lines\": true   } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">tslint.ide_only.json<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"json\">{   \"rulesDirectory\": [     \"node_modules\/codelyzer\"   ],   \"rules\": {     \"completed-docs\": [       true,       {         \"properties\": true,         \"methods\": true       }     ],     \"no-angle-bracket-type-assertion\": true,     \"no-any\": true,     \"prefer-output-readonly\": true,     \"prefer-on-push-component-change-detection\": true,     \"array-type\": [       true,       \"array\"     ],     \"typedef\": [       true,       \"call-signature\",       \"arrow-call-signature\"     ],     \"arrow-return-shorthand\": true,     \"callable-types\": true,     \"class-name\": true,     \"comment-format\": [       true,       \"check-space\"     ],     \"curly\": true,     \"deprecation\": {       \"severity\": \"warn\"     },     \"eofline\": true,     \"forin\": true,     \"import-blacklist\": [       true,       \"rxjs\/Rx\"     ],     \"import-spacing\": true,     \"indent\": [       true,       \"spaces\"     ],     \"interface-over-type-literal\": true,     \"label-position\": true,     \"max-line-length\": [       true,       200     ],     \"member-access\": [       true,       \"check-parameter-property\",       \"check-accessor\"     ],     \"member-ordering\": [       true,       {         \"order\": [           \"public-static-field\",           \"protected-static-field\",           \"private-static-field\",           \"public-instance-field\",           \"protected-instance-field\",           \"private-instance-field\",           \"constructor\",           \"public-static-method\",           \"protected-static-method\",           \"private-static-method\",           \"public-instance-method\",           \"protected-instance-method\",           \"private-instance-method\"         ]       }     ],     \"no-arg\": true,     \"no-bitwise\": true,     \"no-console\": true,     \"no-construct\": true,     \"no-debugger\": true,     \"no-duplicate-super\": true,     \"no-empty\": false,     \"no-empty-interface\": true,     \"no-duplicate-switch-case\": true,     \"no-eval\": true,     \"no-inferrable-types\": [       false,       \"ignore-params\"     ],     \"no-duplicate-imports\": true,     \"one-variable-per-declaration\": true,     \"no-misused-new\": true,     \"no-non-null-assertion\": true,     \"prefer-template\": [       true,       \"allow-single-concat\"     ],     \"ordered-imports\": true,     \"no-redundant-jsdoc\": true,     \"no-shadowed-variable\": false,     \"no-string-literal\": false,     \"no-string-throw\": true,     \"no-switch-case-fall-through\": true,     \"no-trailing-whitespace\": [       true,       \"ignore-comments\",       \"ignore-jsdoc\"     ],     \"ban\": [       true,       {         \"name\": [           \"Object\",           \"assign\"         ],         \"message\": \"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 cloneDeep (lodash) \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\"       }     ],     \"max-classes-per-file\": [       true,       1     ],     \"cyclomatic-complexity\": [       true,       6     ],     \"static-this\": true,     \"no-unnecessary-initializer\": true,     \"no-unused-expression\": true,     \"no-var-keyword\": true,     \"object-literal-sort-keys\": false,     \"one-line\": [       true,       \"check-open-brace\",       \"check-catch\",       \"check-else\",       \"check-whitespace\"     ],     \"prefer-const\": true,     \"quotemark\": [       true,       \"single\"     ],     \"radix\": false,     \"semicolon\": [       true,       \"always\"     ],     \"triple-equals\": [       true,       \"allow-null-check\"     ],     \"typedef-whitespace\": [       true,       {         \"call-signature\": \"nospace\",         \"index-signature\": \"nospace\",         \"parameter\": \"nospace\",         \"property-declaration\": \"nospace\",         \"variable-declaration\": \"nospace\"       }     ],     \"unified-signatures\": true,     \"variable-name\": false,     \"whitespace\": [       true,       \"check-branch\",       \"check-decl\",       \"check-operator\",       \"check-separator\",       \"check-type\"     ],     \"directive-selector\": [       true,       \"attribute\",       \"app\",       \"camelCase\"     ],     \"component-selector\": [       true,       \"element\",       \"app\",       \"kebab-case\"     ],     \"no-output-on-prefix\": false,     \"no-inputs-metadata-property\": true,     \"no-outputs-metadata-property\": true,     \"no-host-metadata-property\": true,     \"no-input-rename\": false,     \"no-output-rename\": true,     \"use-lifecycle-interface\": true,     \"use-pipe-transform-interface\": true,     \"component-class-suffix\": true,     \"directive-class-suffix\": true,     \"no-consecutive-blank-lines\": true   } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 <code>src\/tslint<\/code> \u043c\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 tslint \u043d\u0430 ide<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">src\/tslint.json<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"json\">{     \"extends\": \"..\/tslint.ide_only.json\",     \"rules\": {         \"directive-selector\": [             true,             \"attribute\",             \"app\",             \"camelCase\"         ],         \"component-selector\": [             true,             \"element\",             \"app\",             \"kebab-case\"         ]     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0418 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0430\u0448\u0435\u0433\u043e \u043b\u0438\u043d\u0442\u0435\u0440\u0430 \u0432 \u0441\u043a\u0440\u0438\u0442\u0430\u0445 package.json <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">ng lint --tslint-config .\/tslint.json --fix`<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u044b \u0441\u0442\u0430\u043b\u0438 \u0432\u0435\u0448\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0445 \u0432\u0435\u0449\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  <\/p>\n<h3 id=\"shag-vtoroy---popravit-paru-momentov\">\u0428\u0430\u0433 \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432<\/h3>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gk\/_n\/q8\/gk_nq8avrre_ze78lyextw-jbva.jpeg\"> <\/p>\n<p>  <\/p>\n<p>\u0423 tslint \u0435\u0441\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0441 <code>has fixer<\/code>. \u0422\u0430\u043a \u0434\u0430\u0432\u0430\u0439 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">tslint --project tslint.ide_only.json --fix --force<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u043b\u0438\u043d\u0442\u0435\u0440\u0430 \u0441 \u0430\u0432\u0442\u043e\u0444\u0438\u043a\u0441\u0430\u0446\u0438\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0430 \u043e\u0448\u0438\u0431\u043e\u043a ( \u0442\u0443\u0442 \u043d\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 ).<\/p>\n<p>  <\/p>\n<h3 id=\"shag-tretiy---pishi-krasivo\">\u0428\u0430\u0433 \u0442\u0440\u0435\u0442\u0438\u0439 \u2014 \u043f\u0438\u0448\u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u043e<\/h3>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0438\u0448\u0435\u0442 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043c\u0430\u043d\u0435\u0440\u0435 \u044d\u0442\u043e \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435 \u0443\u0442\u043e\u043c\u043b\u044f\u0435\u0442. \u041a\u043e\u0434 \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u043b prettier, \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">.prettierr.yaml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">printWidth: 200     # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 tabWidth: 2         # \u041f\u0440\u043e\u0431\u0435\u043b\u043e\u0432 \u0432 \u0422\u0430\u0431\u0435 singleQuote: true   # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 trailingComma: all  # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u044f\u0442\u044b\u0435 \u0433\u0434\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e arrowParens: always # \u0421\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0435 \u0444-\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 (x) =&gt; x overrides:   - files: \"*.ts\"   # \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 *.ts     options:       parser: typescript  # \u042f\u0437\u044b\u043a \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 *.ts<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0418 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443: <code>prettier --write --config .prettierr.yaml<\/code><\/p>\n<p>  <\/p>\n<h3 id=\"shag-chetvertyy---i-kak-ty-prikazhesh-vse-eto-zapuskat\">\u0428\u0430\u0433 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u2014 \u0418 \u043a\u0430\u043a \u0442\u044b \u043f\u0440\u0438\u043a\u0430\u0436\u0435\u0448\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c?<\/h3>\n<p>  <\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u043a \u0436\u0435 \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431 \u044d\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043b\u0438\u0431\u044b: <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">npm i -D prettier lint-staged husky<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e husky \u043c\u044b \u043f\u043e\u0432\u0435\u0441\u0438\u043c \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u043d\u0430 git \u0445\u0443\u043a \u2014 pre-commit. lint-staged \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 ( \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b \u043a \u043d\u0430\u043c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u044b). <\/p>\n<p>  <\/p>\n<p>\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0435\u0449\u0435 \u0441\u0440\u0430\u0437\u0443 \u043e\u0431\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u044f. \u0423 \u043d\u0430\u0441 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ng lint. \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0433\u043e \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 lint-staged, \u0442\u043e \u0432 \u043d\u0430\u0448\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u0423 ng lint \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u044e\u0447 <code>--files<\/code>, \u043d\u043e, \u043a\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b, \u043e\u043d \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u043f\u0430\u0447\u043a\u0443 \u0444\u0430\u0439\u043b\u043e\u0432, \u0438 \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">lint.sh<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">#!\/bin\/bash  PROJECT=$1 shift SOURCES=$@ DESTINATIONS=\"\" DELIMITER=\"\"  for src in $SOURCES do     DELIMITER=\" --files \"     DESTINATIONS=\"$DESTINATIONS$DELIMITER${src}\" done  ng lint $PROJECT --tslint-config .\/tslint.json $DESTINATIONS<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041e\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 <code>angular.json<\/code> \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 project. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e <code>partner-account<\/code> \u0438 <code>partner-account-e2e<\/code>. \u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d 1-\u0439.<\/p>\n<p>  <\/p>\n<p>\u0412\u0435\u0440\u043d\u0443\u0441\u044c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. \u041d\u0430\u0448 package.json \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"json\">  \"husky\": {     \"hooks\": {       \"pre-commit\": \"lint-staged --relative\"     }   },   \"lint-staged\": {     \"*.{ts,js}\": [       \"prettier --write --config .prettierr.yaml\",       \"tslint --project tslint.ide_only.json --fix --force\",       \"sh lint.sh partner-account\",       \"git add\"     ],     \"*.{html,scss,css}\": [       \"prettier --write --config .prettierr.yaml\",       \"git add\"     ]   },<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 <code>lint-staged --relative<\/code>. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>--relative<\/code> \u0442\u0430\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0435 \u0443 \u043d\u0430\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f <code>lint-staged<\/code>. \u041e\u043d \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043e\u0442\u0431\u0438\u0440\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u043d \u043d\u0438\u0445 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434. <\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442 \u0440\u0435\u0432\u044c\u044e \u043a\u043e\u0434\u0430, \u043d\u043e \u043e\u043d \u0441\u0442\u0430\u043b \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0447\u0438\u0449\u0435. \u0417\u0430\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u044f \u0440\u0435\u0436\u0435 \u0441\u0442\u0430\u043b \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u0440\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u0441\u0432-\u0432, \u0430 \u0438\u0445 \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0430\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0435\u0434\u0438\u043d\u043e\u043c \u0441\u0442\u0438\u043b\u0435 ( \u043d\u0443 \u043f\u043e\u0447\u0442\u0438 \ud83d\ude00 ).<\/p>\n<p>  <\/p>\n<p>P.S. \u2014 \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043d\u0430\u0448\u0435\u043c\u0443 PM.<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/464383\/\"> https:\/\/habr.com\/ru\/post\/464383\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u0418 \u0441\u043d\u043e\u0432\u0430 \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u041d\u0430 \u0441\u0432\u044f\u0437\u0438 <a href=\"https:\/\/vk.com\/sergamers\">\u041e\u043c\u0435\u043b\u044c\u043d\u0438\u0446\u043a\u0438\u0439 \u0421\u0435\u0440\u0433\u0435\u0439<\/a>. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0412\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0432\u043e\u0438\u0445 \u0433\u043e\u043b\u043e\u0432\u043d\u044b\u0445 \u0431\u043e\u043b\u0435\u0439, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0438\u0448\u0443\u0442 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 angular \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rh\/d8\/qu\/rhd8quhfm4yaula6kmhtricic0m.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043f\u043e\u0432\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044f \u0434\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439, \u0433\u0434\u0435 \u043c\u044b \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438 \u0442.\u043f. \u041f\u0440\u0438\u0442\u0435\u0440\u043b\u0438\u0441\u044c \u043a \u043d\u0438\u043c \u0438 \u0436\u0438\u043b\u0438 \u0434\u0440\u0443\u0436\u043d\u043e \u0438 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u043e. \u041d\u0430 \u0440\u0430\u0434\u043e\u0441\u0442\u044f\u0445 \u044f \u0434\u0430\u0436\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0425\u0430\u0431\u0440 \u043f\u043e <a href=\"https:\/\/habr.com\/ru\/sandbox\/128796\/\">\u043d\u0430\u0448\u0435\u043c\u0443 \u043a\u043e\u0434\u0441\u0442\u0430\u0439\u043b\u0443<\/a>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437 \u0447\u0435\u0433\u043e-\u0442\u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e tslint \u043d\u0430 \u043f\u0440\u0435-\u043a\u043e\u043c\u043c\u0438\u0442.<\/p>\n<p>  <\/p>\n<p>\u0418 \u0442\u0443\u0442 \u043c\u044b \u0440\u0430\u0437\u0440\u043e\u0441\u043b\u0438\u0441\u044c. \u041f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u0430 \u043a \u043d\u0435\u043c\u0443 \u0432 \u043f\u0440\u0438\u0434\u0430\u0447\u0443 \u043d\u043e\u0432\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0435 4-\u0445 \u0434\u043e\u0431\u0440\u044b\u0445 \u043c\u043e\u043b\u043e\u0434\u0446\u0435\u0432. \u0418 \u0447\u0435\u0442 \u0442\u0443\u0442 \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u043f\u043e \u043f\u043b\u0430\u043d\u0443. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-293625","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=293625"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293625\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}