@cookshack/eslint-config 0.1.6 → 1.1.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/dist/index.cjs +3 -4
- package/dist/index.js +3 -4
- package/index.js +3 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -73,6 +73,7 @@ exports.rules = {
|
|
|
73
73
|
'no-unused-vars': 'error',
|
|
74
74
|
'no-var': 'error',
|
|
75
75
|
'object-curly-spacing': [ 'error', 'always' ],
|
|
76
|
+
'object-shorthand': [ 'error', 'always' ],
|
|
76
77
|
quotes: [ 'error', 'single', { avoidEscape: true } ],
|
|
77
78
|
semi: [ 'error', 'never' ]
|
|
78
79
|
//'vars-on-top': [ 'error' ], // want version for let
|
|
@@ -84,14 +85,12 @@ exports.languageOptions = {
|
|
|
84
85
|
...globals.node
|
|
85
86
|
},
|
|
86
87
|
parserOptions: {
|
|
87
|
-
ecmaVersion:
|
|
88
|
+
ecmaVersion: 2025,
|
|
88
89
|
sourceType: 'module'
|
|
89
90
|
}
|
|
90
91
|
};
|
|
91
92
|
|
|
92
|
-
var index = [ { ignores: [ 'TAGS.mjs',
|
|
93
|
-
// HACK remove once eslint understands "import ... with"
|
|
94
|
-
'json.mjs' ] },
|
|
93
|
+
var index = [ { ignores: [ 'TAGS.mjs' ] },
|
|
95
94
|
{ languageOptions: exports.languageOptions,
|
|
96
95
|
plugins: exports.plugins,
|
|
97
96
|
rules: exports.rules } ];
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,7 @@ rules = {
|
|
|
69
69
|
'no-unused-vars': 'error',
|
|
70
70
|
'no-var': 'error',
|
|
71
71
|
'object-curly-spacing': [ 'error', 'always' ],
|
|
72
|
+
'object-shorthand': [ 'error', 'always' ],
|
|
72
73
|
quotes: [ 'error', 'single', { avoidEscape: true } ],
|
|
73
74
|
semi: [ 'error', 'never' ]
|
|
74
75
|
//'vars-on-top': [ 'error' ], // want version for let
|
|
@@ -80,14 +81,12 @@ languageOptions = {
|
|
|
80
81
|
...globals.node
|
|
81
82
|
},
|
|
82
83
|
parserOptions: {
|
|
83
|
-
ecmaVersion:
|
|
84
|
+
ecmaVersion: 2025,
|
|
84
85
|
sourceType: 'module'
|
|
85
86
|
}
|
|
86
87
|
};
|
|
87
88
|
|
|
88
|
-
var index = [ { ignores: [ 'TAGS.mjs',
|
|
89
|
-
// HACK remove once eslint understands "import ... with"
|
|
90
|
-
'json.mjs' ] },
|
|
89
|
+
var index = [ { ignores: [ 'TAGS.mjs' ] },
|
|
91
90
|
{ languageOptions: languageOptions,
|
|
92
91
|
plugins: plugins,
|
|
93
92
|
rules: rules } ];
|
package/index.js
CHANGED
|
@@ -69,6 +69,7 @@ rules = {
|
|
|
69
69
|
'no-unused-vars': 'error',
|
|
70
70
|
'no-var': 'error',
|
|
71
71
|
'object-curly-spacing': [ 'error', 'always' ],
|
|
72
|
+
'object-shorthand': [ 'error', 'always' ],
|
|
72
73
|
quotes: [ 'error', 'single', { avoidEscape: true } ],
|
|
73
74
|
semi: [ 'error', 'never' ]
|
|
74
75
|
//'vars-on-top': [ 'error' ], // want version for let
|
|
@@ -80,15 +81,13 @@ languageOptions = {
|
|
|
80
81
|
...globals.node
|
|
81
82
|
},
|
|
82
83
|
parserOptions: {
|
|
83
|
-
ecmaVersion:
|
|
84
|
+
ecmaVersion: 2025,
|
|
84
85
|
sourceType: 'module'
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
export
|
|
89
|
-
default [ { ignores: [ 'TAGS.mjs',
|
|
90
|
-
// HACK remove once eslint understands "import ... with"
|
|
91
|
-
'json.mjs' ] },
|
|
90
|
+
default [ { ignores: [ 'TAGS.mjs' ] },
|
|
92
91
|
{ languageOptions: languageOptions,
|
|
93
92
|
plugins: plugins,
|
|
94
93
|
rules: rules } ]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cookshack/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "ESLint config for Cookshack projects",
|
|
5
5
|
"homepage": "https://git.sr.ht/~mattmundell/eslint-config",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Matt Mundell",
|
|
22
22
|
"license": "CC0-1.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"eslint": "
|
|
24
|
+
"eslint": "9.24",
|
|
25
25
|
"globals": "^15.10.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|