diff options
author | silverwind <me@silverwind.io> | 2020-06-09 23:31:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 17:31:15 -0400 |
commit | 19db3f4f0a6739e10aaa36d86ef5fd89dcf71467 (patch) | |
tree | 8c9dd890e7767c3582f981381d1c7697833e29c7 /package.json | |
parent | 363e51d19c7ae63a12554fbfb4dd4f59e87db339 (diff) | |
download | gitea-19db3f4f0a6739e10aaa36d86ef5fd89dcf71467.tar.gz gitea-19db3f4f0a6739e10aaa36d86ef5fd89dcf71467.zip |
rework eslint config (#11615)
* rework eslint config
- use explicit config that only enables rules
- upgrade eslint to 7.1.0
- add new plugins with selected rules enabled
- fix discovered issues, remove global wipPrefixes
* remove if
* undo template change
* add disabled rules as well for easier config updating
* add missing disabled rule
* update eslint and plugins
* fix new violation
* remove deprecated rules
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package.json b/package.json index b80cb867de..fac0dd2cfc 100644 --- a/package.json +++ b/package.json @@ -53,9 +53,10 @@ "worker-loader": "2.0.0" }, "devDependencies": { - "eslint": "6.8.0", - "eslint-config-airbnb-base": "14.1.0", - "eslint-plugin-import": "2.20.2", + "eslint": "7.2.0", + "eslint-plugin-import": "2.21.1", + "eslint-plugin-sonarjs": "0.5.0", + "eslint-plugin-unicorn": "20.1.0", "stylelint": "13.3.3", "stylelint-config-standard": "20.0.0", "updates": "10.2.11" |