@theholocron/lint-staged-config 8.9.0-alpha.1 → 8.9.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,19 @@
|
|
|
2
2
|
* @see https://github.com/lint-staged/lint-staged?tab=readme-ov-file#configuration
|
|
3
3
|
*/
|
|
4
4
|
declare const config: {
|
|
5
|
+
/** Fixes staged CSS files with `stylelint --fix`. */
|
|
5
6
|
"*.css": string;
|
|
7
|
+
/** Formats staged JavaScript files with Prettier, then lints them with ESLint. */
|
|
6
8
|
"*.{js,jsx}": string[];
|
|
9
|
+
/** Formats staged Markdown files with Prettier. */
|
|
7
10
|
"*.md": string[];
|
|
11
|
+
/** Formats staged MDX files with Prettier. */
|
|
8
12
|
"*.mdx": string[];
|
|
13
|
+
/** Fixes staged SCSS files with `stylelint --syntax=scss --fix`. */
|
|
9
14
|
"*.scss": string;
|
|
15
|
+
/** Formats staged TypeScript files with Prettier, then lints them with ESLint. */
|
|
10
16
|
"*.{ts,tsx}": string[];
|
|
17
|
+
/** Sorts the keys of a staged `package.json` with `sort-package-json`. */
|
|
11
18
|
"package.json": string;
|
|
12
19
|
};
|
|
13
20
|
export { config as default };
|
package/dist/index.js
CHANGED
|
@@ -35,12 +35,19 @@ const eslint = eslintConfig ? `eslint --config ${eslintConfig}` : "eslint";
|
|
|
35
35
|
* @see https://github.com/lint-staged/lint-staged?tab=readme-ov-file#configuration
|
|
36
36
|
*/
|
|
37
37
|
const config = {
|
|
38
|
+
/** Fixes staged CSS files with `stylelint --fix`. */
|
|
38
39
|
"*.css": "stylelint --fix",
|
|
40
|
+
/** Formats staged JavaScript files with Prettier, then lints them with ESLint. */
|
|
39
41
|
"*.{js,jsx}": [prettierWrite, eslint],
|
|
42
|
+
/** Formats staged Markdown files with Prettier. */
|
|
40
43
|
"*.md": [prettierWrite],
|
|
44
|
+
/** Formats staged MDX files with Prettier. */
|
|
41
45
|
"*.mdx": [prettierWrite],
|
|
46
|
+
/** Fixes staged SCSS files with `stylelint --syntax=scss --fix`. */
|
|
42
47
|
"*.scss": "stylelint --syntax=scss --fix",
|
|
48
|
+
/** Formats staged TypeScript files with Prettier, then lints them with ESLint. */
|
|
43
49
|
"*.{ts,tsx}": [prettierWrite, eslint],
|
|
50
|
+
/** Sorts the keys of a staged `package.json` with `sort-package-json`. */
|
|
44
51
|
"package.json": "sort-package-json"
|
|
45
52
|
};
|
|
46
53
|
export { config as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/lint-staged-config",
|
|
3
|
-
"version": "8.9.0-alpha.
|
|
3
|
+
"version": "8.9.0-alpha.15",
|
|
4
4
|
"description": "A Lint Staged configuration for linting code that has been staged in Git within the Galaxy.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint-staged",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"dist/"
|
|
34
34
|
],
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@vitest/coverage-v8": "^5.0
|
|
37
|
-
"tsdown": "^0.23.
|
|
36
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
37
|
+
"tsdown": "^0.23.5",
|
|
38
38
|
"typescript": "^5.9.3",
|
|
39
|
-
"vitest": "^5.0
|
|
40
|
-
"@theholocron/
|
|
41
|
-
"@theholocron/
|
|
39
|
+
"vitest": "^5.1.0",
|
|
40
|
+
"@theholocron/vitest-config": "8.9.0-alpha.15",
|
|
41
|
+
"@theholocron/tsconfig": "8.9.0-alpha.15"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"husky": "^9",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"build": "tsdown",
|
|
61
|
+
"lint:code": "eslint .",
|
|
62
|
+
"test:unit": "vitest run --coverage",
|
|
62
63
|
"test:watch": "vitest",
|
|
63
|
-
"
|
|
64
|
-
"verification.unitTests": "vitest run"
|
|
64
|
+
"typecheck": "tsc --noEmit"
|
|
65
65
|
}
|
|
66
66
|
}
|