Skip to content

Commit 8e82f1c

Browse files
authored
spaces to tabs (#283)
1 parent a1fe846 commit 8e82f1c

File tree

122 files changed

+5288
-5288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+5288
-5288
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ trim_trailing_whitespace = true
1010
[*.md]
1111
trim_trailing_whitespace = false
1212

13-
[*.{json,yml}]
13+
[*.yml]
1414
indent_size = 2
1515
indent_style = space

.eslintrc.json

+37-37
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
2-
"env": {
3-
"es6": true,
4-
"node": true
5-
},
6-
"extends": "eslint:recommended",
7-
"parserOptions": {
8-
"ecmaVersion": 2020,
9-
"sourceType": "module"
10-
},
11-
"rules": {
12-
"quotes": ["error", "single"],
13-
"comma-dangle": ["error", "always-multiline"],
14-
"semi": ["error", "always"],
15-
"curly": "error",
16-
"brace-style": "error",
17-
"indent": ["error", "tab", { "SwitchCase": 1 }],
18-
"radix": "error"
19-
},
20-
"overrides": [
21-
{
22-
"files": [
23-
"**/*.ts"
24-
],
25-
"extends": [
26-
"plugin:@typescript-eslint/eslint-recommended",
27-
"plugin:@typescript-eslint/recommended"
28-
],
29-
"parser": "@typescript-eslint/parser",
30-
"plugins": [
31-
"@typescript-eslint"
32-
],
33-
"rules": {
34-
"no-shadow": "off",
35-
"@typescript-eslint/no-shadow": "error"
36-
}
37-
}
38-
]
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": "eslint:recommended",
7+
"parserOptions": {
8+
"ecmaVersion": 2020,
9+
"sourceType": "module"
10+
},
11+
"rules": {
12+
"quotes": ["error", "single"],
13+
"comma-dangle": ["error", "always-multiline"],
14+
"semi": ["error", "always"],
15+
"curly": "error",
16+
"brace-style": "error",
17+
"indent": ["error", "tab", { "SwitchCase": 1 }],
18+
"radix": "error"
19+
},
20+
"overrides": [
21+
{
22+
"files": [
23+
"**/*.ts"
24+
],
25+
"extends": [
26+
"plugin:@typescript-eslint/eslint-recommended",
27+
"plugin:@typescript-eslint/recommended"
28+
],
29+
"parser": "@typescript-eslint/parser",
30+
"plugins": [
31+
"@typescript-eslint"
32+
],
33+
"rules": {
34+
"no-shadow": "off",
35+
"@typescript-eslint/no-shadow": "error"
36+
}
37+
}
38+
]
3939
}

.github/bin/format-package-json.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { promises as fsp, constants } from 'fs';
22

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

77
// Main info
@@ -195,9 +195,9 @@ const formatted = {};
195195

196196
Object.assign(formatted, packageJSONInfo);
197197

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

203-
await fsp.writeFile('./package.json', JSON.stringify(formatted, null, 2) + '\n');
203+
await fsp.writeFile('./package.json', JSON.stringify(formatted, null, '\t') + '\n');

