@hero-design/eslint-plugin 8.35.1-alpha-11 → 8.36.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.
@@ -1,9 +0,0 @@
1
- @hero-design/eslint-plugin:publish:npm: cache hit, replaying output e4366cba7a6afe95
2
- @hero-design/eslint-plugin:publish:npm: $ yarn publish --access public
3
- @hero-design/eslint-plugin:publish:npm: [1/4] Bumping version...
4
- @hero-design/eslint-plugin:publish:npm: info Current version: 8.12.0-rc.0
5
- @hero-design/eslint-plugin:publish:npm: [2/4] Logging in...
6
- @hero-design/eslint-plugin:publish:npm: [3/4] Publishing...
7
- @hero-design/eslint-plugin:publish:npm: success Published.
8
- @hero-design/eslint-plugin:publish:npm: [4/4] Revoking token...
9
- @hero-design/eslint-plugin:publish:npm: info Not revoking login token, specified via config file.
@@ -1,7 +1,3 @@
1
- /**
2
- * @fileoverview Invalidate theming access
3
- * @author Hieu Pham
4
- */
5
1
  'use strict';
6
2
 
7
3
  //------------------------------------------------------------------------------
@@ -29,7 +25,7 @@ const getError = (themePath) => {
29
25
  }
30
26
 
31
27
  if (themePath.startsWith('__hd__')) {
32
- return 'Invalid access to component level theming object';
28
+ return 'Invalid access to component level theming object.';
33
29
  }
34
30
 
35
31
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/eslint-plugin",
3
- "version": "8.35.1-alpha-11",
3
+ "version": "8.36.0",
4
4
  "description": "Hero Design's eslint plugin",
5
5
  "keywords": [
6
6
  "eslint",
@@ -26,7 +26,7 @@
26
26
  "eslint-plugin-eslint-plugin": "^5.0.0",
27
27
  "eslint-plugin-node": "^11.1.0",
28
28
  "jest": "^27.3.1",
29
- "prettier-config-hd": "8.34.4"
29
+ "prettier-config-hd": "8.36.0"
30
30
  },
31
31
  "engines": {
32
32
  "node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
@@ -1,7 +1,3 @@
1
- /**
2
- * @fileoverview Invalidate theming access
3
- * @author Hieu Pham
4
- */
5
1
  'use strict';
6
2
 
7
3
  //------------------------------------------------------------------------------
@@ -15,8 +11,6 @@ var rule = require('../../../lib/rules/no-invalid-theme-access'),
15
11
  // Tests
16
12
  //------------------------------------------------------------------------------
17
13
 
18
- var themeFile = './../../src/theme';
19
-
20
14
  var ruleTester = new RuleTester();
21
15
  ruleTester.run('no-invalid-theme-access', rule, {
22
16
  valid: [
@@ -27,21 +21,19 @@ ruleTester.run('no-invalid-theme-access', rule, {
27
21
  invalid: [
28
22
  {
29
23
  code: 'theme.__hd__.card.space.titlePadding',
30
- options: [{ package: themeFile, name: 'theme' }],
31
24
  errors: [
32
25
  {
33
26
  type: 'MemberExpression',
34
- message: 'Invalid access to component level theming object',
27
+ message: 'Invalid access to component level theming object.',
35
28
  },
36
29
  ],
37
30
  },
38
31
  {
39
32
  code: 'props.theme.__hd__.card.space.titlePadding',
40
- options: [{ package: themeFile, name: 'theme' }],
41
33
  errors: [
42
34
  {
43
35
  type: 'MemberExpression',
44
- message: 'Invalid access to component level theming object',
36
+ message: 'Invalid access to component level theming object.',
45
37
  },
46
38
  ],
47
39
  },
@@ -1 +0,0 @@
1
- $ eslint .