@inclusive-design/eslint-config 0.1.1 → 0.2.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 +9 -0
- package/eslint.config.js +9 -1
- package/index.js +34 -1
- package/package.json +9 -5
- package/test/test.js +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.0](https://github.com/inclusive-design/eslint-config/compare/v0.1.1...v0.2.0) (2026-01-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* 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))
|
|
9
|
+
* 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))
|
|
10
|
+
* 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))
|
|
11
|
+
|
|
3
12
|
## [0.1.1](https://github.com/inclusive-design/eslint-config/compare/v0.1.0...v0.1.1) (2026-01-07)
|
|
4
13
|
|
|
5
14
|
|
package/eslint.config.js
CHANGED
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
10
|
files: ['**/*.js'],
|
|
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.
|
|
3
|
+
"version": "0.2.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:
|
|
10
|
-
"lint:
|
|
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,8 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/inclusive-design/eslint-config#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@eslint/json": "^0.14.0",
|
|
32
|
+
"@eslint/markdown": "^7.5.1",
|
|
31
33
|
"eslint": "^9.39.2",
|
|
32
34
|
"eslint-config-xo": "^0.49.0",
|
|
35
|
+
"eslint-plugin-jsdoc": "^62.0.0",
|
|
33
36
|
"eslint-plugin-unicorn": "^62.0.0"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
@@ -41,10 +44,11 @@
|
|
|
41
44
|
"npm-run-all2": "^8.0.4"
|
|
42
45
|
},
|
|
43
46
|
"lint-staged": {
|
|
44
|
-
"*.js": [
|
|
47
|
+
"*.{js,json,jsonc}": [
|
|
45
48
|
"eslint --fix"
|
|
46
49
|
],
|
|
47
50
|
"*.md": [
|
|
51
|
+
"eslint --fix",
|
|
48
52
|
"markdownlint-cli2 --fix"
|
|
49
53
|
]
|
|
50
54
|
}
|