@inclusive-design/eslint-config 0.3.1 → 0.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.0](https://github.com/inclusive-design/eslint-config/compare/v0.3.1...v0.4.0) (2026-04-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * allow anonymous default export of arrays and objects ([#49](https://github.com/inclusive-design/eslint-config/issues/49)) ([6cb565d](https://github.com/inclusive-design/eslint-config/commit/6cb565da5248b57ef27a90e974742a4899ae5423))
9
+
3
10
  ## [0.3.1](https://github.com/inclusive-design/eslint-config/compare/v0.3.0...v0.3.1) (2026-04-28)
4
11
 
5
12
 
@@ -1,5 +1,3 @@
1
- const config = {
1
+ export default {
2
2
  extends: ['@commitlint/config-conventional'],
3
3
  };
4
-
5
- export default config;
package/index.js CHANGED
@@ -11,6 +11,13 @@ export default defineConfig([
11
11
  eslintConfigXo({browser: true}),
12
12
  jsdoc.configs['flat/recommended'],
13
13
  ],
14
+ rules: {
15
+ 'import-x/no-anonymous-default-export': ['error', {
16
+ allowArray: true,
17
+ allowLiteral: true,
18
+ allowObject: true,
19
+ }],
20
+ },
14
21
  },
15
22
  {
16
23
  files: ['**/*.json'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inclusive-design/eslint-config",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Shareable ESLint configuration for the Inclusive Design Research Centre.",
5
5
  "main": "index.js",
6
6
  "type": "module",