diff --git a/libraries/logger/package.json b/libraries/logger/package.json index 18cfe505f9..015b836e2d 100644 --- a/libraries/logger/package.json +++ b/libraries/logger/package.json @@ -12,7 +12,8 @@ "test": "mocha --grep=$MOCHA_GREP test/**/*.js", "format": "prettier-eslint $PWD'/**/*.js' --list-different", "format:fix": "prettier-eslint $PWD'/**/*.js' --write", - "lint": "eslint -f unix .", + "lint": "eslint --max-warnings 0 --format unix .", + "lint:fix": "eslint --fix .", "test:ci": "npm run test" }, "dependencies": { diff --git a/libraries/metrics/package.json b/libraries/metrics/package.json index e38a60b4c2..0743c32b4a 100644 --- a/libraries/metrics/package.json +++ b/libraries/metrics/package.json @@ -33,7 +33,8 @@ "sinon": "^9.0.2" }, "scripts": { - "lint": "eslint --max-warnings 0 .", + "lint": "eslint --max-warnings 0 --format unix .", + "lint:fix": "eslint --fix .", "test:unit": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/unit", "test:acceptance": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/acceptance", "test": "npm run test:unit && npm run test:acceptance", diff --git a/libraries/o-error/package.json b/libraries/o-error/package.json index df3ba7d9e2..7eec256727 100644 --- a/libraries/o-error/package.json +++ b/libraries/o-error/package.json @@ -24,13 +24,15 @@ "build:compile": "babel index.js --out-dir dist", "declaration:build": "rm -f dist/index.d.ts && tsc --allowJs --declaration --emitDeclarationOnly --outDir dist --moduleResolution node --target ES6 index.js", "declaration:check": "git diff --exit-code -- dist/index.d.ts", - "lint": "eslint .", + "lint": "eslint --max-warnings 0 --format unix .", + "lint:fix": "eslint --fix .", "prepublishOnly": "npm run --silent declaration:build && npm run --silent declaration:check", "test": "mocha", "test:coverage": "nyc --reporter=lcov --reporter=text-summary npm run test", "typecheck": "tsc --allowJs --checkJs --noEmit --moduleResolution node --strict --target ES6 *.js test/**/*.js", "update-readme": "doc/update-readme.js", - "format": "echo noop", + "format": "prettier $PWD'/**/*.js' --list-different", + "format:fix": "prettier $PWD'/**/*.js' --write", "test:ci": "npm run typecheck && npm run test" }, "author": "Overleaf (https://www.overleaf.com)", diff --git a/libraries/object-persistor/package.json b/libraries/object-persistor/package.json index 8fa0ba6aa4..68dda2ff0d 100644 --- a/libraries/object-persistor/package.json +++ b/libraries/object-persistor/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "npm run lint && npm run format && npm run test:unit", "test:unit": "mocha", - "lint": "eslint src test *.js", + "lint": "eslint --max-warnings 0 --format unix .", + "lint:fix": "eslint --fix .", "format": "prettier-eslint $PWD'/**/*.js' --list-different", "format:fix": "prettier-eslint $PWD'/**/*.js' --write", "test:ci": "npm run test:unit" diff --git a/libraries/redis-wrapper/package.json b/libraries/redis-wrapper/package.json index c0af4d156a..ee18755e04 100644 --- a/libraries/redis-wrapper/package.json +++ b/libraries/redis-wrapper/package.json @@ -11,7 +11,8 @@ "repository": "github:overleaf/redis-wrapper", "license": "ISC", "scripts": { - "lint": "eslint --max-warnings 0 .", + "lint": "eslint --max-warnings 0 --format unix .", + "lint:fix": "eslint --fix .", "format": "prettier-eslint $PWD'/**/*.js' --list-different", "format:fix": "prettier-eslint $PWD'/**/*.js' --write", "test": "mocha --recursive test/unit/src/", diff --git a/libraries/settings/package.json b/libraries/settings/package.json index 327df711ec..d7b0fa12bf 100644 --- a/libraries/settings/package.json +++ b/libraries/settings/package.json @@ -5,6 +5,8 @@ "repository": "overleaf/settings-module", "scripts": { "lint": "echo noop", + "lint:fix": "echo noop", + "format:fix": "echo noop", "format": "echo noop", "test": "echo noop", "test:ci": "echo noop"