@ntnyq/eslint-config 2.0.0-beta.10 → 2.0.0-beta.11
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 +6 -6
- package/dist/index.js +14 -7
- package/package.json +21 -21
package/dist/index.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ export { default as reactHooksPlugin } from 'eslint-plugin-react-hooks';
|
|
|
9
9
|
/**
|
|
10
10
|
* @file shared constants
|
|
11
11
|
*/
|
|
12
|
-
declare const GLOB_SRC_EXT = "?([
|
|
13
|
-
declare const GLOB_SRC = "**/*.?([
|
|
14
|
-
declare const GLOB_JS = "**/*.?([
|
|
15
|
-
declare const GLOB_JSX = "**/*.?([
|
|
16
|
-
declare const GLOB_TS = "**/*.?([
|
|
17
|
-
declare const GLOB_TSX = "**/*.?([
|
|
12
|
+
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
13
|
+
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
14
|
+
declare const GLOB_JS = "**/*.?([cm])js";
|
|
15
|
+
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
16
|
+
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
17
|
+
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
18
18
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
19
19
|
declare const GLOB_CSS = "**/*.css";
|
|
20
20
|
declare const GLOB_LESS = "**/*.less";
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// src/shared.ts
|
|
2
|
-
var GLOB_SRC_EXT = "?([
|
|
3
|
-
var GLOB_SRC = "**/*.?([
|
|
4
|
-
var GLOB_JS = "**/*.?([
|
|
5
|
-
var GLOB_JSX = "**/*.?([
|
|
6
|
-
var GLOB_TS = "**/*.?([
|
|
7
|
-
var GLOB_TSX = "**/*.?([
|
|
2
|
+
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
3
|
+
var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
4
|
+
var GLOB_JS = "**/*.?([cm])js";
|
|
5
|
+
var GLOB_JSX = "**/*.?([cm])jsx";
|
|
6
|
+
var GLOB_TS = "**/*.?([cm])ts";
|
|
7
|
+
var GLOB_TSX = "**/*.?([cm])tsx";
|
|
8
8
|
var GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
9
9
|
var GLOB_CSS = "**/*.css";
|
|
10
10
|
var GLOB_LESS = "**/*.less";
|
|
@@ -38,7 +38,7 @@ var GLOB_EXCLUDE = [
|
|
|
38
38
|
"**/*.min.*",
|
|
39
39
|
"**/LICENSE*",
|
|
40
40
|
"**/__snapshots__",
|
|
41
|
-
"**/auto-import.d.ts",
|
|
41
|
+
"**/auto-import?(s).d.ts",
|
|
42
42
|
"**/components.d.ts",
|
|
43
43
|
"**/output",
|
|
44
44
|
"**/coverage",
|
|
@@ -505,6 +505,13 @@ var unicorn = [
|
|
|
505
505
|
"unicorn/prefer-optional-catch-binding": "error",
|
|
506
506
|
"unicorn/prefer-prototype-methods": "error",
|
|
507
507
|
"unicorn/prefer-reflect-apply": "error",
|
|
508
|
+
"unicorn/catch-error-name": [
|
|
509
|
+
"error",
|
|
510
|
+
{
|
|
511
|
+
name: "err",
|
|
512
|
+
ignore: ["^_."]
|
|
513
|
+
}
|
|
514
|
+
],
|
|
508
515
|
"unicorn/prefer-date-now": "error",
|
|
509
516
|
// String
|
|
510
517
|
"unicorn/prefer-string-slice": "error",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "2.0.0-beta.11",
|
|
5
|
+
"packageManager": "pnpm@8.6.2",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"eslint",
|
|
@@ -30,42 +30,42 @@
|
|
|
30
30
|
"eslint": "^8.30.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@eslint/js": "^8.
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
35
|
-
"@typescript-eslint/parser": "^5.59.
|
|
36
|
-
"astro-eslint-parser": "^0.
|
|
33
|
+
"@eslint/js": "^8.43.0",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
35
|
+
"@typescript-eslint/parser": "^5.59.11",
|
|
36
|
+
"astro-eslint-parser": "^0.14.0",
|
|
37
37
|
"eslint-config-prettier": "^8.8.0",
|
|
38
38
|
"eslint-define-config": "^1.20.0",
|
|
39
|
-
"eslint-plugin-astro": "^0.
|
|
39
|
+
"eslint-plugin-astro": "^0.27.1",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
41
|
"eslint-plugin-import": "^2.27.5",
|
|
42
|
-
"eslint-plugin-jsonc": "^2.
|
|
42
|
+
"eslint-plugin-jsonc": "^2.9.0",
|
|
43
43
|
"eslint-plugin-markdown": "^3.0.0",
|
|
44
44
|
"eslint-plugin-prettier": "^4.2.1",
|
|
45
45
|
"eslint-plugin-react": "^7.32.2",
|
|
46
46
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
47
47
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
48
|
-
"eslint-plugin-vue": "^9.
|
|
49
|
-
"eslint-plugin-yml": "^1.
|
|
48
|
+
"eslint-plugin-vue": "^9.15.0",
|
|
49
|
+
"eslint-plugin-yml": "^1.8.0",
|
|
50
50
|
"globals": "^13.20.0",
|
|
51
|
-
"jsonc-eslint-parser": "^2.
|
|
51
|
+
"jsonc-eslint-parser": "^2.3.0",
|
|
52
52
|
"local-pkg": "^0.4.3",
|
|
53
53
|
"prettier": "^2.8.8",
|
|
54
|
-
"vue-eslint-parser": "^9.
|
|
55
|
-
"yaml-eslint-parser": "^1.2.
|
|
54
|
+
"vue-eslint-parser": "^9.3.1",
|
|
55
|
+
"yaml-eslint-parser": "^1.2.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@ntnyq/prettier-config": "^1.
|
|
59
|
-
"@types/node": "^20.1
|
|
60
|
-
"bumpp": "^9.1.
|
|
61
|
-
"eslint": "^8.
|
|
58
|
+
"@ntnyq/prettier-config": "^1.9.0",
|
|
59
|
+
"@types/node": "^20.3.1",
|
|
60
|
+
"bumpp": "^9.1.1",
|
|
61
|
+
"eslint": "^8.43.0",
|
|
62
62
|
"husky": "^8.0.3",
|
|
63
63
|
"nano-staged": "^0.8.0",
|
|
64
64
|
"npm-run-all": "^4.1.5",
|
|
65
|
-
"pnpm": "^8.
|
|
66
|
-
"rimraf": "^5.0.
|
|
67
|
-
"tsup": "^
|
|
68
|
-
"typescript": "5.
|
|
65
|
+
"pnpm": "^8.6.2",
|
|
66
|
+
"rimraf": "^5.0.1",
|
|
67
|
+
"tsup": "^7.0.0",
|
|
68
|
+
"typescript": "5.1.3"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=16.14.0"
|