@ntnyq/eslint-config 3.1.1 → 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/README.md +5 -4
- package/dist/index.cjs +32 -0
- package/dist/index.d.cts +53 -47
- package/dist/index.d.ts +53 -47
- package/dist/index.js +32 -0
- package/package.json +20 -21
package/README.md
CHANGED
|
@@ -31,14 +31,15 @@ import { defineESLintConfig } from '@ntnyq/eslint-config'
|
|
|
31
31
|
export default defineESLintConfig()
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
Add scripts `lint` in `package.json
|
|
34
|
+
Add scripts `lint` in `package.json` and config prettier:
|
|
35
35
|
|
|
36
36
|
```json
|
|
37
37
|
{
|
|
38
38
|
"scripts": {
|
|
39
39
|
"lint": "eslint .",
|
|
40
40
|
"lint:fix": "eslint . --fix"
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
"prettier": "@ntnyq/prettier-config"
|
|
42
43
|
}
|
|
43
44
|
```
|
|
44
45
|
|
|
@@ -86,12 +87,12 @@ pnpm add husky nano-staged -D
|
|
|
86
87
|
"prepare": "husky"
|
|
87
88
|
},
|
|
88
89
|
"nano-staged": {
|
|
89
|
-
"*.{js,ts,cjs,mjs,vue,md,yml,yaml,json,html}": "eslint --fix"
|
|
90
|
+
"*.{js,ts,cjs,mjs,jsx,tsx,vue,md,yml,yaml,json,html}": "eslint --fix"
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
```
|
|
93
94
|
|
|
94
|
-
### 3. Add a hook
|
|
95
|
+
### 3. Add a git hook
|
|
95
96
|
|
|
96
97
|
```bash
|
|
97
98
|
echo "nano-staged" > .husky/pre-commit
|
package/dist/index.cjs
CHANGED
|
@@ -815,22 +815,35 @@ var sort = (options = {}) => {
|
|
|
815
815
|
{
|
|
816
816
|
pathPattern: "^$",
|
|
817
817
|
order: [
|
|
818
|
+
/**
|
|
819
|
+
* Meta
|
|
820
|
+
*/
|
|
818
821
|
"publisher",
|
|
819
822
|
"name",
|
|
820
823
|
"displayName",
|
|
821
824
|
"preview",
|
|
822
825
|
"type",
|
|
826
|
+
"config",
|
|
823
827
|
"version",
|
|
824
828
|
"private",
|
|
825
829
|
"packageManager",
|
|
830
|
+
"workspaces",
|
|
826
831
|
"description",
|
|
827
832
|
"keywords",
|
|
828
833
|
"license",
|
|
834
|
+
"licenses",
|
|
829
835
|
"author",
|
|
836
|
+
"contributors",
|
|
837
|
+
"maintainers",
|
|
830
838
|
"homepage",
|
|
831
839
|
"repository",
|
|
840
|
+
"bugs",
|
|
832
841
|
"funding",
|
|
842
|
+
/**
|
|
843
|
+
* Publish
|
|
844
|
+
*/
|
|
833
845
|
"exports",
|
|
846
|
+
"imports",
|
|
834
847
|
"main",
|
|
835
848
|
"module",
|
|
836
849
|
"unpkg",
|
|
@@ -841,20 +854,39 @@ var sort = (options = {}) => {
|
|
|
841
854
|
"bin",
|
|
842
855
|
"icon",
|
|
843
856
|
"files",
|
|
857
|
+
"directories",
|
|
858
|
+
"publishConfig",
|
|
859
|
+
/**
|
|
860
|
+
* Misc
|
|
861
|
+
*/
|
|
844
862
|
"sideEffects",
|
|
845
863
|
"scripts",
|
|
864
|
+
/**
|
|
865
|
+
* Dependencies
|
|
866
|
+
*/
|
|
846
867
|
"peerDependencies",
|
|
847
868
|
"peerDependenciesMeta",
|
|
869
|
+
"bundledDependencies",
|
|
870
|
+
"bundleDependencies",
|
|
848
871
|
"dependencies",
|
|
849
872
|
"optionalDependencies",
|
|
850
873
|
"devDependencies",
|
|
874
|
+
/**
|
|
875
|
+
* VSCode extension
|
|
876
|
+
*/
|
|
851
877
|
"activationEvents",
|
|
852
878
|
"contributes",
|
|
853
879
|
"categories",
|
|
880
|
+
/**
|
|
881
|
+
* Package manager
|
|
882
|
+
*/
|
|
854
883
|
"engines",
|
|
855
884
|
"pnpm",
|
|
856
885
|
"overrides",
|
|
857
886
|
"resolutions",
|
|
887
|
+
/**
|
|
888
|
+
* Third party
|
|
889
|
+
*/
|
|
858
890
|
"husky",
|
|
859
891
|
"prettier",
|
|
860
892
|
"nano-staged",
|