mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-22 13:19:05 +00:00

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'
|
|
}
|
|
}
|