@isentinel/eslint-config 1.2.2 → 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/cli.js +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +19 -6
- package/package.json +5 -5
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -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",
|
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
|
@@ -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")],
|
|
@@ -4648,11 +4648,10 @@ async function roblox(options = {}, formatLua = true) {
|
|
|
4648
4648
|
} = options;
|
|
4649
4649
|
const tsconfigPath = typeAware ? getTsConfig(options.tsconfigPath) : void 0;
|
|
4650
4650
|
const isTypeAware = tsconfigPath !== void 0;
|
|
4651
|
-
const [parserTs, pluginRobloxTs, pluginSentinel
|
|
4651
|
+
const [parserTs, pluginRobloxTs, pluginSentinel] = await Promise.all([
|
|
4652
4652
|
interopDefault(import("@typescript-eslint/parser")),
|
|
4653
4653
|
interopDefault(import("eslint-plugin-roblox-ts-x")),
|
|
4654
|
-
interopDefault(import("eslint-plugin-sentinel"))
|
|
4655
|
-
interopDefault(import("eslint-plugin-format-lua"))
|
|
4654
|
+
interopDefault(import("eslint-plugin-sentinel"))
|
|
4656
4655
|
]);
|
|
4657
4656
|
const files = options.files ?? [
|
|
4658
4657
|
"**/*/*.?([cm])ts",
|
|
@@ -4702,6 +4701,9 @@ async function roblox(options = {}, formatLua = true) {
|
|
|
4702
4701
|
}
|
|
4703
4702
|
});
|
|
4704
4703
|
if (formatLua) {
|
|
4704
|
+
const [pluginFormatLua] = await Promise.all([
|
|
4705
|
+
interopDefault(import("eslint-plugin-format-lua"))
|
|
4706
|
+
]);
|
|
4705
4707
|
configs.push({
|
|
4706
4708
|
files: [GLOB_LUA],
|
|
4707
4709
|
languageOptions: {
|
|
@@ -5062,6 +5064,7 @@ async function typescript(options = {}) {
|
|
|
5062
5064
|
componentExts: componentExtensions = [],
|
|
5063
5065
|
isInEditor = false,
|
|
5064
5066
|
overrides = {},
|
|
5067
|
+
overridesTypeAware = {},
|
|
5065
5068
|
parserOptions = {},
|
|
5066
5069
|
stylistic: stylistic2 = true,
|
|
5067
5070
|
typeAware = true
|
|
@@ -5359,10 +5362,20 @@ async function typescript(options = {}) {
|
|
|
5359
5362
|
],
|
|
5360
5363
|
"yoda": ["error", "never"]
|
|
5361
5364
|
} : {},
|
|
5362
|
-
...tsconfigPath ? typeAwareRules : {},
|
|
5363
5365
|
...overrides
|
|
5364
5366
|
}
|
|
5365
|
-
}
|
|
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
|
+
] : []
|
|
5366
5379
|
];
|
|
5367
5380
|
}
|
|
5368
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",
|