@atlaskit/eslint-plugin-design-system 10.23.0 → 10.23.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 10.23.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#160428](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/160428)
8
+ [`6d4fa76f052b2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d4fa76f052b2) -
9
+ Releases an unreleased fix for the '../package.json' not found in
10
+ @atlaskit/eslint-plugin-design-system@10.23.0
11
+
3
12
  ## 10.23.0
4
13
 
5
14
  ### Minor Changes
package/README.md CHANGED
@@ -22,7 +22,7 @@ module.exports = {
22
22
  ```
23
23
 
24
24
  We don't recommended maintaining your own configuration. If you do not use our config you will need
25
- to specify individual rules and configuration. Add the plugin to your `.eslintrc.js` file.
25
+ to specify individual rules and configuration. Add the plugin to your `eslint.config.cjs` file.
26
26
 
27
27
  ```diff
28
28
  module.exports = {
@@ -4,14 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.plugin = exports.name = exports.default = exports.configs = void 0;
7
+ exports.plugin = exports.meta = exports.default = exports.configs = void 0;
8
8
  Object.defineProperty(exports, "rules", {
9
9
  enumerable: true,
10
10
  get: function get() {
11
11
  return _index.rules;
12
12
  }
13
13
  });
14
- exports.version = void 0;
15
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
15
  var _allFlat = _interopRequireDefault(require("./presets/all-flat.codegen"));
17
16
  var _all = _interopRequireDefault(require("./presets/all.codegen"));
@@ -21,13 +20,14 @@ var _index = require("./rules/index.codegen");
21
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
23
22
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
24
- * @codegen <<SignedSource::7656123b732a9145dedb7f9eee588883>>
23
+ * @codegen <<SignedSource::c77bc1fd6f2331dc0cae4fb3a58994d3>>
25
24
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
26
25
  */
27
26
  // this uses require because not all node versions this package supports use the same import assertions/attributes
28
- var pkgJson = require('../package.json');
29
- var version = exports.version = pkgJson.version,
30
- name = exports.name = pkgJson.name;
27
+ // eslint-disable-next-line import/no-extraneous-dependencies
28
+ var pkgJson = require('@atlaskit/eslint-plugin-design-system/package.json');
29
+ var version = pkgJson.version,
30
+ name = pkgJson.name;
31
31
  var plugin = exports.plugin = {
32
32
  meta: {
33
33
  name: name,
@@ -56,5 +56,6 @@ var plugin = exports.plugin = {
56
56
  })
57
57
  }
58
58
  };
59
- var configs = exports.configs = plugin.configs;
59
+ var configs = exports.configs = plugin.configs,
60
+ meta = exports.meta = plugin.meta;
60
61
  var _default = exports.default = plugin;
package/dist/cjs/index.js CHANGED
@@ -22,10 +22,10 @@ Object.defineProperty(exports, "filterActionableDeprecations", {
22
22
  return _filterActionableDeprecations.filterActionableDeprecations;
23
23
  }
24
24
  });
25
- Object.defineProperty(exports, "name", {
25
+ Object.defineProperty(exports, "meta", {
26
26
  enumerable: true,
27
27
  get: function get() {
28
- return _index.name;
28
+ return _index.meta;
29
29
  }
30
30
  });
31
31
  Object.defineProperty(exports, "plugin", {
@@ -40,12 +40,6 @@ Object.defineProperty(exports, "rules", {
40
40
  return _index.rules;
41
41
  }
42
42
  });
43
- Object.defineProperty(exports, "version", {
44
- enumerable: true,
45
- get: function get() {
46
- return _index.version;
47
- }
48
- });
49
43
  var _index = _interopRequireWildcard(require("./index.codegen"));
50
44
  var _filterActionableDeprecations = require("./rules/no-deprecated-apis/helpers/filter-actionable-deprecations");
51
45
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::7656123b732a9145dedb7f9eee588883>>
3
+ * @codegen <<SignedSource::c77bc1fd6f2331dc0cae4fb3a58994d3>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import allFlat from './presets/all-flat.codegen';
@@ -10,8 +10,9 @@ import recommended from './presets/recommended.codegen';
10
10
  import { rules } from './rules/index.codegen';
11
11
 
12
12
  // this uses require because not all node versions this package supports use the same import assertions/attributes
13
- const pkgJson = require('../package.json');
14
- export const {
13
+ // eslint-disable-next-line import/no-extraneous-dependencies
14
+ const pkgJson = require('@atlaskit/eslint-plugin-design-system/package.json');
15
+ const {
15
16
  version,
16
17
  name
17
18
  } = pkgJson;
@@ -48,5 +49,8 @@ export const plugin = {
48
49
  }
49
50
  };
50
51
  export { rules } from './rules/index.codegen';
51
- export const configs = plugin.configs;
52
+ export const {
53
+ configs,
54
+ meta
55
+ } = plugin;
52
56
  export default plugin;
@@ -1,2 +1,2 @@
1
- export { version, name, rules, plugin, configs, default } from './index.codegen';
1
+ export { meta, rules, plugin, configs, default } from './index.codegen';
2
2
  export { filterActionableDeprecations } from './rules/no-deprecated-apis/helpers/filter-actionable-deprecations';
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  /**
5
5
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
6
- * @codegen <<SignedSource::7656123b732a9145dedb7f9eee588883>>
6
+ * @codegen <<SignedSource::c77bc1fd6f2331dc0cae4fb3a58994d3>>
7
7
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
8
8
  */
9
9
  import allFlat from './presets/all-flat.codegen';
@@ -13,10 +13,10 @@ import recommended from './presets/recommended.codegen';
13
13
  import { rules } from './rules/index.codegen';
14
14
 
15
15
  // this uses require because not all node versions this package supports use the same import assertions/attributes
16
- var pkgJson = require('../package.json');
16
+ // eslint-disable-next-line import/no-extraneous-dependencies
17
+ var pkgJson = require('@atlaskit/eslint-plugin-design-system/package.json');
17
18
  var version = pkgJson.version,
18
19
  name = pkgJson.name;
19
- export { version, name };
20
20
  export var plugin = {
21
21
  meta: {
22
22
  name: name,
@@ -46,5 +46,7 @@ export var plugin = {
46
46
  }
47
47
  };
48
48
  export { rules } from './rules/index.codegen';
49
- export var configs = plugin.configs;
49
+ var configs = plugin.configs,
50
+ meta = plugin.meta;
51
+ export { configs, meta };
50
52
  export default plugin;
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { version, name, rules, plugin, configs, default } from './index.codegen';
1
+ export { meta, rules, plugin, configs, default } from './index.codegen';
2
2
  export { filterActionableDeprecations } from './rules/no-deprecated-apis/helpers/filter-actionable-deprecations';
@@ -1,4 +1,3 @@
1
- export declare const version: string, name: string;
2
1
  export declare const plugin: {
3
2
  readonly meta: {
4
3
  readonly name: string;
@@ -510,5 +509,8 @@ export declare const configs: {
510
509
  readonly '@atlaskit/design-system/use-visually-hidden': "error";
511
510
  };
512
511
  };
512
+ }, meta: {
513
+ readonly name: string;
514
+ readonly version: string;
513
515
  };
514
516
  export default plugin;
@@ -1,2 +1,2 @@
1
- export { version, name, rules, plugin, configs, default } from './index.codegen';
1
+ export { meta, rules, plugin, configs, default } from './index.codegen';
2
2
  export { filterActionableDeprecations } from './rules/no-deprecated-apis/helpers/filter-actionable-deprecations';
@@ -1,4 +1,3 @@
1
- export declare const version: string, name: string;
2
1
  export declare const plugin: {
3
2
  readonly meta: {
4
3
  readonly name: string;
@@ -594,5 +593,8 @@ export declare const configs: {
594
593
  readonly '@atlaskit/design-system/use-visually-hidden': "error";
595
594
  };
596
595
  };
596
+ }, meta: {
597
+ readonly name: string;
598
+ readonly version: string;
597
599
  };
598
600
  export default plugin;
@@ -1,2 +1,2 @@
1
- export { version, name, rules, plugin, configs, default } from './index.codegen';
1
+ export { meta, rules, plugin, configs, default } from './index.codegen';
2
2
  export { filterActionableDeprecations } from './rules/no-deprecated-apis/helpers/filter-actionable-deprecations';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
3
  "description": "The essential plugin for use with the Atlassian Design System.",
4
- "version": "10.23.0",
4
+ "version": "10.23.1",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
@@ -34,14 +34,15 @@
34
34
  "sideEffects": false,
35
35
  "atlaskit:src": "src/index.tsx",
36
36
  "af:exports": {
37
- ".": "./src/index.tsx"
37
+ ".": "./src/index.tsx",
38
+ "./package.json": "./package.json"
38
39
  },
39
40
  "peerDependencies": {
40
41
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
41
42
  },
42
43
  "dependencies": {
43
44
  "@atlaskit/eslint-utils": "^1.7.0",
44
- "@atlaskit/icon": "^22.22.0",
45
+ "@atlaskit/icon": "^22.24.0",
45
46
  "@atlaskit/tokens": "*",
46
47
  "@babel/runtime": "^7.0.0",
47
48
  "@typescript-eslint/utils": "^5.48.1",