Update eslint config (#12609)
- Remove unneeded "Tribute" global - Separate Node and Browser environments - Update environment to es2020 to enable new globals like "BigInt"release/v1.15
parent
afd89b1767
commit
7187fdbb1c
10
.eslintrc
10
.eslintrc
|
@ -13,9 +13,7 @@ plugins:
|
||||||
- eslint-plugin-import
|
- eslint-plugin-import
|
||||||
|
|
||||||
env:
|
env:
|
||||||
browser: true
|
es2020: true
|
||||||
es6: true
|
|
||||||
jquery: true
|
|
||||||
node: true
|
node: true
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
|
@ -24,9 +22,13 @@ globals:
|
||||||
Dropzone: false
|
Dropzone: false
|
||||||
SimpleMDE: false
|
SimpleMDE: false
|
||||||
u2fApi: false
|
u2fApi: false
|
||||||
Tribute: false
|
|
||||||
|
|
||||||
overrides:
|
overrides:
|
||||||
|
- files: ["web_src/**/*.js"]
|
||||||
|
env:
|
||||||
|
browser: true
|
||||||
|
jquery: true
|
||||||
|
node: false
|
||||||
- files: ["web_src/**/*worker.js"]
|
- files: ["web_src/**/*worker.js"]
|
||||||
env:
|
env:
|
||||||
worker: true
|
worker: true
|
||||||
|
|
Loading…
Reference in New Issue