mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-12 15:36:22 +00:00
ac8b5068a0
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
20 lines
354 B
JavaScript
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'
|
|
}
|
|
}
|