@lvce-editor/eslint-plugin-rpc 11.1.0 → 12.0.0

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +2 -3
package/dist/index.js CHANGED
@@ -8,13 +8,13 @@ const shouldUseUsing = node => {
8
8
  return node.declarations.some(declaration => isMockRpcVariable(declaration) && isRegisterMockRpcCall(declaration.init));
9
9
  };
10
10
  const meta = {
11
- type: 'problem',
12
11
  docs: {
13
12
  description: 'Enforce using with mockRpc registration'
14
13
  },
15
14
  messages: {
16
15
  preferUsingMockRpc: 'Use `using` with `mockRpc`.'
17
- }
16
+ },
17
+ type: 'problem'
18
18
  };
19
19
  const create = context => {
20
20
  return {
@@ -26,8 +26,8 @@ const create = context => {
26
26
  return;
27
27
  }
28
28
  context.report({
29
- node,
30
- messageId: 'preferUsingMockRpc'
29
+ messageId: 'preferUsingMockRpc',
30
+ node
31
31
  });
32
32
  }
33
33
  };
@@ -40,14 +40,14 @@ const preferUsingMockRpc = {
40
40
  };
41
41
 
42
42
  const plugin = {
43
+ configs: {},
43
44
  meta: {
44
45
  name: 'rpc',
45
46
  version: '0.0.1'
46
47
  },
47
48
  rules: {
48
49
  'prefer-using-mock-rpc': preferUsingMockRpc
49
- },
50
- configs: {}
50
+ }
51
51
  };
52
52
  const recommended = [{
53
53
  files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-plugin-rpc",
3
- "version": "11.1.0",
3
+ "version": "12.0.0",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/lvce-editor/eslint-config.git"
8
8
  },
9
9
  "type": "module",
10
- "keywords": [],
11
10
  "license": "MIT",
12
- "description": ""
11
+ "description": "ESLint rules for RPC test helpers."
13
12
  }