<commit_before># ViktoriaFlowers


### Set up `eslint`

* Intstall required libraries:
    * `npm install --save-dev eslint eslint-config-google`
    * `npm install --save-dev babel-eslint `

* In VS Code search in marketplace for `eslint` and install
* In root directory of the project make sure you have `.eslintrc`
* Open a `.js` file and write some code - you should see red underlining.
    * If not working check the `Output - ESLint` in VS Code
    * Normal output
      ```
         [Info  - 11:38:42 PM] ESLint server is running.
         [Info  - 11:38:43 PM] ESLint library loaded from: ~\ViktoriaFlowers\node_modules\eslint\lib\api.js
      ```
* (Optionally) Update typescript `npm install -g typescript@atest`

**Writing code without change .eslintrc will be absolutely barbaric**

* Resoures
    * [babel-eslint - GitHub](https://github.com/babel/babel-eslint)
    * [eslint-config-google - GitHub](https://github.com/google/eslint-config-google)
    * [ESLint Setup with VSCode - YouTube](https://www.youtube.com/watch?v=w3qir73qU58)
    * [ESLint за отборните проекти - TelerikAcademy](http://telerikacademy.com/Forum/Questions/208193/ESLint-%D0%B7%D0%B0-%D0%BE%D1%82%D0%B1%D0%BE%D1%80%D0%BD%D0%B8%D1%82%D0%B5-%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D0%B8-brace-style-%D0%B2%D1%8A%D0%B7%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE%D1%81%D1%82-%D0%B7%D0%B0-%D1%81%D0%B2%D0%BE%D0%B1%D0%BE%D0%B4%D0%B5%D0%BD-%D0%B8%D0%B7%D0%B1%D0%BE%D1%80)<commit_msg>Added description how to run eslint<commit_after># ViktoriaFlowers


### Set up `eslint`

* Intstall required libraries:
    * `npm install --save-dev eslint eslint-config-google`
    * `npm install --save-dev babel-eslint `

* In VS Code search in marketplace for `eslint` and install
* In root directory of the project make sure you have `.eslintrc`
* Open a `.js` file and write some code - you should see red underlining.
    * If not working check the `Output - ESLint` in VS Code
    * Normal output
      ```
         [Info  - 11:38:42 PM] ESLint server is running.
         [Info  - 11:38:43 PM] ESLint library loaded from: ~\ViktoriaFlowers\node_modules\eslint\lib\api.js
      ```
* (Optionally) Update typescript `npm install -g typescript@atest`

## Run `eslint`

* Type in the command (terminal) `npm run lint` (Lifecycle error is thrown - ignore it)


* Resoures
    * [babel-eslint - GitHub](https://github.com/babel/babel-eslint)
    * [eslint-config-google - GitHub](https://github.com/google/eslint-config-google)
    * [ESLint Setup with VSCode - YouTube](https://www.youtube.com/watch?v=w3qir73qU58)
    * [ESLint за отборните проекти - TelerikAcademy](http://telerikacademy.com/Forum/Questions/208193/ESLint-%D0%B7%D0%B0-%D0%BE%D1%82%D0%B1%D0%BE%D1%80%D0%BD%D0%B8%D1%82%D0%B5-%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D0%B8-brace-style-%D0%B2%D1%8A%D0%B7%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE%D1%81%D1%82-%D0%B7%D0%B0-%D1%81%D0%B2%D0%BE%D0%B1%D0%BE%D0%B4%D0%B5%D0%BD-%D0%B8%D0%B7%D0%B1%D0%BE%D1%80)
{'fraction_non_alphanumeric': 0.16147596479350035, 'fraction_numerical': 0.07041299932295193, 'mean_word_length': 4.295698924731183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2784256', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1278, 'n_words': 229}