@plugjs/eslint-plugin 0.2.0-beta.1 → 0.2.0-beta.3

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/configs/basic.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  import globals from 'globals'
2
- import importxPlugin from 'eslint-plugin-import-x'
3
- import stylisticPlugin from '@stylistic/eslint-plugin'
4
2
  import unicornPlugin from 'eslint-plugin-unicorn'
5
3
 
4
+ import importxPlugin from '../bundles/eslint-plugin-import-x.cjs'
5
+ import stylisticPlugin from '../bundles/stylistic-eslint-plugin.cjs'
6
+ import '../bundles/eslint-import-resolver-typescript.cjs' // preload!
7
+
6
8
  /* ========================================================================== */
7
9
 
8
10
  /** Basic configuration of ESLint rules. */
@@ -150,8 +152,9 @@ export const importx = {
150
152
  'espree': [ '.js', '.mjs', '.cjs' ],
151
153
  },
152
154
  'import-x/resolver': {
153
- 'typescript': true,
154
- 'node': true,
155
+ // point to our bundled-in typescript *and* node resolvers...
156
+ '../bundles/eslint-import-resolver-typescript.cjs': true,
157
+ '../bundles/eslint-import-resolver-node.cjs': true,
155
158
  },
156
159
  },
157
160
 
@@ -17,6 +17,9 @@ export const typescript = {
17
17
  allowConciseArrowFunctionExpressionsStartingWithVoid: true,
18
18
  } ],
19
19
  '@typescript-eslint/no-dupe-class-members': 'error',
20
+ '@typescript-eslint/no-empty-object-type': [ 'error', {
21
+ allowInterfaces: 'with-single-extends',
22
+ } ],
20
23
  '@typescript-eslint/no-explicit-any': 'off',
21
24
  '@typescript-eslint/no-floating-promises': 'error',
22
25
  '@typescript-eslint/no-invalid-this': 'error',
@@ -24,7 +27,6 @@ export const typescript = {
24
27
  args: 'after-used',
25
28
  argsIgnorePattern: '^_',
26
29
  } ],
27
-
28
30
  },
29
31
  }
30
32
 
package/package.json CHANGED
@@ -1,43 +1,46 @@
1
1
  {
2
2
  "name": "@plugjs/eslint-plugin",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0-beta.3",
4
4
  "description": "Shared ESLint configurations and extras",
5
5
  "main": "./eslint.config.mjs",
6
6
  "type": "module",
7
7
  "author": "Team Juit <developers@juit.com>",
8
8
  "license": "Apache-2.0",
9
9
  "scripts": {
10
- "build": "eslint eslint.config.mjs configs"
11
- },
12
- "dependencies": {
13
- "@eslint/js": "^9.5.0",
14
- "@stylistic/eslint-plugin": "^2.2.2",
15
- "eslint-import-resolver-typescript": "^3.6.1",
16
- "eslint-plugin-import-x": "^0.5.1",
17
- "eslint-plugin-unicorn": "^54.0.0",
18
- "globals": "^15.6.0",
19
- "typescript-eslint": "rc-v8"
10
+ "build": "eslint build.mjs eslint.config.mjs configs"
20
11
  },
21
12
  "peerDependencies": {
22
13
  "eslint": "^9.5.0"
23
14
  },
24
- "overrides": {
25
- "@stylistic/eslint-plugin-plus": {
26
- "@typescript-eslint/utils": "rc-v8"
27
- },
28
- "@stylistic/eslint-plugin-ts": {
29
- "@typescript-eslint/utils": "rc-v8"
30
- },
31
- "eslint-plugin-import": {
32
- "eslint": "^9.5.0"
33
- },
34
- "eslint-plugin-import-x": {
35
- "@typescript-eslint/utils": "rc-v8"
36
- }
37
- },
38
15
  "files": [
39
16
  "*.md",
40
17
  "eslint.config.mjs",
18
+ "bundles/",
41
19
  "configs/"
42
- ]
43
- }
20
+ ],
21
+ "dependencies": {
22
+ "@eslint/js": "9.5.0",
23
+ "@typescript-eslint/utils": "8.0.0-alpha.30",
24
+ "debug": "4.3.5",
25
+ "doctrine": "2.1.0",
26
+ "enhanced-resolve": "5.17.0",
27
+ "eslint": "9.5.0",
28
+ "eslint-module-utils": "2.8.1",
29
+ "eslint-plugin-unicorn": "54.0.0",
30
+ "eslint-visitor-keys": "4.0.0",
31
+ "espree": "10.1.0",
32
+ "estraverse": "5.3.0",
33
+ "fast-glob": "3.3.2",
34
+ "get-tsconfig": "4.7.5",
35
+ "globals": "15.6.0",
36
+ "is-core-module": "2.14.0",
37
+ "is-glob": "4.0.3",
38
+ "minimatch": "9.0.4",
39
+ "picomatch": "4.0.2",
40
+ "resolve": "1.22.8",
41
+ "semver": "7.6.2",
42
+ "tslib": "2.6.3",
43
+ "typescript": "5.5.2",
44
+ "typescript-eslint": "8.0.0-alpha.30"
45
+ }
46
+ }