diff options
author | silverwind <me@silverwind.io> | 2020-08-29 17:34:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 16:34:00 +0100 |
commit | 7187fdbb1c5ddf3258269b1bab4a4bf357f03981 (patch) | |
tree | 6230244f47208a0b1eaa325a1e1f9cefdcfb9664 /.eslintrc | |
parent | afd89b176752b02573c98907e5e8ffc01f1134bb (diff) | |
download | gitea-7187fdbb1c5ddf3258269b1bab4a4bf357f03981.tar.gz gitea-7187fdbb1c5ddf3258269b1bab4a4bf357f03981.zip |
Update eslint config (#12609)
- Remove unneeded "Tribute" global
- Separate Node and Browser environments
- Update environment to es2020 to enable new globals like "BigInt"
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |