@isentinel/eslint-config 0.6.0 → 0.6.2
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/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.cjs +9 -7
- package/dist/index.js +10 -8
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -38,7 +38,7 @@ var import_helpers = require("yargs/helpers");
|
|
|
38
38
|
var package_default = {
|
|
39
39
|
name: "@isentinel/eslint-config",
|
|
40
40
|
type: "module",
|
|
41
|
-
version: "0.6.
|
|
41
|
+
version: "0.6.2",
|
|
42
42
|
publishConfig: {
|
|
43
43
|
access: "public"
|
|
44
44
|
},
|
|
@@ -101,7 +101,7 @@ var package_default = {
|
|
|
101
101
|
"@eslint-types/unicorn": "^52.0.0",
|
|
102
102
|
"@eslint/compat": "^1.1.0",
|
|
103
103
|
"@isentinel/dict-rbxts": "^1.0.1",
|
|
104
|
-
"@isentinel/dict-roblox": "
|
|
104
|
+
"@isentinel/dict-roblox": "1.0.3",
|
|
105
105
|
"@isentinel/eslint-plugin-comment-length": "^1.7.3",
|
|
106
106
|
"@shopify/eslint-plugin": "^45.0.0",
|
|
107
107
|
"@stylistic/eslint-plugin": "^2.1.0",
|
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ init_esm_shims();
|
|
|
20
20
|
var package_default = {
|
|
21
21
|
name: "@isentinel/eslint-config",
|
|
22
22
|
type: "module",
|
|
23
|
-
version: "0.6.
|
|
23
|
+
version: "0.6.2",
|
|
24
24
|
publishConfig: {
|
|
25
25
|
access: "public"
|
|
26
26
|
},
|
|
@@ -83,7 +83,7 @@ var package_default = {
|
|
|
83
83
|
"@eslint-types/unicorn": "^52.0.0",
|
|
84
84
|
"@eslint/compat": "^1.1.0",
|
|
85
85
|
"@isentinel/dict-rbxts": "^1.0.1",
|
|
86
|
-
"@isentinel/dict-roblox": "
|
|
86
|
+
"@isentinel/dict-roblox": "1.0.3",
|
|
87
87
|
"@isentinel/eslint-plugin-comment-length": "^1.7.3",
|
|
88
88
|
"@shopify/eslint-plugin": "^45.0.0",
|
|
89
89
|
"@stylistic/eslint-plugin": "^2.1.0",
|
package/dist/index.cjs
CHANGED
|
@@ -1403,8 +1403,7 @@ async function jsdoc(options = {}) {
|
|
|
1403
1403
|
{
|
|
1404
1404
|
name: "style:jsdoc",
|
|
1405
1405
|
plugins: {
|
|
1406
|
-
jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
|
|
1407
|
-
"jsdoc-prettier": await interopDefault(import("prettier-plugin-jsdoc"))
|
|
1406
|
+
jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
|
|
1408
1407
|
},
|
|
1409
1408
|
rules: {
|
|
1410
1409
|
"jsdoc/check-access": "warn",
|
|
@@ -1631,6 +1630,8 @@ async function perfectionist() {
|
|
|
1631
1630
|
|
|
1632
1631
|
// src/configs/prettier.ts
|
|
1633
1632
|
init_cjs_shims();
|
|
1633
|
+
var import_module = require("module");
|
|
1634
|
+
var require2 = (0, import_module.createRequire)(importMetaUrl);
|
|
1634
1635
|
async function prettier(options) {
|
|
1635
1636
|
const {
|
|
1636
1637
|
componentExts: componentExtensions = [],
|
|
@@ -1645,7 +1646,7 @@ async function prettier(options) {
|
|
|
1645
1646
|
arrowParens: "avoid",
|
|
1646
1647
|
jsdocPreferCodeFences: true,
|
|
1647
1648
|
jsdocPrintWidth: 80,
|
|
1648
|
-
plugins: ["prettier-plugin-jsdoc"],
|
|
1649
|
+
plugins: [require2.resolve("prettier-plugin-jsdoc")],
|
|
1649
1650
|
printWidth: 100,
|
|
1650
1651
|
semi: true,
|
|
1651
1652
|
singleQuote: false,
|
|
@@ -1995,7 +1996,8 @@ async function roblox(options = {}) {
|
|
|
1995
1996
|
"roblox/no-any": "off",
|
|
1996
1997
|
"roblox/no-array-pairs": "warn",
|
|
1997
1998
|
"roblox/no-enum-merging": "error",
|
|
1998
|
-
|
|
1999
|
+
// TODO: Enable this rule when it's fixed
|
|
2000
|
+
// "roblox/no-export-assignment-let": "error",
|
|
1999
2001
|
"roblox/no-for-in": "error",
|
|
2000
2002
|
"roblox/no-function-expression-id": "error",
|
|
2001
2003
|
"roblox/no-getters-or-setters": "error",
|
|
@@ -2304,17 +2306,17 @@ function sortTsconfig() {
|
|
|
2304
2306
|
init_cjs_shims();
|
|
2305
2307
|
var import_node_module = require("module");
|
|
2306
2308
|
var import_node_url = require("url");
|
|
2307
|
-
var
|
|
2309
|
+
var require3 = (0, import_node_module.createRequire)(importMetaUrl);
|
|
2308
2310
|
async function spelling(options = {}) {
|
|
2309
2311
|
const { componentExts: componentExtensions = [], language = "en-US" } = options;
|
|
2310
2312
|
const files = options.files ?? [
|
|
2311
2313
|
GLOB_SRC,
|
|
2312
2314
|
...componentExtensions.map((extension) => `**/*.${extension}`)
|
|
2313
2315
|
];
|
|
2314
|
-
const robloxDictionary =
|
|
2316
|
+
const robloxDictionary = require3.resolve("@isentinel/dict-roblox");
|
|
2315
2317
|
const urlRobloxDictionary = (0, import_node_url.pathToFileURL)(robloxDictionary);
|
|
2316
2318
|
const urlRoblox = new URL("dict/roblox.txt", urlRobloxDictionary);
|
|
2317
|
-
const rbxtsDictionary =
|
|
2319
|
+
const rbxtsDictionary = require3.resolve("@isentinel/dict-rbxts");
|
|
2318
2320
|
const urlRbxtsDictionary = (0, import_node_url.pathToFileURL)(rbxtsDictionary);
|
|
2319
2321
|
const urlRbxts = new URL("dict/rbxts.txt", urlRbxtsDictionary);
|
|
2320
2322
|
return [
|
package/dist/index.js
CHANGED
|
@@ -1303,8 +1303,7 @@ async function jsdoc(options = {}) {
|
|
|
1303
1303
|
{
|
|
1304
1304
|
name: "style:jsdoc",
|
|
1305
1305
|
plugins: {
|
|
1306
|
-
jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
|
|
1307
|
-
"jsdoc-prettier": await interopDefault(import("prettier-plugin-jsdoc"))
|
|
1306
|
+
jsdoc: await interopDefault(import("eslint-plugin-jsdoc"))
|
|
1308
1307
|
},
|
|
1309
1308
|
rules: {
|
|
1310
1309
|
"jsdoc/check-access": "warn",
|
|
@@ -1531,6 +1530,8 @@ async function perfectionist() {
|
|
|
1531
1530
|
|
|
1532
1531
|
// src/configs/prettier.ts
|
|
1533
1532
|
init_esm_shims();
|
|
1533
|
+
import { createRequire } from "module";
|
|
1534
|
+
var require2 = createRequire(import.meta.url);
|
|
1534
1535
|
async function prettier(options) {
|
|
1535
1536
|
const {
|
|
1536
1537
|
componentExts: componentExtensions = [],
|
|
@@ -1545,7 +1546,7 @@ async function prettier(options) {
|
|
|
1545
1546
|
arrowParens: "avoid",
|
|
1546
1547
|
jsdocPreferCodeFences: true,
|
|
1547
1548
|
jsdocPrintWidth: 80,
|
|
1548
|
-
plugins: ["prettier-plugin-jsdoc"],
|
|
1549
|
+
plugins: [require2.resolve("prettier-plugin-jsdoc")],
|
|
1549
1550
|
printWidth: 100,
|
|
1550
1551
|
semi: true,
|
|
1551
1552
|
singleQuote: false,
|
|
@@ -1895,7 +1896,8 @@ async function roblox(options = {}) {
|
|
|
1895
1896
|
"roblox/no-any": "off",
|
|
1896
1897
|
"roblox/no-array-pairs": "warn",
|
|
1897
1898
|
"roblox/no-enum-merging": "error",
|
|
1898
|
-
|
|
1899
|
+
// TODO: Enable this rule when it's fixed
|
|
1900
|
+
// "roblox/no-export-assignment-let": "error",
|
|
1899
1901
|
"roblox/no-for-in": "error",
|
|
1900
1902
|
"roblox/no-function-expression-id": "error",
|
|
1901
1903
|
"roblox/no-getters-or-setters": "error",
|
|
@@ -2202,19 +2204,19 @@ function sortTsconfig() {
|
|
|
2202
2204
|
|
|
2203
2205
|
// src/configs/spelling.ts
|
|
2204
2206
|
init_esm_shims();
|
|
2205
|
-
import { createRequire } from "node:module";
|
|
2207
|
+
import { createRequire as createRequire2 } from "node:module";
|
|
2206
2208
|
import { pathToFileURL } from "node:url";
|
|
2207
|
-
var
|
|
2209
|
+
var require3 = createRequire2(import.meta.url);
|
|
2208
2210
|
async function spelling(options = {}) {
|
|
2209
2211
|
const { componentExts: componentExtensions = [], language = "en-US" } = options;
|
|
2210
2212
|
const files = options.files ?? [
|
|
2211
2213
|
GLOB_SRC,
|
|
2212
2214
|
...componentExtensions.map((extension) => `**/*.${extension}`)
|
|
2213
2215
|
];
|
|
2214
|
-
const robloxDictionary =
|
|
2216
|
+
const robloxDictionary = require3.resolve("@isentinel/dict-roblox");
|
|
2215
2217
|
const urlRobloxDictionary = pathToFileURL(robloxDictionary);
|
|
2216
2218
|
const urlRoblox = new URL("dict/roblox.txt", urlRobloxDictionary);
|
|
2217
|
-
const rbxtsDictionary =
|
|
2219
|
+
const rbxtsDictionary = require3.resolve("@isentinel/dict-rbxts");
|
|
2218
2220
|
const urlRbxtsDictionary = pathToFileURL(rbxtsDictionary);
|
|
2219
2221
|
const urlRbxts = new URL("dict/rbxts.txt", urlRbxtsDictionary);
|
|
2220
2222
|
return [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isentinel/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@eslint-types/unicorn": "^52.0.0",
|
|
51
51
|
"@eslint/compat": "^1.1.0",
|
|
52
52
|
"@isentinel/dict-rbxts": "^1.0.1",
|
|
53
|
-
"@isentinel/dict-roblox": "
|
|
53
|
+
"@isentinel/dict-roblox": "1.0.3",
|
|
54
54
|
"@isentinel/eslint-plugin-comment-length": "^1.7.3",
|
|
55
55
|
"@shopify/eslint-plugin": "^45.0.0",
|
|
56
56
|
"@stylistic/eslint-plugin": "^2.1.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"simple-git-hooks": "^2.11.1",
|
|
115
115
|
"tsup": "^8.1.0",
|
|
116
116
|
"typescript": "^5.4.5",
|
|
117
|
-
"@isentinel/eslint-config": "0.6.
|
|
117
|
+
"@isentinel/eslint-config": "0.6.2"
|
|
118
118
|
},
|
|
119
119
|
"simple-git-hooks": {
|
|
120
120
|
"pre-commit": "pnpm lint-staged"
|