@theholocron/lint-staged-config 1.16.0 → 3.1.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 CHANGED
@@ -1,7 +1,13 @@
1
1
  # @theholocron/lint-staged-config
2
2
 
3
- ## 1.16.0
3
+ ## 3.1.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [`4309ce8`](https://github.com/theholocron/configs/commit/4309ce860374743fa4a4ea781820f3875e647a46) Thanks [@iamnewton](https://github.com/iamnewton)! - Releasing more, as a test
7
+ - [`4f8154a`](https://github.com/theholocron/configs/commit/4f8154a534d5d7668cd2659da322448f39646aed) Thanks [@iamnewton](https://github.com/iamnewton)! - Update to include Alex language linting in lint-staging
8
+
9
+ ## 3.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`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 Git Hooks
20
+ ## How We Manage Our Staged Code
21
21
 
22
- This library uses [husky](https://github.com/typicode/husky) for managing Git hooks and extends 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:
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
 
@@ -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 --ignore-path .gitignore",
9
- "tsc --noEmit",
10
- ],
11
6
  "*.css": "stylelint --fix",
12
- "*.scss": "stylelint --syntax=scss --fix",
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,29 +1,30 @@
1
1
  {
2
2
  "name": "@theholocron/lint-staged-config",
3
- "homepage": "https://github.com/the-holocron/configs/tree/master/packages/lint-staged-config#readme",
3
+ "version": "3.1.0",
4
4
  "description": "A Lint Staged configuration for linting code that has been staged in Git within the Galaxy.",
5
- "author": "Newton Koumantzelis",
6
- "version": "1.16.0",
7
- "main": "lint-staged.config.js",
8
- "type": "module",
5
+ "homepage": "https://github.com/theholocron/configs/tree/main/packages/lint-staged-config#readme",
6
+ "bugs": "https://github.com/theholocron/configs/issues",
9
7
  "repository": {
10
8
  "type": "git",
11
9
  "url": "git+https://github.com/theholocron/configs.git"
12
10
  },
13
- "bugs": "https://github.com/theholocron/configs/issues",
14
- "releases": "https://github.com/theholocron/configs/releases",
15
- "wiki": "https://github.com/theholocron/configs/wiki",
16
11
  "license": "GPL-3.0",
17
- "publishConfig": {
18
- "access": "public"
19
- },
12
+ "author": "Newton Koumantzelis",
13
+ "type": "module",
14
+ "main": "lint-staged.config.js",
20
15
  "scripts": {
21
16
  "prepare": "husky"
22
17
  },
23
18
  "dependencies": {
19
+ "alex": "^11.0.1",
24
20
  "husky": "^9.1.6",
25
21
  "imagemin-lint-staged": "^0.5.1",
26
22
  "lint-staged": "^15.2.10",
27
23
  "sort-package-json": "^2.10.1"
28
- }
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "releases": "https://github.com/theholocron/configs/releases",
29
+ "wiki": "https://github.com/theholocron/configs/wiki"
29
30
  }