@aarongoldenthal/eslint-config-standard 31.0.1 → 32.0.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/package.json +11 -11
- package/unicorn-configs.js +4 -1
- package/vitest-config.js +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarongoldenthal/eslint-config-standard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "32.0.0",
|
|
4
4
|
"description": "Standard ESLint configuration settings",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"hooks:pre-commit": "npm run lint && npm run prettier:check",
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://gitlab.com/gitlab-ci-utils/eslint-config-standard",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.
|
|
36
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
|
|
37
|
+
"@vitest/eslint-plugin": "1.1.7",
|
|
37
38
|
"eslint-config-prettier": "9.1.0",
|
|
38
|
-
"eslint-plugin-jest": "28.8.
|
|
39
|
-
"eslint-plugin-jsdoc": "50.
|
|
40
|
-
"eslint-plugin-n": "17.
|
|
39
|
+
"eslint-plugin-jest": "28.8.3",
|
|
40
|
+
"eslint-plugin-jsdoc": "50.3.1",
|
|
41
|
+
"eslint-plugin-n": "17.11.1",
|
|
41
42
|
"eslint-plugin-playwright": "1.6.2",
|
|
42
43
|
"eslint-plugin-promise": "7.1.0",
|
|
43
44
|
"eslint-plugin-sonarjs": "1.0.4",
|
|
44
|
-
"eslint-plugin-unicorn": "
|
|
45
|
-
"
|
|
46
|
-
"globals": "15.9.0"
|
|
45
|
+
"eslint-plugin-unicorn": "56.0.0",
|
|
46
|
+
"globals": "15.11.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@eslint/config-inspector": "0.5.
|
|
50
|
-
"eslint": "9.
|
|
49
|
+
"@eslint/config-inspector": "0.5.4",
|
|
50
|
+
"eslint": "9.12.0",
|
|
51
51
|
"jest": "29.7.0",
|
|
52
52
|
"jest-junit": "16.0.0",
|
|
53
|
-
"markdownlint-cli2": "0.
|
|
53
|
+
"markdownlint-cli2": "0.14.0",
|
|
54
54
|
"prettier": "3.3.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
package/unicorn-configs.js
CHANGED
|
@@ -8,10 +8,11 @@ module.exports = [
|
|
|
8
8
|
name: 'unicorn (all files)',
|
|
9
9
|
plugins: { unicorn: unicornPlugin },
|
|
10
10
|
rules: {
|
|
11
|
-
'unicorn/better-regex': 'error',
|
|
11
|
+
'unicorn/better-regex': 'error',
|
|
12
12
|
'unicorn/catch-error-name': 'error', // Recommended
|
|
13
13
|
'unicorn/consistent-destructuring': 'error',
|
|
14
14
|
'unicorn/consistent-empty-array-spread': 'error', // Recommended
|
|
15
|
+
'unicorn/consistent-existence-index-check': 'error', // Recommended
|
|
15
16
|
'unicorn/consistent-function-scoping': 'error', // Recommended
|
|
16
17
|
'unicorn/custom-error-definition': 'error',
|
|
17
18
|
'unicorn/empty-brace-spaces': 'off', // Recommended, Prettier
|
|
@@ -87,10 +88,12 @@ module.exports = [
|
|
|
87
88
|
'unicorn/prefer-dom-node-text-content': 'error', // Recommended
|
|
88
89
|
'unicorn/prefer-event-target': 'error', // Recommended
|
|
89
90
|
'unicorn/prefer-export-from': 'error', // Recommended
|
|
91
|
+
'unicorn/prefer-global-this': 'error', // Recommended
|
|
90
92
|
'unicorn/prefer-includes': 'error', // Recommended
|
|
91
93
|
'unicorn/prefer-json-parse-buffer': 'off',
|
|
92
94
|
'unicorn/prefer-keyboard-event-key': 'error', // Recommended
|
|
93
95
|
'unicorn/prefer-logical-operator-over-ternary': 'error', // Recommended
|
|
96
|
+
'unicorn/prefer-math-min-max': 'error', // Recommended
|
|
94
97
|
'unicorn/prefer-math-trunc': 'off', // Recommended
|
|
95
98
|
'unicorn/prefer-modern-dom-apis': 'error', // Recommended
|
|
96
99
|
'unicorn/prefer-modern-math-apis': 'error', // Recommended
|
package/vitest-config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const vitestPlugin = require('eslint-plugin
|
|
3
|
+
const vitestPlugin = require('@vitest/eslint-plugin');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
files: ['**/__tests__/**/*.{js,mjs}', '**/?(*.)+(spec|test).{js,mjs}'],
|
|
@@ -40,6 +40,14 @@ module.exports = {
|
|
|
40
40
|
'vitest/no-standalone-expect': 'error',
|
|
41
41
|
'vitest/no-test-prefixes': 'error',
|
|
42
42
|
'vitest/no-test-return-statement': 'error',
|
|
43
|
+
'vitest/padding-around-after-all-blocks': 'off',
|
|
44
|
+
'vitest/padding-around-after-each-blocks': 'off',
|
|
45
|
+
'vitest/padding-around-all': 'off',
|
|
46
|
+
'vitest/padding-around-before-all-blocks': 'off',
|
|
47
|
+
'vitest/padding-around-before-each-blocks': 'off',
|
|
48
|
+
'vitest/padding-around-describe-blocks': 'off',
|
|
49
|
+
'vitest/padding-around-expect-groups': 'off',
|
|
50
|
+
'vitest/padding-around-test-blocks': 'off',
|
|
43
51
|
'vitest/prefer-called-with': 'error',
|
|
44
52
|
'vitest/prefer-comparison-matcher': 'error',
|
|
45
53
|
'vitest/prefer-each': 'error',
|