@theholocron/lint-staged-config 3.0.0 → 3.2.0
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/CHANGELOG.md +13 -1
- package/README.md +2 -2
- package/lint-staged.config.js +5 -6
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
# @theholocron/lint-staged-config
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`46d40c1`](https://github.com/theholocron/configs/commit/46d40c17d963b3c81fd6fdf308da4228112f5fe4) Thanks [@iamnewton](https://github.com/iamnewton)! - Add more to eslint-config, add in storybook-config
|
|
8
|
+
|
|
9
|
+
## 3.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`4f8154a`](https://github.com/theholocron/configs/commit/4f8154a534d5d7668cd2659da322448f39646aed) Thanks [@iamnewton](https://github.com/iamnewton)! - Update to include Alex language linting in lint-staging
|
|
14
|
+
|
|
3
15
|
## 3.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
19
|
+
- [`88d7f99`](https://github.com/theholocron/configs/commit/88d7f995dd02cdbe63817ac0d13905d5aea3777a) Thanks [@iamnewton](https://github.com/iamnewton)! - Initial release
|
package/README.md
CHANGED
|
@@ -17,9 +17,9 @@ In your project `.husky/pre-commit` add the following:
|
|
|
17
17
|
npx lint-staged --config @theholocron/lint-staged-config
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
## How We Manage
|
|
20
|
+
## How We Manage Our Staged Code
|
|
21
21
|
|
|
22
|
-
This library uses [husky](https://github.com/typicode/husky) for managing
|
|
22
|
+
This library uses [`husky`](https://github.com/typicode/husky) for managing tools and extending that with `lint-staged`. This means we can run automated tasks on any file that is placed on the Git stage. Currently that means we run the following commands on various types of code:
|
|
23
23
|
|
|
24
24
|
### [TJ]S(X)
|
|
25
25
|
|
package/lint-staged.config.js
CHANGED
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
* @type {import("lint-staged").Config}
|
|
4
4
|
*/
|
|
5
5
|
export default {
|
|
6
|
-
"*.{ts,tsx,js,jsx}": [
|
|
7
|
-
"prettier --write",
|
|
8
|
-
"eslint",
|
|
9
|
-
"tsc --noEmit --showConfig",
|
|
10
|
-
],
|
|
11
6
|
"*.css": "stylelint --fix",
|
|
12
|
-
"*.
|
|
7
|
+
"*.{js,jsx}": ["prettier --write", "eslint"],
|
|
8
|
+
"*.md": ["prettier --write"], // disabling alex --why because of https://github.com/get-alex/alex/issues/348
|
|
9
|
+
"*.mdx": ["prettier --write", "alex --mdx --why"],
|
|
13
10
|
"*.{png,jpeg,jpg,gif,svg}": "imagemin-lint-staged",
|
|
11
|
+
"*.scss": "stylelint --syntax=scss --fix",
|
|
12
|
+
"*.{ts,tsx}": ["prettier --write", "eslint", "tsc --noEmit --showConfig"],
|
|
14
13
|
"package.json": "sort-package-json",
|
|
15
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/lint-staged-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "A Lint Staged configuration for linting code that has been staged in Git within the Galaxy.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/configs/tree/main/packages/lint-staged-config#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"prepare": "husky"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
+
"alex": "^11.0.1",
|
|
19
20
|
"husky": "^9.1.6",
|
|
20
21
|
"imagemin-lint-staged": "^0.5.1",
|
|
21
22
|
"lint-staged": "^15.2.10",
|