fix: bump eslint to es2020

use eslint-plugin-n/no-unsupported-features rules to error out the
remaining es2020 features not available for node >=12.22.0

said rules do not yet have support for es2021/es2022
This commit is contained in:
Bobby Wibowo 2022-06-08 21:47:30 +07:00
parent 499c581c00
commit ac8b5068a0
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -1,10 +1,8 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 10 // 2019
},
env: {
node: true
node: true,
es2020: true
},
extends: [
'standard'
@ -13,6 +11,9 @@ module.exports = {
'object-shorthand': [
'error',
'always'
]
],
'n/no-unsupported-features/es-builtins': 'error',
'n/no-unsupported-features/es-syntax': 'error',
'n/no-unsupported-features/node-builtins': 'error'
}
}