diff --git a/common/config/rush/command-line.json b/common/config/rush/command-line.json index df5ee36..fcc327d 100644 --- a/common/config/rush/command-line.json +++ b/common/config/rush/command-line.json @@ -17,6 +17,13 @@ "summary": "Test packages.", "description": "Executes automated tests.", "enableParallelism": true + }, + { + "commandKind": "bulk", + "name": "lint", + "summary": "Lint packages.", + "description": "Executes lintings.", + "enableParallelism": true } // { // /** diff --git a/packages/postcss-logical-fallback/package.json b/packages/postcss-logical-fallback/package.json index ba83170..1903a8d 100644 --- a/packages/postcss-logical-fallback/package.json +++ b/packages/postcss-logical-fallback/package.json @@ -14,7 +14,8 @@ ], "scripts": { "build": "rollup -c --bundleConfigAsCjs", - "lint": "eslint .", + "lint": "npm run lint:js && npm run stylelint", + "lint:js": "eslint .", "stylelint": "stylelint **/*.css --fix", "test": "jest", "test:watch": "jest --watchAll", diff --git a/packages/postcss-logical-fallback/src/index.ts b/packages/postcss-logical-fallback/src/index.ts index 70f9c20..49b7ea8 100644 --- a/packages/postcss-logical-fallback/src/index.ts +++ b/packages/postcss-logical-fallback/src/index.ts @@ -5,13 +5,10 @@ import { createInsetFallback } from './create-inset-fallback'; import { PLUGIN_NAME, FALLBACK_CONFIG } from './constants'; import { createShorthandsFallback } from './create-shorthands-fallback'; -type Options = Record; - const selectors: Selectors = new Map(); let supportsSelectors = {}; -module.exports = (_: Options = {}): Plugin | Processor => { - // Work with options here +module.exports = (): Plugin | Processor => { return { postcssPlugin: PLUGIN_NAME, diff --git a/packages/stylelint-use-logical-spec/package.json b/packages/stylelint-use-logical-spec/package.json index a1e0ed0..a5bcce7 100644 --- a/packages/stylelint-use-logical-spec/package.json +++ b/packages/stylelint-use-logical-spec/package.json @@ -13,16 +13,11 @@ "scripts": { "build": "rollup -c .rollup.js", "test": "stylelint-tape", - "lint": "eslint *.ts lib/*.ts --ignore-path .arcignore", + "lint": "eslint *.ts lib/*.ts", "lint:fix": "eslint *.ts lib/*.ts --ignore-path .arcignore --fix", "pretest": "npm run build", "prepublishOnly": "npm run build", "checkPackageVer": "node --experimental-json-modules scripts/check-package-ver.mjs", - "ci:linterFailed": "node scripts/ci/send-linter-failed.mjs", - "ci:testsFailed": "node scripts/ci/send-tests-failed.mjs", - "ci:published": "node --experimental-json-modules scripts/ci/send-published.mjs", - "ci:publishFailed": "node --experimental-json-modules scripts/ci/send-publish-failed.mjs", - "ci:checkVersionFailed": "node scripts/ci/send-check-version-failed.mjs" }, "engines": { "node": ">=8.0.0"