Skip to content

Commit

Permalink
Adding rush lint command
Browse files Browse the repository at this point in the history
  • Loading branch information
petrukhin committed Sep 20, 2023
1 parent 06b6c3b commit 177b946
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
7 changes: 7 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
// {
// /**
Expand Down
3 changes: 2 additions & 1 deletion packages/postcss-logical-fallback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions packages/postcss-logical-fallback/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>;

const selectors: Selectors = new Map();
let supportsSelectors = {};

module.exports = (_: Options = {}): Plugin | Processor => {
// Work with options here
module.exports = (): Plugin | Processor => {

return {
postcssPlugin: PLUGIN_NAME,
Expand Down
7 changes: 1 addition & 6 deletions packages/stylelint-use-logical-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 177b946

Please sign in to comment.