@inclusive-design/eslint-config 0.3.1 → 0.5.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 +22 -0
- package/index.js +16 -4
- package/package.json +8 -29
- package/.editorconfig +0 -12
- package/.markdownlint-cli2.mjs +0 -1
- package/commitlint.config.js +0 -5
- package/eslint.config.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0](https://github.com/inclusive-design/linter-configs/compare/eslint-config@v0.4.0...eslint-config@v0.5.0) (2026-05-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* allow TODO comments (resolves inclusive-design/eslint-config[#56](https://github.com/inclusive-design/linter-configs/issues/56)) ([#5](https://github.com/inclusive-design/linter-configs/issues/5)) ([da7bb99](https://github.com/inclusive-design/linter-configs/commit/da7bb99e4bd1caaee0e9b9474ad3b550b260d7c6))
|
|
9
|
+
* always require parenthesis for arrow functions (resolves [#9](https://github.com/inclusive-design/linter-configs/issues/9)) ([#21](https://github.com/inclusive-design/linter-configs/issues/21)) ([c880521](https://github.com/inclusive-design/linter-configs/commit/c880521cc482f05753d22bdea2d567985950eb0b))
|
|
10
|
+
* disable unicorn/no-null (resolves [#11](https://github.com/inclusive-design/linter-configs/issues/11)) ([#22](https://github.com/inclusive-design/linter-configs/issues/22)) ([169fbe8](https://github.com/inclusive-design/linter-configs/commit/169fbe8315f71d1b47df607655974970eeb01d51))
|
|
11
|
+
* require spaces within object curly braces (resolves [#8](https://github.com/inclusive-design/linter-configs/issues/8)) ([#20](https://github.com/inclusive-design/linter-configs/issues/20)) ([b5acc54](https://github.com/inclusive-design/linter-configs/commit/b5acc544cb87b29a77482aebc99b188a2a9a936a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* restructure as monorepo ([58bcf45](https://github.com/inclusive-design/linter-configs/commit/58bcf45f4d6ddcd53e76684aa9c38f220592e3a7))
|
|
17
|
+
|
|
18
|
+
## [0.4.0](https://github.com/inclusive-design/eslint-config/compare/v0.3.1...v0.4.0) (2026-04-28)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* 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))
|
|
24
|
+
|
|
3
25
|
## [0.3.1](https://github.com/inclusive-design/eslint-config/compare/v0.3.0...v0.3.1) (2026-04-28)
|
|
4
26
|
|
|
5
27
|
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {defineConfig} from 'eslint/config';
|
|
1
|
+
import { defineConfig } from 'eslint/config';
|
|
2
2
|
import eslintConfigXo from 'eslint-config-xo';
|
|
3
3
|
import jsdoc from 'eslint-plugin-jsdoc';
|
|
4
4
|
import markdown from '@eslint/markdown';
|
|
@@ -8,20 +8,32 @@ export default defineConfig([
|
|
|
8
8
|
{
|
|
9
9
|
files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
|
|
10
10
|
extends: [
|
|
11
|
-
eslintConfigXo({browser: true}),
|
|
11
|
+
eslintConfigXo({ browser: true }),
|
|
12
12
|
jsdoc.configs['flat/recommended'],
|
|
13
13
|
],
|
|
14
|
+
rules: {
|
|
15
|
+
camelcase: ['error', { properties: 'never' }],
|
|
16
|
+
'import-x/no-anonymous-default-export': ['error', {
|
|
17
|
+
allowArray: true,
|
|
18
|
+
allowLiteral: true,
|
|
19
|
+
allowObject: true,
|
|
20
|
+
}],
|
|
21
|
+
'no-warning-comments': ['error', { terms: ['fixme', 'fix'] }],
|
|
22
|
+
'unicorn/no-null': 'off',
|
|
23
|
+
'@stylistic/arrow-parens': ['error', 'always'],
|
|
24
|
+
'@stylistic/object-curly-spacing': ['error', 'always'],
|
|
25
|
+
},
|
|
14
26
|
},
|
|
15
27
|
{
|
|
16
28
|
files: ['**/*.json'],
|
|
17
29
|
ignores: ['package-lock.json'],
|
|
18
|
-
plugins: {json},
|
|
30
|
+
plugins: { json },
|
|
19
31
|
language: 'json/json',
|
|
20
32
|
extends: ['json/recommended'],
|
|
21
33
|
},
|
|
22
34
|
{
|
|
23
35
|
files: ['**/*.jsonc'],
|
|
24
|
-
plugins: {json},
|
|
36
|
+
plugins: { json },
|
|
25
37
|
language: 'json/jsonc',
|
|
26
38
|
extends: ['json/recommended'],
|
|
27
39
|
},
|
package/package.json
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inclusive-design/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Shareable ESLint configuration for the Inclusive Design Research Centre.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"lint": "run-s -l lint:*",
|
|
9
|
-
"lint:markdownlint": "markdownlint-cli2 \"**/*.md\"",
|
|
10
|
-
"lint:eslint": "eslint",
|
|
11
|
-
"test": "node --test test/main.test.js",
|
|
12
|
-
"prepare": "husky"
|
|
13
|
-
},
|
|
14
7
|
"repository": {
|
|
15
8
|
"type": "git",
|
|
16
9
|
"url": "git+https://github.com/inclusive-design/eslint-config.git"
|
|
@@ -27,28 +20,14 @@
|
|
|
27
20
|
"url": "https://github.com/inclusive-design/eslint-config/issues"
|
|
28
21
|
},
|
|
29
22
|
"homepage": "https://github.com/inclusive-design/eslint-config#readme",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "node --test test/*.test.js"
|
|
25
|
+
},
|
|
30
26
|
"dependencies": {
|
|
31
|
-
"@eslint/json": "^1.
|
|
32
|
-
"@eslint/markdown": "^8.0.
|
|
33
|
-
"eslint": "^10.
|
|
27
|
+
"@eslint/json": "^1.2.0",
|
|
28
|
+
"@eslint/markdown": "^8.0.1",
|
|
29
|
+
"eslint": "^10.2.1",
|
|
34
30
|
"eslint-config-xo": "^0.51.0",
|
|
35
|
-
"eslint-plugin-jsdoc": "^62.
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@commitlint/cli": "^20.3.0",
|
|
39
|
-
"@commitlint/config-conventional": "^20.3.0",
|
|
40
|
-
"@inclusive-design/markdownlint-config": "^0.1.0",
|
|
41
|
-
"husky": "^9.1.7",
|
|
42
|
-
"lint-staged": "^16.2.7",
|
|
43
|
-
"npm-run-all2": "^8.0.4"
|
|
44
|
-
},
|
|
45
|
-
"lint-staged": {
|
|
46
|
-
"*.{cjs,js,json,jsonc,mjs}": [
|
|
47
|
-
"eslint --fix"
|
|
48
|
-
],
|
|
49
|
-
"*.md": [
|
|
50
|
-
"eslint --fix",
|
|
51
|
-
"markdownlint-cli2 --fix"
|
|
52
|
-
]
|
|
31
|
+
"eslint-plugin-jsdoc": "^62.9.0"
|
|
53
32
|
}
|
|
54
33
|
}
|
package/.editorconfig
DELETED
package/.markdownlint-cli2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {default} from '@inclusive-design/markdownlint-config';
|
package/commitlint.config.js
DELETED