<commit_before># ESLint Notes<commit_msg>Start Snippets Section<commit_after># ESLint Notes


## Snippets

**Set Environment**

```js
/* eslint-env node, mocha, jest, etc */
```

**Declare Global Variables**

```js
/* global myGlobal, CONST:false, etc */
```

**Disable Region**

```js
/* eslint-disable */

alert('foo');
...

/* eslint-enable */
```

**Disable Certain Rules in a Region**

```js
/* eslint-disable no-alert, no-console */

alert('foo');
console.log('bar');

/* eslint-enable no-alert, no-console */
```

**Disable Lines**

```js
alert('foo'); // eslint-disable-line

// eslint-disable-next-line
alert('foo');
```
{'fraction_non_alphanumeric': 0.22098569157392686, 'fraction_numerical': 0.0, 'mean_word_length': 4.080645161290323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4500473', 'n_tokens_mistral': 237, 'n_tokens_neox': 221, 'n_words': 52}