/
possible-errors.js
35 lines (35 loc) · 1.05 KB
/
possible-errors.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
rules: {
/**
* Disallow the use of console.
*
* 🚫 Not fixable - https://eslint.org/docs/rules/no-console
*/
'no-console': 'error',
/**
* Disallow expressions where the operation doesn't affect the value.
*
* 🚫 Not fixable - https://eslint.org/docs/rules/no-console
*/
'no-constant-binary-expression': 'error',
/**
* Disallow returning values from Promise executor functions.
*
* 🚫 Not fixable - https://eslint.org/docs/rules/no-promise-executor-return
*/
'no-promise-executor-return': 'error',
/**
* Disallow template literal placeholder syntax in regular strings, as
* these are likely errors.
*
* 🚫 Not fixable - https://eslint.org/docs/rules/no-template-curly-in-string
*/
'no-template-curly-in-string': 'error',
/**
* Disallow loops with a body that allows only one iteration.
*
* 🚫 Not fixable - https://eslint.org/docs/rules/no-unreachable-loop
*/
'no-unreachable-loop': 'error',
},
};