aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-10-21 11:44:03 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-21 11:44:03 +0200
commitb438d8bb3d4b3dea6d28d0b0c73da9393c9d8299 (patch)
treefe3c9550c2f3cd46edefae7ceda56407c80d8e36 /package.json
parentcfd625c5596f2ce20ab4341bb04ddb263552e417 (diff)
ESLint upgrade from JSHint (#3906)
* ESLint upgrade from JSHint * commit corresponding package.json * `npm run fix` for automatic JS and CSS fixes * Keep JSHint config for now
Diffstat (limited to 'package.json')
-rw-r--r--package.json42
1 files changed, 42 insertions, 0 deletions
diff --git a/package.json b/package.json
new file mode 100644
index 000000000..4ae01c19a
--- /dev/null
+++ b/package.json
@@ -0,0 +1,42 @@
+{
+ "name": "freshrss",
+ "description": "A free, self-hostable aggregator",
+ "homepage": "https://freshrss.org/",
+ "readmeFilename": "README.md",
+ "bugs": {
+ "url": "https://github.com/FreshRSS/FreshRSS/issues"
+ },
+ "keywords": [
+ "news",
+ "aggregator",
+ "RSS",
+ "Atom",
+ "WebSub"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/FreshRSS/FreshRSS.git"
+ },
+ "license": "AGPL-3.0",
+ "scripts": {
+ "eslint": "eslint --ext .js .",
+ "eslint_fix": "eslint --fix --ext .js .",
+ "rtlcss": "rtlcss -d p/themes && find . -type f -name '*.rtl.rtl.css' -delete",
+ "stylelint": "stylelint '**/*.css' && stylelint --syntax scss '**/*.scss'",
+ "stylelint_fix": "stylelint --fix '**/*.css' && stylelint --fix --syntax scss '**/*.scss'",
+ "test": "npm run eslint && npm run stylelint",
+ "fix": "npm run rtlcss && npm run stylelint_fix && npm run eslint_fix"
+ },
+ "devDependencies": {
+ "eslint": "^7.32.0",
+ "eslint-config-standard": "^16.0.3",
+ "eslint-plugin-import": "^2.24.2",
+ "eslint-plugin-node": "^11.1.0",
+ "eslint-plugin-promise": "^5.1.0",
+ "rtlcss": "^3.4.0",
+ "stylelint": "^13.13.1",
+ "stylelint-config-recommended-scss": "^4.3.0",
+ "stylelint-order": "^4.1.0",
+ "stylelint-scss": "^3.21.0"
+ }
+}