@inclusive-design/eslint-config 0.1.1 → 0.3.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,20 +1 @@
1
- export default {
2
- config: {
3
- "no-duplicate-header": false,
4
- "no-trailing-punctuation": false,
5
- "header-style": {
6
- "style": "atx"
7
- },
8
- "no-inline-html": false,
9
- "line-length": {
10
- "line_length": 120,
11
- "tables": false,
12
- "code_blocks": false
13
- },
14
- "code-block-style": false,
15
- "ol-prefix": {
16
- "style": "ordered"
17
- }
18
- },
19
- ignores: ["node_modules", "CHANGELOG.md"]
20
- };
1
+ export {default} from '@inclusive-design/markdownlint-config';
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.0](https://github.com/inclusive-design/eslint-config/compare/v0.2.0...v0.3.0) (2026-03-19)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** update dependency @eslint/json to v1 ([#27](https://github.com/inclusive-design/eslint-config/issues/27)) ([3315838](https://github.com/inclusive-design/eslint-config/commit/331583838c5b0fee0cd48478ca25d90f783658fb))
9
+ * **deps:** update dependency eslint to v10 ([#29](https://github.com/inclusive-design/eslint-config/issues/29)) ([6489785](https://github.com/inclusive-design/eslint-config/commit/64897853bbf820396f300b1e7ea29d02570caf2c))
10
+ * **deps:** update dependency eslint-config-xo to ^0.50.0 ([#30](https://github.com/inclusive-design/eslint-config/issues/30)) ([5da17e9](https://github.com/inclusive-design/eslint-config/commit/5da17e92afeadcf2deec44fb9ed531f924b60033))
11
+ * **deps:** update dependency eslint-plugin-unicorn to v63 ([#31](https://github.com/inclusive-design/eslint-config/issues/31)) ([be31875](https://github.com/inclusive-design/eslint-config/commit/be31875716da9b437bb0439af3472221e0b041ba))
12
+
13
+
14
+ ### Miscellaneous Chores
15
+
16
+ * **release:** release 0.3.0 ([#36](https://github.com/inclusive-design/eslint-config/issues/36)) ([914cf83](https://github.com/inclusive-design/eslint-config/commit/914cf83828c0f86a94f4269dcd94ac45c617e4c3))
17
+
18
+ ## [0.2.0](https://github.com/inclusive-design/eslint-config/compare/v0.1.1...v0.2.0) (2026-01-10)
19
+
20
+
21
+ ### Features
22
+
23
+ * add JSDoc linting (resolves [#15](https://github.com/inclusive-design/eslint-config/issues/15)) ([#18](https://github.com/inclusive-design/eslint-config/issues/18)) ([932c24f](https://github.com/inclusive-design/eslint-config/commit/932c24fc1d2aa9f2b2391a4c38af972975f5b24a))
24
+ * add linting for JSON and JSONC (resolves [#17](https://github.com/inclusive-design/eslint-config/issues/17)) ([#22](https://github.com/inclusive-design/eslint-config/issues/22)) ([cba67f2](https://github.com/inclusive-design/eslint-config/commit/cba67f293106e7c48f7344e4ad68723c052208cd))
25
+ * implement linting of code blocks within markdown (resolves [#16](https://github.com/inclusive-design/eslint-config/issues/16)) ([#20](https://github.com/inclusive-design/eslint-config/issues/20)) ([d250466](https://github.com/inclusive-design/eslint-config/commit/d250466ca37e5625ad4d962e3802dbf828ffdafb))
26
+
3
27
  ## [0.1.1](https://github.com/inclusive-design/eslint-config/compare/v0.1.0...v0.1.1) (2026-01-07)
4
28
 
5
29
 
package/eslint.config.js CHANGED
@@ -1 +1,9 @@
1
- export {default} from './index.js';
1
+ import {defineConfig} from 'eslint/config';
2
+ import eslintConfigInclusiveDesign from './index.js';
3
+
4
+ export default defineConfig([
5
+ eslintConfigInclusiveDesign,
6
+ {
7
+ ignores: ['test/fixtures/*'],
8
+ },
9
+ ]);
package/index.js CHANGED
@@ -1,10 +1,43 @@
1
1
  import {defineConfig} from 'eslint/config';
2
2
  import xoBrowser from 'eslint-config-xo/browser';
3
3
  import eslintPluginUnicorn from 'eslint-plugin-unicorn';
4
+ import jsdoc from 'eslint-plugin-jsdoc';
5
+ import markdown from '@eslint/markdown';
6
+ import json from '@eslint/json';
4
7
 
5
8
  export default defineConfig([
6
9
  {
7
- extends: [xoBrowser, eslintPluginUnicorn.configs.recommended],
8
- files: ['**/*.js'],
10
+ files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
11
+ extends: [
12
+ xoBrowser,
13
+ eslintPluginUnicorn.configs.recommended,
14
+ jsdoc.configs['flat/recommended'],
15
+ ],
16
+ },
17
+ {
18
+ files: ['**/*.json'],
19
+ ignores: ['package-lock.json'],
20
+ plugins: {json},
21
+ language: 'json/json',
22
+ extends: ['json/recommended'],
23
+ },
24
+ {
25
+ files: ['**/*.jsonc'],
26
+ plugins: {json},
27
+ language: 'json/jsonc',
28
+ extends: ['json/recommended'],
29
+ },
30
+ {
31
+ files: ['**/*.md'],
32
+ plugins: {
33
+ markdown,
34
+ },
35
+ extends: ['markdown/processor'],
36
+ },
37
+ {
38
+ files: ['**/*.md/*'],
39
+ rules: {
40
+ 'unicorn/filename-case': 'off',
41
+ },
9
42
  },
10
43
  ]);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@inclusive-design/eslint-config",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "Shareable ESLint configuration for the Inclusive Design Research Centre.",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "lint": "run-s -l lint:*",
9
- "lint:markdown": "markdownlint-cli2 \"**/*.md\"",
10
- "lint:scripts": "eslint",
11
- "test": "node --test",
9
+ "lint:markdownlint": "markdownlint-cli2 \"**/*.md\"",
10
+ "lint:eslint": "eslint",
11
+ "test": "node --test test/main.test.js",
12
12
  "prepare": "husky"
13
13
  },
14
14
  "repository": {
@@ -28,23 +28,27 @@
28
28
  },
29
29
  "homepage": "https://github.com/inclusive-design/eslint-config#readme",
30
30
  "dependencies": {
31
- "eslint": "^9.39.2",
32
- "eslint-config-xo": "^0.49.0",
33
- "eslint-plugin-unicorn": "^62.0.0"
31
+ "@eslint/json": "^1.0.0",
32
+ "@eslint/markdown": "^7.5.1",
33
+ "eslint": "^10.0.0",
34
+ "eslint-config-xo": "^0.50.0",
35
+ "eslint-plugin-jsdoc": "^62.0.0",
36
+ "eslint-plugin-unicorn": "^63.0.0"
34
37
  },
35
38
  "devDependencies": {
36
39
  "@commitlint/cli": "^20.3.0",
37
40
  "@commitlint/config-conventional": "^20.3.0",
41
+ "@inclusive-design/markdownlint-config": "^0.1.0",
38
42
  "husky": "^9.1.7",
39
43
  "lint-staged": "^16.2.7",
40
- "markdownlint-cli2": "^0.20.0",
41
44
  "npm-run-all2": "^8.0.4"
42
45
  },
43
46
  "lint-staged": {
44
- "*.js": [
47
+ "*.{cjs,js,json,jsonc,mjs}": [
45
48
  "eslint --fix"
46
49
  ],
47
50
  "*.md": [
51
+ "eslint --fix",
48
52
  "markdownlint-cli2 --fix"
49
53
  ]
50
54
  }
package/test/test.js DELETED
@@ -1,7 +0,0 @@
1
- import config from '../index.js';
2
- import test from 'node:test';
3
- import assert from 'node:assert';
4
-
5
- test('eslintConfig', async () => {
6
- assert.ok(Array.isArray(config));
7
- });