@alextheman/eslint-plugin 1.14.0 → 1.14.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/index.cjs +24 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -5
- package/package.json +9 -8
package/dist/index.cjs
CHANGED
|
@@ -549,6 +549,9 @@ var require_globals = __commonJS({
|
|
|
549
549
|
CSSFontFaceRule: false,
|
|
550
550
|
CSSFontFeatureValuesRule: false,
|
|
551
551
|
CSSFontPaletteValuesRule: false,
|
|
552
|
+
CSSFunctionDeclarations: false,
|
|
553
|
+
CSSFunctionDescriptors: false,
|
|
554
|
+
CSSFunctionRule: false,
|
|
552
555
|
CSSGroupingRule: false,
|
|
553
556
|
CSSImageValue: false,
|
|
554
557
|
CSSImportRule: false,
|
|
@@ -1285,6 +1288,11 @@ var require_globals = __commonJS({
|
|
|
1285
1288
|
SnapEvent: false,
|
|
1286
1289
|
SourceBuffer: false,
|
|
1287
1290
|
SourceBufferList: false,
|
|
1291
|
+
SpeechGrammar: false,
|
|
1292
|
+
SpeechGrammarList: false,
|
|
1293
|
+
SpeechRecognition: false,
|
|
1294
|
+
SpeechRecognitionErrorEvent: false,
|
|
1295
|
+
SpeechRecognitionEvent: false,
|
|
1288
1296
|
speechSynthesis: false,
|
|
1289
1297
|
SpeechSynthesis: false,
|
|
1290
1298
|
SpeechSynthesisErrorEvent: false,
|
|
@@ -3707,7 +3715,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3707
3715
|
|
|
3708
3716
|
// package.json
|
|
3709
3717
|
var name = "@alextheman/eslint-plugin";
|
|
3710
|
-
var version = "1.14.
|
|
3718
|
+
var version = "1.14.2";
|
|
3711
3719
|
|
|
3712
3720
|
// src/configs/alexPluginBase.ts
|
|
3713
3721
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3736,7 +3744,6 @@ var alexPluginBase_default = createAlexPluginBaseConfig;
|
|
|
3736
3744
|
|
|
3737
3745
|
// src/configs/typeScriptBase.ts
|
|
3738
3746
|
var import_js = __toESM(require_src(), 1);
|
|
3739
|
-
var import_eslint_plugin = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
|
|
3740
3747
|
var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
|
|
3741
3748
|
var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
|
|
3742
3749
|
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
@@ -3744,6 +3751,7 @@ var import_eslint_plugin_package_json = __toESM(require("eslint-plugin-package-j
|
|
|
3744
3751
|
var import_eslint_plugin_perfectionist = __toESM(require("eslint-plugin-perfectionist"), 1);
|
|
3745
3752
|
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
3746
3753
|
var import_globals = __toESM(require_globals2(), 1);
|
|
3754
|
+
var import_typescript_eslint = __toESM(require("typescript-eslint"), 1);
|
|
3747
3755
|
|
|
3748
3756
|
// src/configs/prettierRules.ts
|
|
3749
3757
|
var prettierRules = {
|
|
@@ -3753,6 +3761,7 @@ var prettierRules_default = prettierRules;
|
|
|
3753
3761
|
|
|
3754
3762
|
// src/configs/typeScriptBase.ts
|
|
3755
3763
|
var typeScriptBase = [
|
|
3764
|
+
...import_typescript_eslint.default.configs.recommended,
|
|
3756
3765
|
import_js.default.configs.recommended,
|
|
3757
3766
|
import_eslint_config_prettier.default,
|
|
3758
3767
|
import_eslint_plugin_package_json.default.configs.recommended,
|
|
@@ -3764,18 +3773,29 @@ var typeScriptBase = [
|
|
|
3764
3773
|
parser: import_parser.default,
|
|
3765
3774
|
parserOptions: {
|
|
3766
3775
|
ecmaVersion: "latest",
|
|
3767
|
-
|
|
3776
|
+
projectService: true,
|
|
3777
|
+
sourceType: "module",
|
|
3778
|
+
tsconfigRootDir: process.cwd()
|
|
3768
3779
|
}
|
|
3769
3780
|
},
|
|
3770
3781
|
name: "@alextheman/eslint-config-typescript-base",
|
|
3771
3782
|
plugins: {
|
|
3772
|
-
"@typescript-eslint": import_eslint_plugin.default,
|
|
3773
3783
|
import: import_eslint_plugin_import.default,
|
|
3774
3784
|
perfectionist: import_eslint_plugin_perfectionist.default,
|
|
3775
3785
|
prettier: import_eslint_plugin_prettier.default
|
|
3776
3786
|
},
|
|
3777
3787
|
rules: {
|
|
3788
|
+
"@typescript-eslint/array-type": ["error", { default: "array" }],
|
|
3789
|
+
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "as" }],
|
|
3790
|
+
"@typescript-eslint/consistent-type-definitions": "error",
|
|
3791
|
+
"@typescript-eslint/consistent-type-exports": "error",
|
|
3778
3792
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3793
|
+
"@typescript-eslint/dot-notation": "error",
|
|
3794
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
3795
|
+
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
3796
|
+
"@typescript-eslint/no-deprecated": "warn",
|
|
3797
|
+
// Explicit any can be helpful sometimes, so it's not worth erroring on every single one.
|
|
3798
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
3779
3799
|
"@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true }],
|
|
3780
3800
|
"@typescript-eslint/no-unused-vars": [
|
|
3781
3801
|
"error",
|
|
@@ -3787,7 +3807,6 @@ var typeScriptBase = [
|
|
|
3787
3807
|
],
|
|
3788
3808
|
"arrow-body-style": ["error", "always"],
|
|
3789
3809
|
curly: ["error", "all"],
|
|
3790
|
-
"dot-notation": "error",
|
|
3791
3810
|
eqeqeq: "error",
|
|
3792
3811
|
"func-style": ["error", "declaration", { allowArrowFunctions: false }],
|
|
3793
3812
|
"import/no-unresolved": "error",
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -543,6 +543,9 @@ var require_globals = __commonJS({
|
|
|
543
543
|
CSSFontFaceRule: false,
|
|
544
544
|
CSSFontFeatureValuesRule: false,
|
|
545
545
|
CSSFontPaletteValuesRule: false,
|
|
546
|
+
CSSFunctionDeclarations: false,
|
|
547
|
+
CSSFunctionDescriptors: false,
|
|
548
|
+
CSSFunctionRule: false,
|
|
546
549
|
CSSGroupingRule: false,
|
|
547
550
|
CSSImageValue: false,
|
|
548
551
|
CSSImportRule: false,
|
|
@@ -1279,6 +1282,11 @@ var require_globals = __commonJS({
|
|
|
1279
1282
|
SnapEvent: false,
|
|
1280
1283
|
SourceBuffer: false,
|
|
1281
1284
|
SourceBufferList: false,
|
|
1285
|
+
SpeechGrammar: false,
|
|
1286
|
+
SpeechGrammarList: false,
|
|
1287
|
+
SpeechRecognition: false,
|
|
1288
|
+
SpeechRecognitionErrorEvent: false,
|
|
1289
|
+
SpeechRecognitionEvent: false,
|
|
1282
1290
|
speechSynthesis: false,
|
|
1283
1291
|
SpeechSynthesis: false,
|
|
1284
1292
|
SpeechSynthesisErrorEvent: false,
|
|
@@ -3692,7 +3700,7 @@ var require_globals2 = __commonJS({
|
|
|
3692
3700
|
|
|
3693
3701
|
// package.json
|
|
3694
3702
|
var name = "@alextheman/eslint-plugin";
|
|
3695
|
-
var version = "1.14.
|
|
3703
|
+
var version = "1.14.2";
|
|
3696
3704
|
|
|
3697
3705
|
// src/configs/alexPluginBase.ts
|
|
3698
3706
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3722,13 +3730,13 @@ var alexPluginBase_default = createAlexPluginBaseConfig;
|
|
|
3722
3730
|
// src/configs/typeScriptBase.ts
|
|
3723
3731
|
var import_js = __toESM(require_src(), 1);
|
|
3724
3732
|
var import_globals = __toESM(require_globals2(), 1);
|
|
3725
|
-
import eslintPlugin from "@typescript-eslint/eslint-plugin";
|
|
3726
3733
|
import tsparser from "@typescript-eslint/parser";
|
|
3727
3734
|
import prettierConfig from "eslint-config-prettier";
|
|
3728
3735
|
import importPlugin from "eslint-plugin-import";
|
|
3729
3736
|
import packageJson from "eslint-plugin-package-json";
|
|
3730
3737
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
3731
3738
|
import prettierPlugin from "eslint-plugin-prettier";
|
|
3739
|
+
import tseslint from "typescript-eslint";
|
|
3732
3740
|
|
|
3733
3741
|
// src/configs/prettierRules.ts
|
|
3734
3742
|
var prettierRules = {
|
|
@@ -3738,6 +3746,7 @@ var prettierRules_default = prettierRules;
|
|
|
3738
3746
|
|
|
3739
3747
|
// src/configs/typeScriptBase.ts
|
|
3740
3748
|
var typeScriptBase = [
|
|
3749
|
+
...tseslint.configs.recommended,
|
|
3741
3750
|
import_js.default.configs.recommended,
|
|
3742
3751
|
prettierConfig,
|
|
3743
3752
|
packageJson.configs.recommended,
|
|
@@ -3749,18 +3758,29 @@ var typeScriptBase = [
|
|
|
3749
3758
|
parser: tsparser,
|
|
3750
3759
|
parserOptions: {
|
|
3751
3760
|
ecmaVersion: "latest",
|
|
3752
|
-
|
|
3761
|
+
projectService: true,
|
|
3762
|
+
sourceType: "module",
|
|
3763
|
+
tsconfigRootDir: process.cwd()
|
|
3753
3764
|
}
|
|
3754
3765
|
},
|
|
3755
3766
|
name: "@alextheman/eslint-config-typescript-base",
|
|
3756
3767
|
plugins: {
|
|
3757
|
-
"@typescript-eslint": eslintPlugin,
|
|
3758
3768
|
import: importPlugin,
|
|
3759
3769
|
perfectionist,
|
|
3760
3770
|
prettier: prettierPlugin
|
|
3761
3771
|
},
|
|
3762
3772
|
rules: {
|
|
3773
|
+
"@typescript-eslint/array-type": ["error", { default: "array" }],
|
|
3774
|
+
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "as" }],
|
|
3775
|
+
"@typescript-eslint/consistent-type-definitions": "error",
|
|
3776
|
+
"@typescript-eslint/consistent-type-exports": "error",
|
|
3763
3777
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3778
|
+
"@typescript-eslint/dot-notation": "error",
|
|
3779
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
3780
|
+
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
3781
|
+
"@typescript-eslint/no-deprecated": "warn",
|
|
3782
|
+
// Explicit any can be helpful sometimes, so it's not worth erroring on every single one.
|
|
3783
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
3764
3784
|
"@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true }],
|
|
3765
3785
|
"@typescript-eslint/no-unused-vars": [
|
|
3766
3786
|
"error",
|
|
@@ -3772,7 +3792,6 @@ var typeScriptBase = [
|
|
|
3772
3792
|
],
|
|
3773
3793
|
"arrow-body-style": ["error", "always"],
|
|
3774
3794
|
curly: ["error", "all"],
|
|
3775
|
-
"dot-notation": "error",
|
|
3776
3795
|
eqeqeq: "error",
|
|
3777
3796
|
"func-style": ["error", "declaration", { allowArrowFunctions: false }],
|
|
3778
3797
|
"import/no-unresolved": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "alextheman",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"common-tags": "^1.8.2",
|
|
28
|
-
"eslint-plugin-package-json": "^0.56.
|
|
29
|
-
"zod": "^4.1.
|
|
28
|
+
"eslint-plugin-package-json": "^0.56.3",
|
|
29
|
+
"zod": "^4.1.9"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/common-tags": "^1.8.4",
|
|
33
33
|
"@types/eslint": "^9.6.1",
|
|
34
|
-
"@types/node": "^24.
|
|
35
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
36
|
-
"@typescript-eslint/utils": "^8.
|
|
34
|
+
"@types/node": "^24.5.2",
|
|
35
|
+
"@typescript-eslint/rule-tester": "^8.44.0",
|
|
36
|
+
"@typescript-eslint/utils": "^8.44.0",
|
|
37
37
|
"eslint-plugin-eslint-plugin": "^7.0.0",
|
|
38
|
-
"globals": "^16.
|
|
38
|
+
"globals": "^16.4.0",
|
|
39
39
|
"husky": "^9.1.7",
|
|
40
40
|
"jiti": "^2.5.1",
|
|
41
41
|
"prettier": "^3.6.2",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"eslint-plugin-prettier": "^5.5.3",
|
|
56
56
|
"eslint-plugin-react": "^7.37.5",
|
|
57
57
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
-
"eslint-plugin-react-refresh": "^0.4.20"
|
|
58
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
59
|
+
"typescript-eslint": "^8.43.0"
|
|
59
60
|
}
|
|
60
61
|
}
|