fix: deprecated-rules (#93)
unicorn/prefer-exponentiation-operator was deprecated since 16.0 [deprecated-rules](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/deprecated-rules.md#prefer-exponentiation-operator)
This commit is contained in:
parent
37d30e9e7d
commit
d463449db4
@ -223,6 +223,7 @@ module.exports = {
|
|||||||
avoidQuotes: true,
|
avoidQuotes: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
'prefer-exponentiation-operator': 'error',
|
||||||
'prefer-rest-params': 'error',
|
'prefer-rest-params': 'error',
|
||||||
'prefer-spread': 'error',
|
'prefer-spread': 'error',
|
||||||
'prefer-template': 'error',
|
'prefer-template': 'error',
|
||||||
@ -272,8 +273,6 @@ module.exports = {
|
|||||||
'unicorn/no-unsafe-regex': 'off',
|
'unicorn/no-unsafe-regex': 'off',
|
||||||
// Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
|
// Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
|
||||||
'unicorn/number-literal-case': 'error',
|
'unicorn/number-literal-case': 'error',
|
||||||
// ** instead of Math.pow()
|
|
||||||
'unicorn/prefer-exponentiation-operator': 'error',
|
|
||||||
// includes over indexOf when checking for existence
|
// includes over indexOf when checking for existence
|
||||||
'unicorn/prefer-includes': 'error',
|
'unicorn/prefer-includes': 'error',
|
||||||
// String methods startsWith/endsWith instead of more complicated stuff
|
// String methods startsWith/endsWith instead of more complicated stuff
|
||||||
|
Loading…
Reference in New Issue
Block a user