Browse Source

Update eslint config (#12609)

- Remove unneeded "Tribute" global
- Separate Node and Browser environments
- Update environment to es2020 to enable new globals like "BigInt"
for-closed-social
silverwind 4 years ago
committed by GitHub
parent
commit
7187fdbb1c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      .eslintrc

+ 6
- 4
.eslintrc View File

@ -13,9 +13,7 @@ plugins:
- eslint-plugin-import
env:
browser: true
es6: true
jquery: true
es2020: true
node: true
globals:
@ -24,9 +22,13 @@ globals:
Dropzone: false
SimpleMDE: false
u2fApi: false
Tribute: false
overrides:
- files: ["web_src/**/*.js"]
env:
browser: true
jquery: true
node: false
- files: ["web_src/**/*worker.js"]
env:
worker: true

Loading…
Cancel
Save