@hellomouse/eslint-config 2.0.1-flat.3 → 2.0.1-flat.5
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/index.cjs +2 -7
- package/index.mjs +2 -5
- package/package.json +6 -8
package/index.cjs
CHANGED
|
@@ -3,19 +3,14 @@ const jsdoc = require('eslint-plugin-jsdoc');
|
|
|
3
3
|
const js = require('@eslint/js');
|
|
4
4
|
const stylistic = require('@stylistic/eslint-plugin');
|
|
5
5
|
|
|
6
|
-
const jsdocNoPlugin = jsdoc.configs['flat/recommended'];
|
|
7
|
-
delete jsdocNoPlugin.plugins;
|
|
8
6
|
/** @type {import("eslint").Linter.FlatConfig[]} */
|
|
9
7
|
module.exports = [
|
|
10
8
|
js.configs.recommended,
|
|
11
9
|
google,
|
|
12
|
-
|
|
10
|
+
{ rules: jsdoc.configs['flat/recommended'].rules },
|
|
13
11
|
stylistic.configs['disable-legacy'],
|
|
14
12
|
{
|
|
15
|
-
//
|
|
16
|
-
plugins: {
|
|
17
|
-
// jsdoc: jsdoc
|
|
18
|
-
},
|
|
13
|
+
// jsdoc and stylistic plugins already defined in Google
|
|
19
14
|
rules: {
|
|
20
15
|
// highly subjective: dangling commas feel weird,
|
|
21
16
|
'@stylistic/comma-dangle': ['error', 'never'],
|
package/index.mjs
CHANGED
|
@@ -7,13 +7,10 @@ import stylistic from '@stylistic/eslint-plugin';
|
|
|
7
7
|
export default [
|
|
8
8
|
js.configs.recommended,
|
|
9
9
|
google,
|
|
10
|
-
jsdoc.configs['flat/recommended'],
|
|
10
|
+
{ rules: jsdoc.configs['flat/recommended'].rules },
|
|
11
11
|
stylistic.configs['disable-legacy'],
|
|
12
12
|
{
|
|
13
|
-
//
|
|
14
|
-
plugins: {
|
|
15
|
-
jsdoc: jsdoc
|
|
16
|
-
},
|
|
13
|
+
// jsdoc and stylistic plugins already defined in Google
|
|
17
14
|
rules: {
|
|
18
15
|
// highly subjective: dangling commas feel weird,
|
|
19
16
|
'@stylistic/comma-dangle': ['error', 'never'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hellomouse/eslint-config",
|
|
3
|
-
"version": "2.0.1-flat.
|
|
3
|
+
"version": "2.0.1-flat.5",
|
|
4
4
|
"description": "Official ESLint config for Hellomouse, based off of Google's config",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,18 +28,16 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/hellomouse/eslint-config#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@stylistic/eslint-plugin": ">= 1.1.0",
|
|
31
|
+
"@stylistic/eslint-plugin": ">= 1.1.0 < 4",
|
|
32
32
|
"@eslint/js": "^9.2.0",
|
|
33
33
|
"eslint-plugin-jsdoc": ">=48.2.3",
|
|
34
|
-
"@hellomouse/eslint-config-google": "0.15.0-flat.
|
|
34
|
+
"@hellomouse/eslint-config-google": "0.15.0-flat.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"eslint": ">=8.57
|
|
37
|
+
"eslint": ">=8.57"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"require": "./index.cjs"
|
|
43
|
-
}
|
|
40
|
+
"import": "./index.mjs",
|
|
41
|
+
"require": "./index.cjs"
|
|
44
42
|
}
|
|
45
43
|
}
|