@ntnyq/eslint-config 2.0.0-beta.7 → 2.0.0-beta.9
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 +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -6
- package/package.json +16 -12
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as reactHooksPlugin } from 'eslint-plugin-react-hooks';
|
|
|
9
9
|
/**
|
|
10
10
|
* @file shared constants
|
|
11
11
|
*/
|
|
12
|
+
declare const GLOB_SRC_EXT = "?([mt])[jt]s?(x)";
|
|
12
13
|
declare const GLOB_SRC = "**/*.?([mt])[jt]s?(x)";
|
|
13
14
|
declare const GLOB_JS = "**/*.?([mt])js";
|
|
14
15
|
declare const GLOB_JSX = "**/*.?([mt])jsx";
|
|
@@ -76,4 +77,4 @@ declare const markdown: FlatESLintConfig[];
|
|
|
76
77
|
|
|
77
78
|
declare const eslintComments: FlatESLintConfig[];
|
|
78
79
|
|
|
79
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, astro, basic, eslintComments, getVueVersion, imports, js, jsonc, jsx, markdown, ntnyq, pkgOrder, prettier, react, ts, unicorn, vue, yml };
|
|
80
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, astro, basic, eslintComments, getVueVersion, imports, js, jsonc, jsx, markdown, ntnyq, pkgOrder, prettier, react, ts, unicorn, vue, yml };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/shared.ts
|
|
2
|
+
var GLOB_SRC_EXT = "?([mt])[jt]s?(x)";
|
|
2
3
|
var GLOB_SRC = "**/*.?([mt])[jt]s?(x)";
|
|
3
4
|
var GLOB_JS = "**/*.?([mt])js";
|
|
4
5
|
var GLOB_JSX = "**/*.?([mt])jsx";
|
|
@@ -36,6 +37,9 @@ var GLOB_EXCLUDE = [
|
|
|
36
37
|
"**/CHANGELOG*.md",
|
|
37
38
|
"**/*.min.*",
|
|
38
39
|
"**/LICENSE*",
|
|
40
|
+
"**/__snapshots__",
|
|
41
|
+
"**/auto-import.d.ts",
|
|
42
|
+
"**/components.d.ts",
|
|
39
43
|
"**/output",
|
|
40
44
|
"**/coverage",
|
|
41
45
|
"**/temp",
|
|
@@ -45,9 +49,6 @@ var GLOB_EXCLUDE = [
|
|
|
45
49
|
"**/.nuxt",
|
|
46
50
|
"**/.vercel",
|
|
47
51
|
"**/.changeset",
|
|
48
|
-
"**/__snapshots__",
|
|
49
|
-
"**/auto-import.d.ts",
|
|
50
|
-
"**/components.d.ts",
|
|
51
52
|
"**/.npmrc",
|
|
52
53
|
"**/.yarnrc"
|
|
53
54
|
];
|
|
@@ -445,10 +446,10 @@ var imports = [
|
|
|
445
446
|
"import/no-unresolved": "off",
|
|
446
447
|
"import/no-absolute-path": "off",
|
|
447
448
|
"import/no-named-as-default-member": "off",
|
|
448
|
-
"import/newline-after-import": "error",
|
|
449
449
|
"import/first": "error",
|
|
450
|
-
"import/no-mutable-exports": "error",
|
|
451
450
|
"import/no-duplicates": "error",
|
|
451
|
+
"import/no-mutable-exports": "error",
|
|
452
|
+
"import/newline-after-import": "error",
|
|
452
453
|
"import/order": [
|
|
453
454
|
"error",
|
|
454
455
|
{
|
|
@@ -875,7 +876,7 @@ var markdown = [
|
|
|
875
876
|
processor: "markdown/markdown"
|
|
876
877
|
},
|
|
877
878
|
{
|
|
878
|
-
files: [
|
|
879
|
+
files: [`${GLOB_MARKDOWN}/${GLOB_SRC}`, `${GLOB_MARKDOWN}/${GLOB_VUE}`],
|
|
879
880
|
languageOptions: {
|
|
880
881
|
parserOptions: {
|
|
881
882
|
ecmaFeatures: {
|
|
@@ -988,6 +989,7 @@ export {
|
|
|
988
989
|
GLOB_NODE_MODULES,
|
|
989
990
|
GLOB_SCSS,
|
|
990
991
|
GLOB_SRC,
|
|
992
|
+
GLOB_SRC_EXT,
|
|
991
993
|
GLOB_STYLE,
|
|
992
994
|
GLOB_TS,
|
|
993
995
|
GLOB_TSX,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.9",
|
|
5
5
|
"packageManager": "pnpm@8.2.0",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"eslint": "^8.30.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@eslint/js": "^8.
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
35
|
-
"@typescript-eslint/parser": "^5.
|
|
33
|
+
"@eslint/js": "^8.39.0",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
|
35
|
+
"@typescript-eslint/parser": "^5.59.1",
|
|
36
36
|
"astro-eslint-parser": "^0.13.3",
|
|
37
37
|
"eslint-config-prettier": "^8.8.0",
|
|
38
|
-
"eslint-define-config": "^1.
|
|
38
|
+
"eslint-define-config": "^1.20.0",
|
|
39
39
|
"eslint-plugin-astro": "^0.26.1",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
41
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -50,18 +50,20 @@
|
|
|
50
50
|
"globals": "^13.20.0",
|
|
51
51
|
"jsonc-eslint-parser": "^2.2.0",
|
|
52
52
|
"local-pkg": "^0.4.3",
|
|
53
|
-
"prettier": "^2.8.
|
|
53
|
+
"prettier": "^2.8.8",
|
|
54
54
|
"vue-eslint-parser": "^9.1.1",
|
|
55
55
|
"yaml-eslint-parser": "^1.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@ntnyq/prettier-config": "^1.
|
|
59
|
-
"@types/node": "^18.
|
|
58
|
+
"@ntnyq/prettier-config": "^1.7.2",
|
|
59
|
+
"@types/node": "^18.16.3",
|
|
60
60
|
"bumpp": "^9.1.0",
|
|
61
|
-
"eslint": "^8.
|
|
61
|
+
"eslint": "^8.39.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.3.1",
|
|
66
|
+
"rimraf": "^5.0.0",
|
|
65
67
|
"tsup": "^6.7.0",
|
|
66
68
|
"typescript": "5.0.4"
|
|
67
69
|
},
|
|
@@ -74,9 +76,11 @@
|
|
|
74
76
|
},
|
|
75
77
|
"scripts": {
|
|
76
78
|
"build": "tsup",
|
|
79
|
+
"clean": "rimraf dist",
|
|
77
80
|
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint .",
|
|
78
|
-
"
|
|
79
|
-
"release": "
|
|
81
|
+
"release": "run-s release:check release:version",
|
|
82
|
+
"release:check": "run-s clean build lint typecheck",
|
|
83
|
+
"release:version": "bumpp && pnpm publish --tag next",
|
|
80
84
|
"typecheck": "tsc --noEmit"
|
|
81
85
|
}
|
|
82
86
|
}
|