@isentinel/eslint-config 1.2.3 → 1.2.4
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 +2 -0
- package/dist/{chunk-YSIDNL3J.js → chunk-2HV5XKT7.js} +0 -5
- package/dist/cli.js +3 -3
- package/dist/{eslint-plugin-simple-import-sort-DVWQC4YV.js → eslint-plugin-simple-import-sort-FWMVSWU4.js} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +17 -6
- package/package.json +5 -5
- package/dist/dist-3XXODFPQ.js +0 -1760
package/README.md
CHANGED
|
@@ -10,10 +10,6 @@ var __esm = (fn, res) => function __init() {
|
|
|
10
10
|
var __commonJS = (cb, mod) => function __require() {
|
|
11
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
12
|
};
|
|
13
|
-
var __export = (target, all) => {
|
|
14
|
-
for (var name in all)
|
|
15
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
|
-
};
|
|
17
13
|
var __copyProps = (to, from, except, desc) => {
|
|
18
14
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
15
|
for (let key of __getOwnPropNames(from))
|
|
@@ -40,7 +36,6 @@ var init_esm_shims = __esm({
|
|
|
40
36
|
|
|
41
37
|
export {
|
|
42
38
|
__commonJS,
|
|
43
|
-
__export,
|
|
44
39
|
__toESM,
|
|
45
40
|
init_esm_shims
|
|
46
41
|
};
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_esm_shims
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2HV5XKT7.js";
|
|
4
4
|
|
|
5
5
|
// src/cli.ts
|
|
6
6
|
init_esm_shims();
|
|
@@ -18,7 +18,7 @@ init_esm_shims();
|
|
|
18
18
|
import ansis from "ansis";
|
|
19
19
|
|
|
20
20
|
// package.json
|
|
21
|
-
var version = "1.2.
|
|
21
|
+
var version = "1.2.4";
|
|
22
22
|
var package_default = {
|
|
23
23
|
name: "@isentinel/eslint-config",
|
|
24
24
|
version,
|
|
@@ -54,7 +54,7 @@ var package_default = {
|
|
|
54
54
|
build: "nr gen && tsup --clean --dts",
|
|
55
55
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
56
56
|
dev: "npx @eslint/config-inspector --config eslint.config.ts",
|
|
57
|
-
gen: "
|
|
57
|
+
gen: "tsx scripts/typegen.ts && tsx scripts/versiongen.ts",
|
|
58
58
|
postgen: "echo 'Generation complete!'",
|
|
59
59
|
lint: "eslint",
|
|
60
60
|
prepack: "nr build",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS,
|
|
3
3
|
init_esm_shims
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2HV5XKT7.js";
|
|
5
5
|
|
|
6
6
|
// node_modules/.pnpm/eslint-plugin-simple-import-sort@12.1.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-simple-import-sort/shared.js
|
|
7
7
|
var require_shared = __commonJS({
|
package/dist/index.d.ts
CHANGED
|
@@ -14989,7 +14989,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
14989
14989
|
onlyEquality?: boolean
|
|
14990
14990
|
}]
|
|
14991
14991
|
// Names of all the configs
|
|
14992
|
-
type ConfigNames = 'style/eslint/comments' | 'style/formatters/setup' | 'style/ignores' | 'style/imports' | 'style/import-sort' | 'style/imports/game' | 'style/javascript/setup' | 'style/javascript/rules' | 'style/jsdoc' | 'style/jsonc/setup' | 'style/jsonc/rules' | 'style/markdown/setup' | 'style/markdown/processor' | 'style/markdown/parser' | 'style/markdown/disables' | 'style/package-json' | 'style/perfectionist' | 'style/pnpm/package-json' | 'style/pnpm/pnpm-workspace-yaml' | 'style/prettier' | 'style/promise' | 'style/react/setup' | 'style/react/rules' | 'style/react/type-aware-rules' | 'style/roblox' | 'style/shopify' | 'style/sonarjs' | 'style/sort-tsconfig' | 'style/spelling' | 'style/stylistic' | 'style/test/setup' | 'style/test/rules' | 'style/typescript/setup' | 'style/typescript/parser' | 'style/typescript/type-aware-parser' | 'style/typescript/rules' | 'style/unicorn' | 'style/yaml:setup' | 'style/yaml/rules'
|
|
14992
|
+
type ConfigNames = 'style/eslint/comments' | 'style/formatters/setup' | 'style/ignores' | 'style/imports' | 'style/import-sort' | 'style/imports/game' | 'style/javascript/setup' | 'style/javascript/rules' | 'style/jsdoc' | 'style/jsonc/setup' | 'style/jsonc/rules' | 'style/markdown/setup' | 'style/markdown/processor' | 'style/markdown/parser' | 'style/markdown/disables' | 'style/package-json' | 'style/perfectionist' | 'style/pnpm/package-json' | 'style/pnpm/pnpm-workspace-yaml' | 'style/prettier' | 'style/promise' | 'style/react/setup' | 'style/react/rules' | 'style/react/type-aware-rules' | 'style/roblox' | 'style/shopify' | 'style/sonarjs' | 'style/sort-tsconfig' | 'style/spelling' | 'style/stylistic' | 'style/test/setup' | 'style/test/rules' | 'style/typescript/setup' | 'style/typescript/parser' | 'style/typescript/type-aware-parser' | 'style/typescript/rules' | 'style/typescript/rules-type-aware' | 'style/unicorn' | 'style/yaml:setup' | 'style/yaml/rules'
|
|
14993
14993
|
|
|
14994
14994
|
type Awaitable<T> = Promise<T> | T;
|
|
14995
14995
|
interface JsDocOptions {
|
|
@@ -15223,6 +15223,8 @@ interface OptionsTypeScriptParserOptions {
|
|
|
15223
15223
|
parserOptions?: Partial<ParserOptions>;
|
|
15224
15224
|
}
|
|
15225
15225
|
interface OptionsTypeScriptWithTypes {
|
|
15226
|
+
/** Override type aware rules. */
|
|
15227
|
+
overridesTypeAware?: TypedFlatConfigItem["rules"];
|
|
15226
15228
|
/**
|
|
15227
15229
|
* Provide a path to the TypeScript configuration file to use a different
|
|
15228
15230
|
* default to 'tsconfig.json'.
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__commonJS,
|
|
3
3
|
__toESM,
|
|
4
4
|
init_esm_shims
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2HV5XKT7.js";
|
|
6
6
|
|
|
7
7
|
// node_modules/.pnpm/globals@15.15.0/node_modules/globals/globals.json
|
|
8
8
|
var require_globals = __commonJS({
|
|
@@ -3632,7 +3632,7 @@ async function imports(options = {}) {
|
|
|
3632
3632
|
const { stylistic: stylistic2 = true, type = "game" } = options;
|
|
3633
3633
|
const [pluginImport, pluginSimpleImportSort, pluginAntfu] = await Promise.all([
|
|
3634
3634
|
interopDefault(import("eslint-plugin-import-x")),
|
|
3635
|
-
interopDefault(import("./eslint-plugin-simple-import-sort-
|
|
3635
|
+
interopDefault(import("./eslint-plugin-simple-import-sort-FWMVSWU4.js")),
|
|
3636
3636
|
interopDefault(import("eslint-plugin-antfu"))
|
|
3637
3637
|
]);
|
|
3638
3638
|
return [
|
|
@@ -4362,7 +4362,7 @@ async function prettier(options) {
|
|
|
4362
4362
|
interopDefault(import("eslint-plugin-format"))
|
|
4363
4363
|
]);
|
|
4364
4364
|
const defaultPrettierOptions = {
|
|
4365
|
-
arrowParens: "
|
|
4365
|
+
arrowParens: "always",
|
|
4366
4366
|
jsdocPreferCodeFences: true,
|
|
4367
4367
|
jsdocPrintWidth: 80,
|
|
4368
4368
|
plugins: [require2.resolve("prettier-plugin-jsdoc")],
|
|
@@ -4702,7 +4702,7 @@ async function roblox(options = {}, formatLua = true) {
|
|
|
4702
4702
|
});
|
|
4703
4703
|
if (formatLua) {
|
|
4704
4704
|
const [pluginFormatLua] = await Promise.all([
|
|
4705
|
-
interopDefault(import("
|
|
4705
|
+
interopDefault(import("eslint-plugin-format-lua"))
|
|
4706
4706
|
]);
|
|
4707
4707
|
configs.push({
|
|
4708
4708
|
files: [GLOB_LUA],
|
|
@@ -5064,6 +5064,7 @@ async function typescript(options = {}) {
|
|
|
5064
5064
|
componentExts: componentExtensions = [],
|
|
5065
5065
|
isInEditor = false,
|
|
5066
5066
|
overrides = {},
|
|
5067
|
+
overridesTypeAware = {},
|
|
5067
5068
|
parserOptions = {},
|
|
5068
5069
|
stylistic: stylistic2 = true,
|
|
5069
5070
|
typeAware = true
|
|
@@ -5361,10 +5362,20 @@ async function typescript(options = {}) {
|
|
|
5361
5362
|
],
|
|
5362
5363
|
"yoda": ["error", "never"]
|
|
5363
5364
|
} : {},
|
|
5364
|
-
...tsconfigPath ? typeAwareRules : {},
|
|
5365
5365
|
...overrides
|
|
5366
5366
|
}
|
|
5367
|
-
}
|
|
5367
|
+
},
|
|
5368
|
+
...isTypeAware ? [
|
|
5369
|
+
{
|
|
5370
|
+
files: filesTypeAware,
|
|
5371
|
+
ignores: ignoresTypeAware,
|
|
5372
|
+
name: "style/typescript/rules-type-aware",
|
|
5373
|
+
rules: {
|
|
5374
|
+
...typeAwareRules,
|
|
5375
|
+
...overridesTypeAware
|
|
5376
|
+
}
|
|
5377
|
+
}
|
|
5378
|
+
] : []
|
|
5368
5379
|
];
|
|
5369
5380
|
}
|
|
5370
5381
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "iSentinel's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"eslint-plugin-comment-length": "2.2.1",
|
|
60
60
|
"eslint-plugin-de-morgan": "1.2.1",
|
|
61
61
|
"eslint-plugin-format": "1.0.1",
|
|
62
|
-
"eslint-plugin-format-lua": "1.0.
|
|
62
|
+
"eslint-plugin-format-lua": "1.0.1-beta.2",
|
|
63
63
|
"eslint-plugin-import-x": "4.10.6",
|
|
64
64
|
"eslint-plugin-jsdoc": "50.6.9",
|
|
65
65
|
"eslint-plugin-jsonc": "2.20.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@types/node": "22.14.1",
|
|
94
94
|
"@types/prompts": "2.4.9",
|
|
95
95
|
"@types/yargs": "17.0.33",
|
|
96
|
-
"bumpp": "10.
|
|
96
|
+
"bumpp": "10.2.0",
|
|
97
97
|
"eslint": "9.25.1",
|
|
98
98
|
"eslint-plugin-jest": "28.11.0",
|
|
99
99
|
"eslint-plugin-react-roblox-hooks": "5.1.0-rbx.1",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"simple-git-hooks": "2.12.1",
|
|
111
111
|
"tsup": "8.4.0",
|
|
112
112
|
"typescript": "5.8.3",
|
|
113
|
-
"@isentinel/eslint-config": "1.2.
|
|
113
|
+
"@isentinel/eslint-config": "1.2.4"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
116
|
"@eslint-react/eslint-plugin": "^1.45.0",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"build": "nr gen && tsup --clean --dts",
|
|
137
137
|
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
138
138
|
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
139
|
-
"gen": "
|
|
139
|
+
"gen": "tsx scripts/typegen.ts && tsx scripts/versiongen.ts",
|
|
140
140
|
"postgen": "echo 'Generation complete!'",
|
|
141
141
|
"lint": "eslint",
|
|
142
142
|
"release": "bumpp",
|