@kouts/eslint-config 3.0.5 → 3.0.7

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.
Files changed (3) hide show
  1. package/dist/index.cjs +26 -18
  2. package/dist/index.js +26 -18
  3. package/package.json +12 -12
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var js = require('@eslint/js');
4
- var pluginVitest = require('@vitest/eslint-plugin');
5
4
  var pluginHtml = require('eslint-plugin-html');
6
5
  var pluginPrettier = require('eslint-plugin-prettier/recommended');
7
6
  var pluginSimpleImportSort = require('eslint-plugin-simple-import-sort');
8
7
  var neostandard = require('neostandard');
8
+ var pluginVitest = require('@vitest/eslint-plugin');
9
9
  var pluginVue = require('eslint-plugin-vue');
10
10
 
11
11
  const rule = {
@@ -99,6 +99,30 @@ const typescript = [
99
99
  }
100
100
  ];
101
101
 
102
+ const vitest = [
103
+ {
104
+ name: "kouts/vitest",
105
+ files: ["test/**", "tests/**", "**/*.test.{js,ts}*", "**/*.spec.{js,ts}"],
106
+ plugins: {
107
+ vitest: pluginVitest
108
+ },
109
+ rules: {
110
+ ...pluginVitest.configs.recommended.rules,
111
+ "vitest/expect-expect": [
112
+ "error",
113
+ {
114
+ assertFunctionNames: ["expect", "assert", "expectTypeOf"]
115
+ }
116
+ ]
117
+ },
118
+ languageOptions: {
119
+ globals: {
120
+ ...pluginVitest.environments.env.globals
121
+ }
122
+ }
123
+ }
124
+ ];
125
+
102
126
  const vue = (options) => {
103
127
  const opts = {
104
128
  version: 3,
@@ -260,23 +284,7 @@ const config = (options) => {
260
284
  // Vue
261
285
  ...opts.vue ? vue({ version: opts.vueVersion, ts: opts.ts }) : [],
262
286
  // Vitest
263
- ...opts.vitest ? [
264
- {
265
- name: "kouts/vitest",
266
- files: ["test/**", "tests/**", "**/*.test.{js,ts}*", "**/*.spec.{js,ts}"],
267
- plugins: {
268
- vitest: pluginVitest
269
- },
270
- rules: {
271
- ...pluginVitest.configs.recommended.rules
272
- },
273
- languageOptions: {
274
- globals: {
275
- ...pluginVitest.environments.env.globals
276
- }
277
- }
278
- }
279
- ] : [],
287
+ ...opts.vitest ? vitest : [],
280
288
  // Prettier
281
289
  {
282
290
  name: "kouts/prettier",
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import js from '@eslint/js';
2
- import pluginVitest from '@vitest/eslint-plugin';
3
2
  import pluginHtml from 'eslint-plugin-html';
4
3
  import pluginPrettier from 'eslint-plugin-prettier/recommended';
5
4
  import pluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
6
5
  import neostandard, { plugins, resolveIgnoresFromGitignore } from 'neostandard';
7
6
  export { plugins } from 'neostandard';
7
+ import pluginVitest from '@vitest/eslint-plugin';
8
8
  import pluginVue from 'eslint-plugin-vue';
9
9
 
10
10
  const rule = {
@@ -98,6 +98,30 @@ const typescript = [
98
98
  }
99
99
  ];
100
100
 
101
+ const vitest = [
102
+ {
103
+ name: "kouts/vitest",
104
+ files: ["test/**", "tests/**", "**/*.test.{js,ts}*", "**/*.spec.{js,ts}"],
105
+ plugins: {
106
+ vitest: pluginVitest
107
+ },
108
+ rules: {
109
+ ...pluginVitest.configs.recommended.rules,
110
+ "vitest/expect-expect": [
111
+ "error",
112
+ {
113
+ assertFunctionNames: ["expect", "assert", "expectTypeOf"]
114
+ }
115
+ ]
116
+ },
117
+ languageOptions: {
118
+ globals: {
119
+ ...pluginVitest.environments.env.globals
120
+ }
121
+ }
122
+ }
123
+ ];
124
+
101
125
  const vue = (options) => {
102
126
  const opts = {
103
127
  version: 3,
@@ -259,23 +283,7 @@ const config = (options) => {
259
283
  // Vue
260
284
  ...opts.vue ? vue({ version: opts.vueVersion, ts: opts.ts }) : [],
261
285
  // Vitest
262
- ...opts.vitest ? [
263
- {
264
- name: "kouts/vitest",
265
- files: ["test/**", "tests/**", "**/*.test.{js,ts}*", "**/*.spec.{js,ts}"],
266
- plugins: {
267
- vitest: pluginVitest
268
- },
269
- rules: {
270
- ...pluginVitest.configs.recommended.rules
271
- },
272
- languageOptions: {
273
- globals: {
274
- ...pluginVitest.environments.env.globals
275
- }
276
- }
277
- }
278
- ] : [],
286
+ ...opts.vitest ? vitest : [],
279
287
  // Prettier
280
288
  {
281
289
  name: "kouts/prettier",
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@kouts/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.5",
5
- "packageManager": "pnpm@10.13.1",
4
+ "version": "3.0.7",
5
+ "packageManager": "pnpm@10.16.1",
6
6
  "engines": {
7
7
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
8
8
  },
@@ -70,13 +70,13 @@
70
70
  "url": "git+https://github.com/kouts/eslint-config.git"
71
71
  },
72
72
  "dependencies": {
73
- "@eslint/js": "^9.31.0",
74
- "@vitest/eslint-plugin": "^1.3.4",
73
+ "@eslint/js": "^9.35.0",
74
+ "@vitest/eslint-plugin": "^1.3.9",
75
75
  "eslint-config-prettier": "^10.1.8",
76
76
  "eslint-plugin-html": "^8.1.3",
77
- "eslint-plugin-prettier": "^5.5.3",
77
+ "eslint-plugin-prettier": "^5.5.4",
78
78
  "eslint-plugin-simple-import-sort": "^12.1.1",
79
- "eslint-plugin-vue": "^10.3.0",
79
+ "eslint-plugin-vue": "^10.4.0",
80
80
  "neostandard": "^0.12.2",
81
81
  "prettier": "^3.6.2"
82
82
  },
@@ -85,13 +85,13 @@
85
85
  "@commitlint/config-conventional": "^19.8.1",
86
86
  "@semantic-release/changelog": "^6.0.3",
87
87
  "@semantic-release/git": "^10.0.1",
88
- "@types/node": "^24.0.15",
89
- "eslint": "^9.31.0",
88
+ "@types/node": "^24.4.0",
89
+ "eslint": "^9.35.0",
90
90
  "husky": "^9.1.7",
91
- "lint-staged": "^16.1.2",
92
- "pkgroll": "^2.14.3",
93
- "semantic-release": "^24.2.7",
94
- "typescript": "5.8.3",
91
+ "lint-staged": "^16.1.6",
92
+ "pkgroll": "^2.15.4",
93
+ "semantic-release": "^24.2.8",
94
+ "typescript": "5.9.2",
95
95
  "vitest": "^3.2.4"
96
96
  },
97
97
  "peerDependencies": {