.github/bin/generate-docs/install-template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ postcss([
2929
Add [PostCSS CLI] to your project:
3030

3131
```bash
32-
npm install postcss-cli <packageName> --save-dev
32+
npm install postcss-cli <packageName> --save-dev
3333
```
3434

3535
Use [<humanReadableName>] in your `postcss.config.js` configuration file:

.github/bin/generate-docs/readme.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const postcss = require('postcss');
4949
const <exportName> = require('<packageName>');
5050
5151
postcss([
52-
<exportName>(/* pluginOptions */)
52+
<exportName>(/* pluginOptions */)
5353
]).process(YOUR_CSS /*, processOptions */);
5454
\`\`\``);
5555

cli/csstools-cli/package.json

+69-69
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
11
{
2-
"name": "@csstools/csstools-cli",
3-
"description": "Transform CSS with any plugin from csstools/postcss-plugins",
4-
"version": "1.2.0",
5-
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
6-
"license": "CC0-1.0",
7-
"engines": {
8-
"node": "^12 || ^14 || >=16"
9-
},
10-
"bin": {
11-
"csstools-cli": "dist/cli.cjs"
12-
},
13-
"types": "dist/cli.d.ts",
14-
"files": [
15-
"CHANGELOG.md",
16-
"LICENSE.md",
17-
"README.md",
18-
"dist"
19-
],
20-
"dependencies": {
21-
"@csstools/postcss-font-format-keywords": "^1.0.0",
22-
"@csstools/postcss-hwb-function": "^1.0.0",
23-
"@csstools/postcss-is-pseudo-class": "^2.0.0",
24-
"@csstools/postcss-normalize-display-values": "^1.0.0",
25-
"css-blank-pseudo": "^3.0.3",
26-
"css-has-pseudo": "^3.0.4",
27-
"css-prefers-color-scheme": "^6.0.3",
28-
"postcss-color-functional-notation": "^4.2.2",
29-
"postcss-color-hex-alpha": "^8.0.3",
30-
"postcss-color-rebeccapurple": "^7.0.2",
31-
"postcss-custom-properties": "^12.1.4",
32-
"postcss-dir-pseudo-class": "^6.0.4",
33-
"postcss-double-position-gradients": "^3.1.0",
34-
"postcss-env-function": "^4.0.5",
35-
"postcss-focus-visible": "^6.0.4",
36-
"postcss-focus-within": "^5.0.4",
37-
"postcss-gap-properties": "^3.0.3",
38-
"postcss-image-set-function": "^4.0.6",
39-
"postcss-lab-function": "^4.1.1",
40-
"postcss-logical": "^5.0.4",
41-
"postcss-nesting": "^10.1.2",
42-
"postcss-overflow-shorthand": "^3.0.3",
43-
"postcss-place": "^7.0.4",
44-
"postcss-preset-env": "^7.4.0",
45-
"postcss-pseudo-class-any-link": "^7.1.1"
46-
},
47-
"devDependencies": {
48-
"postcss": "^8.4.6"
49-
},
50-
"scripts": {
51-
"build": "rollup -c ../../rollup/default.js",
52-
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
53-
"csstools-cli": "csstools-cli",
54-
"lint": "npm run lint:eslint && npm run lint:package-json",
55-
"lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
56-
"lint:package-json": "node ../../.github/bin/format-package-json.mjs",
57-
"prepublishOnly": "npm run clean && npm run build && npm run test",
58-
"stryker": "stryker run --logLevel error",
59-
"test": "exit 0",
60-
"test:cli": "bash ./test/cli/test.sh"
61-
},
62-
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/cli/csstools-cli#readme",
63-
"repository": {
64-
"type": "git",
65-
"url": "https://github.com/csstools/postcss-plugins.git",
66-
"directory": "cli/csstools-cli"
67-
},
68-
"volta": {
69-
"extends": "../../package.json"
70-
}
2+
"name": "@csstools/csstools-cli",
3+
"description": "Transform CSS with any plugin from csstools/postcss-plugins",
4+
"version": "1.2.0",
5+
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
6+
"license": "CC0-1.0",
7+
"engines": {
8+
"node": "^12 || ^14 || >=16"
9+
},
10+
"bin": {
11+
"csstools-cli": "dist/cli.cjs"
12+
},
13+
"types": "dist/cli.d.ts",
14+
"files": [
15+
"CHANGELOG.md",
16+
"LICENSE.md",
17+
"README.md",
18+
"dist"
19+
],
20+
"dependencies": {
21+
"@csstools/postcss-font-format-keywords": "^1.0.0",
22+
"@csstools/postcss-hwb-function": "^1.0.0",
23+
"@csstools/postcss-is-pseudo-class": "^2.0.0",
24+
"@csstools/postcss-normalize-display-values": "^1.0.0",
25+
"css-blank-pseudo": "^3.0.3",
26+
"css-has-pseudo": "^3.0.4",
27+
"css-prefers-color-scheme": "^6.0.3",
28+
"postcss-color-functional-notation": "^4.2.2",
29+
"postcss-color-hex-alpha": "^8.0.3",
30+
"postcss-color-rebeccapurple": "^7.0.2",
31+
"postcss-custom-properties": "^12.1.4",
32+
"postcss-dir-pseudo-class": "^6.0.4",
33+
"postcss-double-position-gradients": "^3.1.0",
34+
"postcss-env-function": "^4.0.5",
35+
"postcss-focus-visible": "^6.0.4",
36+
"postcss-focus-within": "^5.0.4",
37+
"postcss-gap-properties": "^3.0.3",
38+
"postcss-image-set-function": "^4.0.6",
39+
"postcss-lab-function": "^4.1.1",
40+
"postcss-logical": "^5.0.4",
41+
"postcss-nesting": "^10.1.2",
42+
"postcss-overflow-shorthand": "^3.0.3",
43+
"postcss-place": "^7.0.4",
44+
"postcss-preset-env": "^7.4.0",
45+
"postcss-pseudo-class-any-link": "^7.1.1"
46+
},
47+
"devDependencies": {
48+
"postcss": "^8.4.6"
49+
},
50+
"scripts": {
51+
"build": "rollup -c ../../rollup/default.js",
52+
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
53+
"csstools-cli": "csstools-cli",
54+
"lint": "npm run lint:eslint && npm run lint:package-json",
55+
"lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
56+
"lint:package-json": "node ../../.github/bin/format-package-json.mjs",
57+
"prepublishOnly": "npm run clean && npm run build && npm run test",
58+
"stryker": "stryker run --logLevel error",
59+
"test": "exit 0",
60+
"test:cli": "bash ./test/cli/test.sh"
61+
},
62+
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/cli/csstools-cli#readme",
63+
"repository": {
64+
"type": "git",
65+
"url": "https://github.com/csstools/postcss-plugins.git",
66+
"directory": "cli/csstools-cli"
67+
},
68+
"volta": {
69+
"extends": "../../package.json"
70+
}
7171
}

cli/csstools-cli/stryker.conf.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"$schema": "../../node_modules/@stryker-mutator/core/schema/stryker-schema.json",
3-
"mutate": [
4-
"src/**/*.ts"
5-
],
6-
"buildCommand": "npm run build",
7-
"testRunner": "command",
8-
"coverageAnalysis": "perTest",
9-
"tempDirName": "../../.stryker-tmp",
10-
"commandRunner": {
11-
"command": "npm run test:tape"
12-
},
13-
"thresholds": {
14-
"high": 100,
15-
"low": 100,
16-
"break": 100
17-
},
18-
"inPlace": true
2+
"$schema": "../../node_modules/@stryker-mutator/core/schema/stryker-schema.json",
3+
"mutate": [
4+
"src/**/*.ts"
5+
],
6+
"buildCommand": "npm run build",
7+
"testRunner": "command",
8+
"coverageAnalysis": "perTest",
9+
"tempDirName": "../../.stryker-tmp",
10+
"commandRunner": {
11+
"command": "npm run test:tape"
12+
},
13+
"thresholds": {
14+
"high": 100,
15+
"low": 100,
16+
"break": 100
17+
},
18+
"inPlace": true
1919
}

cli/csstools-cli/tsconfig.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "dist",
5-
"declarationDir": "."
6-
},
7-
"include": ["./src/**/*"],
8-
"exclude": ["dist"],
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"declarationDir": "."
6+
},
7+
"include": ["./src/**/*"],
8+
"exclude": ["dist"],
99
}

0 commit comments

Comments
 (0)