Skip to content

spaces to tabs #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

[*.{json,yml}]
[*.yml]
indent_size = 2
indent_style = space
74 changes: 37 additions & 37 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"quotes": ["error", "single"],
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "always"],
"curly": "error",
"brace-style": "error",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"radix": "error"
},
"overrides": [
{
"files": [
"**/*.ts"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error"
}
}
]
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"quotes": ["error", "single"],
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "always"],
"curly": "error",
"brace-style": "error",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"radix": "error"
},
"overrides": [
{
"files": [
"**/*.ts"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error"
}
}
]
}
6 changes: 3 additions & 3 deletions .github/bin/format-package-json.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { promises as fsp, constants } from 'fs';

const packageJSONInfo = JSON.parse(await fsp.readFile('./package.json', 'utf8'));
const packageJSONInfoCopy = JSON.stringify(packageJSONInfo, null, 2);
const packageJSONInfoCopy = JSON.stringify(packageJSONInfo, null, '\t');
const formatted = {};

// Main info
Expand Down Expand Up @@ -195,9 +195,9 @@ const formatted = {};

Object.assign(formatted, packageJSONInfo);

if (process.env.GITHUB_ACTIONS && JSON.stringify(formatted, null, 2) !== packageJSONInfoCopy) {
if (process.env.GITHUB_ACTIONS && JSON.stringify(formatted, null, '\t') !== packageJSONInfoCopy) {
console.error('package.json has an incorrect field order. Run "npm run lint" to resolve.')
process.exit(1);
}

await fsp.writeFile('./package.json', JSON.stringify(formatted, null, 2) + '\n');
await fsp.writeFile('./package.json', JSON.stringify(formatted, null, '\t') + '\n');
2 changes: 1 addition & 1 deletion .github/bin/generate-docs/install-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ postcss([
Add [PostCSS CLI] to your project:

```bash
npm install postcss-cli <packageName> --save-dev
npm install postcss-cli <packageName> --save-dev
```

Use [<humanReadableName>] in your `postcss.config.js` configuration file:
Expand Down
2 changes: 1 addition & 1 deletion .github/bin/generate-docs/readme.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const postcss = require('postcss');
const <exportName> = require('<packageName>');

postcss([
<exportName>(/* pluginOptions */)
<exportName>(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
\`\`\``);

Expand Down
138 changes: 69 additions & 69 deletions cli/csstools-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
{
"name": "@csstools/csstools-cli",
"description": "Transform CSS with any plugin from csstools/postcss-plugins",
"version": "1.2.0",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
"engines": {
"node": "^12 || ^14 || >=16"
},
"bin": {
"csstools-cli": "dist/cli.cjs"
},
"types": "dist/cli.d.ts",
"files": [
"CHANGELOG.md",
"LICENSE.md",
"README.md",
"dist"
],
"dependencies": {
"@csstools/postcss-font-format-keywords": "^1.0.0",
"@csstools/postcss-hwb-function": "^1.0.0",
"@csstools/postcss-is-pseudo-class": "^2.0.0",
"@csstools/postcss-normalize-display-values": "^1.0.0",
"css-blank-pseudo": "^3.0.3",
"css-has-pseudo": "^3.0.4",
"css-prefers-color-scheme": "^6.0.3",
"postcss-color-functional-notation": "^4.2.2",
"postcss-color-hex-alpha": "^8.0.3",
"postcss-color-rebeccapurple": "^7.0.2",
"postcss-custom-properties": "^12.1.4",
"postcss-dir-pseudo-class": "^6.0.4",
"postcss-double-position-gradients": "^3.1.0",
"postcss-env-function": "^4.0.5",
"postcss-focus-visible": "^6.0.4",
"postcss-focus-within": "^5.0.4",
"postcss-gap-properties": "^3.0.3",
"postcss-image-set-function": "^4.0.6",
"postcss-lab-function": "^4.1.1",
"postcss-logical": "^5.0.4",
"postcss-nesting": "^10.1.2",
"postcss-overflow-shorthand": "^3.0.3",
"postcss-place": "^7.0.4",
"postcss-preset-env": "^7.4.0",
"postcss-pseudo-class-any-link": "^7.1.1"
},
"devDependencies": {
"postcss": "^8.4.6"
},
"scripts": {
"build": "rollup -c ../../rollup/default.js",
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
"csstools-cli": "csstools-cli",
"lint": "npm run lint:eslint && npm run lint:package-json",
"lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
"lint:package-json": "node ../../.github/bin/format-package-json.mjs",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"stryker": "stryker run --logLevel error",
"test": "exit 0",
"test:cli": "bash ./test/cli/test.sh"
},
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/cli/csstools-cli#readme",
"repository": {
"type": "git",
"url": "https://github.com/csstools/postcss-plugins.git",
"directory": "cli/csstools-cli"
},
"volta": {
"extends": "../../package.json"
}
"name": "@csstools/csstools-cli",
"description": "Transform CSS with any plugin from csstools/postcss-plugins",
"version": "1.2.0",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
"engines": {
"node": "^12 || ^14 || >=16"
},
"bin": {
"csstools-cli": "dist/cli.cjs"
},
"types": "dist/cli.d.ts",
"files": [
"CHANGELOG.md",
"LICENSE.md",
"README.md",
"dist"
],
"dependencies": {
"@csstools/postcss-font-format-keywords": "^1.0.0",
"@csstools/postcss-hwb-function": "^1.0.0",
"@csstools/postcss-is-pseudo-class": "^2.0.0",
"@csstools/postcss-normalize-display-values": "^1.0.0",
"css-blank-pseudo": "^3.0.3",
"css-has-pseudo": "^3.0.4",
"css-prefers-color-scheme": "^6.0.3",
"postcss-color-functional-notation": "^4.2.2",
"postcss-color-hex-alpha": "^8.0.3",
"postcss-color-rebeccapurple": "^7.0.2",
"postcss-custom-properties": "^12.1.4",
"postcss-dir-pseudo-class": "^6.0.4",
"postcss-double-position-gradients": "^3.1.0",
"postcss-env-function": "^4.0.5",
"postcss-focus-visible": "^6.0.4",
"postcss-focus-within": "^5.0.4",
"postcss-gap-properties": "^3.0.3",
"postcss-image-set-function": "^4.0.6",
"postcss-lab-function": "^4.1.1",
"postcss-logical": "^5.0.4",
"postcss-nesting": "^10.1.2",
"postcss-overflow-shorthand": "^3.0.3",
"postcss-place": "^7.0.4",
"postcss-preset-env": "^7.4.0",
"postcss-pseudo-class-any-link": "^7.1.1"
},
"devDependencies": {
"postcss": "^8.4.6"
},
"scripts": {
"build": "rollup -c ../../rollup/default.js",
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
"csstools-cli": "csstools-cli",
"lint": "npm run lint:eslint && npm run lint:package-json",
"lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
"lint:package-json": "node ../../.github/bin/format-package-json.mjs",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"stryker": "stryker run --logLevel error",
"test": "exit 0",
"test:cli": "bash ./test/cli/test.sh"
},
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/cli/csstools-cli#readme",
"repository": {
"type": "git",
"url": "https://github.com/csstools/postcss-plugins.git",
"directory": "cli/csstools-cli"
},
"volta": {
"extends": "../../package.json"
}
}
34 changes: 17 additions & 17 deletions cli/csstools-cli/stryker.conf.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"$schema": "../../node_modules/@stryker-mutator/core/schema/stryker-schema.json",
"mutate": [
"src/**/*.ts"
],
"buildCommand": "npm run build",
"testRunner": "command",
"coverageAnalysis": "perTest",
"tempDirName": "../../.stryker-tmp",
"commandRunner": {
"command": "npm run test:tape"
},
"thresholds": {
"high": 100,
"low": 100,
"break": 100
},
"inPlace": true
"$schema": "../../node_modules/@stryker-mutator/core/schema/stryker-schema.json",
"mutate": [
"src/**/*.ts"
],
"buildCommand": "npm run build",
"testRunner": "command",
"coverageAnalysis": "perTest",
"tempDirName": "../../.stryker-tmp",
"commandRunner": {
"command": "npm run test:tape"
},
"thresholds": {
"high": 100,
"low": 100,
"break": 100
},
"inPlace": true
}
14 changes: 7 additions & 7 deletions cli/csstools-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"declarationDir": "."
},
"include": ["./src/**/*"],
"exclude": ["dist"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"declarationDir": "."
},
"include": ["./src/**/*"],
"exclude": ["dist"],
}
Loading