@alextheman/eslint-plugin 1.2.11 → 1.2.13

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 CHANGED
@@ -3885,8 +3885,8 @@ var eslint_config_default = [
3885
3885
  {
3886
3886
  patterns: [
3887
3887
  {
3888
- group: ["./", "../"],
3889
- message: "Relative imports are not allowed"
3888
+ group: ["node:test"],
3889
+ message: "Use test functions from vitest instead."
3890
3890
  }
3891
3891
  ]
3892
3892
  }
@@ -3937,7 +3937,7 @@ var eslint_config_default = [
3937
3937
 
3938
3938
  // package.json
3939
3939
  var name = "@alextheman/eslint-plugin";
3940
- var version = "1.2.11";
3940
+ var version = "1.2.13";
3941
3941
 
3942
3942
  // src/index.ts
3943
3943
  var plugin = {
@@ -3957,10 +3957,6 @@ Object.assign(plugin.configs, {
3957
3957
  "@alextheman": plugin
3958
3958
  },
3959
3959
  rules: {
3960
- /* In this plugin's config, no-restricted-imports checks checks for relative imports and errors if they're found.
3961
- In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
3962
- in favour of @alextheman/no-relative-imports. */
3963
- "no-restricted-imports": "off",
3964
3960
  "@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
3965
3961
  "@alextheman/no-relative-imports": warnOnFixButErrorOnLint
3966
3962
  }
package/dist/index.d.cts CHANGED
@@ -4,7 +4,7 @@ import { Config } from 'prettier';
4
4
  declare const prettierRules: Config;
5
5
 
6
6
  var name = "@alextheman/eslint-plugin";
7
- var version = "1.2.11";
7
+ var version = "1.2.13";
8
8
 
9
9
  interface AlexPlugin {
10
10
  meta: {
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { Config } from 'prettier';
4
4
  declare const prettierRules: Config;
5
5
 
6
6
  var name = "@alextheman/eslint-plugin";
7
- var version = "1.2.11";
7
+ var version = "1.2.13";
8
8
 
9
9
  interface AlexPlugin {
10
10
  meta: {
package/dist/index.js CHANGED
@@ -3873,8 +3873,8 @@ var eslint_config_default = [
3873
3873
  {
3874
3874
  patterns: [
3875
3875
  {
3876
- group: ["./", "../"],
3877
- message: "Relative imports are not allowed"
3876
+ group: ["node:test"],
3877
+ message: "Use test functions from vitest instead."
3878
3878
  }
3879
3879
  ]
3880
3880
  }
@@ -3925,7 +3925,7 @@ var eslint_config_default = [
3925
3925
 
3926
3926
  // package.json
3927
3927
  var name = "@alextheman/eslint-plugin";
3928
- var version = "1.2.11";
3928
+ var version = "1.2.13";
3929
3929
 
3930
3930
  // src/index.ts
3931
3931
  var plugin = {
@@ -3945,10 +3945,6 @@ Object.assign(plugin.configs, {
3945
3945
  "@alextheman": plugin
3946
3946
  },
3947
3947
  rules: {
3948
- /* In this plugin's config, no-restricted-imports checks checks for relative imports and errors if they're found.
3949
- In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
3950
- in favour of @alextheman/no-relative-imports. */
3951
- "no-restricted-imports": "off",
3952
3948
  "@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
3953
3949
  "@alextheman/no-relative-imports": warnOnFixButErrorOnLint
3954
3950
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,8 +10,8 @@
10
10
  "scripts": {
11
11
  "test": "vitest run",
12
12
  "test-watch": "vitest",
13
- "format": "prettier --write --parser typescript 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts' && ESLINT_MODE=fix eslint --fix 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts'",
14
- "lint": "ESLINT_MODE=lint eslint 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts' && prettier --check --parser typescript 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts'",
13
+ "format": "npm run build && prettier --write --parser typescript 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts' && ESLINT_MODE=fix eslint --fix --config eslint.self.config.js 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts'",
14
+ "lint": "npm run build && ESLINT_MODE=lint eslint --config eslint.self.config.js 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts' && prettier --check --parser typescript 'src/**/*.ts' 'tests/**/*.ts' 'eslint.config.ts'",
15
15
  "update-dependencies": "npx npm-check-updates -u && npm install",
16
16
  "prepare": "husky",
17
17
  "build": "tsup",
@@ -38,9 +38,9 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/eslint": "^9.6.1",
41
- "@types/node": "^24.2.0",
42
- "@typescript-eslint/rule-tester": "^8.39.0",
43
- "@typescript-eslint/utils": "^8.39.0",
41
+ "@types/node": "^24.3.0",
42
+ "@typescript-eslint/rule-tester": "^8.39.1",
43
+ "@typescript-eslint/utils": "^8.39.1",
44
44
  "eslint-plugin-eslint-plugin": "^7.0.0",
45
45
  "globals": "^16.3.0",
46
46
  "husky": "^9.1.7",
@@ -52,6 +52,6 @@
52
52
  "vitest": "^3.2.4"
53
53
  },
54
54
  "dependencies": {
55
- "@alextheman/utility": "^1.7.1"
55
+ "@alextheman/utility": "^1.11.2"
56
56
  }
57
57
  }