Skip to content

Commit

Permalink
Update eslint config (go-gitea#12609)
Browse files Browse the repository at this point in the history
- Remove unneeded "Tribute" global
- Separate Node and Browser environments
- Update environment to es2020 to enable new globals like "BigInt"
  • Loading branch information
silverwind authored Aug 29, 2020
1 parent afd89b1 commit 7187fdb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ plugins:
- eslint-plugin-import

env:
browser: true
es6: true
jquery: true
es2020: true
node: true

globals:
Expand All @@ -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
Expand Down

0 comments on commit 7187fdb

Please sign in to comment.