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:
N 2022-05-14 11:36:03 +08:00 committed by GitHub
parent 37d30e9e7d
commit d463449db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,6 +223,7 @@ module.exports = {
avoidQuotes: true,
},
],
'prefer-exponentiation-operator': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
@ -272,8 +273,6 @@ module.exports = {
'unicorn/no-unsafe-regex': 'off',
// Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
'unicorn/number-literal-case': 'error',
// ** instead of Math.pow()
'unicorn/prefer-exponentiation-operator': 'error',
// includes over indexOf when checking for existence
'unicorn/prefer-includes': 'error',
// String methods startsWith/endsWith instead of more complicated stuff