filesafe/.eslintrc.js
Bobby Wibowo ac8b5068a0
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
2022-06-08 21:47:30 +07:00

20 lines
354 B
JavaScript

module.exports = {
root: true,
env: {
node: true,
es2020: true
},
extends: [
'standard'
],
rules: {
'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'
}
}