mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-12 15:36:22 +00:00
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:
parent
499c581c00
commit
ac8b5068a0
11
.eslintrc.js
11
.eslintrc.js
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user