@sj_lk/eslint-plugin-sj-plugin 0.0.4 → 0.0.5

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.
@@ -12,7 +12,7 @@ const rule = {
12
12
  fixable: null, // Or `code` or `whitespace`
13
13
  schema: [], // Add a schema if the rule has options
14
14
  messages: {
15
- someProblem: 'Линтер ругается!',
15
+ someProblem: 'Линтер ругается! Из файла: {{fromFilename}} -> Импорт в: {{importTo}}',
16
16
  }, // Add messageId and message
17
17
  },
18
18
 
@@ -28,11 +28,14 @@ const rule = {
28
28
  context.report({
29
29
  node: node,
30
30
  messageId: 'someProblem',
31
- data: `Из файла: ${fromFilename} -> Импорт в: ${importTo}`
31
+ data: {
32
+ fromFilename,
33
+ importTo
34
+ }
32
35
  })
33
36
  }
34
37
  };
35
38
  },
36
39
  };
37
40
 
38
- export default rule;
41
+ module.exports = rule;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sj_lk/eslint-plugin-sj-plugin",
3
- "version": "0.0.4",
4
- "description": "fix index.js file",
3
+ "version": "0.0.5",
4
+ "description": "fix path-checker file",
5
5
  "keywords": [
6
6
  "eslint",
7
7
  "eslintplugin",