@rebeccastevens/eslint-config 3.2.2 → 3.2.4

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.mjs CHANGED
@@ -2032,7 +2032,7 @@ async function promise() {
2032
2032
  const [pluginPromise] = (await loadPackages(["eslint-plugin-promise"]));
2033
2033
  return [
2034
2034
  {
2035
- name: "rs:node",
2035
+ name: "rs:promise",
2036
2036
  plugins: {
2037
2037
  promise: pluginPromise,
2038
2038
  },
@@ -2206,7 +2206,7 @@ async function regexp() {
2206
2206
  ]));
2207
2207
  return [
2208
2208
  {
2209
- name: "rs:node",
2209
+ name: "rs:regexp",
2210
2210
  plugins: {
2211
2211
  regexp: {
2212
2212
  ...pluginRegexp,
@@ -2291,7 +2291,7 @@ async function sonar(options) {
2291
2291
  const [pluginSonar] = (await loadPackages(["eslint-plugin-sonarjs"]));
2292
2292
  return [
2293
2293
  {
2294
- name: "rs:node",
2294
+ name: "rs:sonar",
2295
2295
  plugins: {
2296
2296
  sonar: pluginSonar,
2297
2297
  },
@@ -2342,7 +2342,7 @@ function sortTsconfig() {
2342
2342
  return [
2343
2343
  {
2344
2344
  files: ["**/tsconfig.json", "**/tsconfig.*.json"],
2345
- name: "",
2345
+ name: "rs:sort:tsconfig",
2346
2346
  rules: {
2347
2347
  "jsonc/sort-keys": [
2348
2348
  "error",
@@ -2702,7 +2702,7 @@ async function tailwind(options) {
2702
2702
  ]));
2703
2703
  return [
2704
2704
  {
2705
- name: "js:tailwindcss",
2705
+ name: "rs:tailwindcss",
2706
2706
  plugins: {
2707
2707
  tailwind: pluginTailwindCSS,
2708
2708
  "tailwind-readable": pluginReadableTailwind,
@@ -2737,7 +2737,7 @@ async function tailwind(options) {
2737
2737
  async function test(options) {
2738
2738
  const { files, overrides } = options;
2739
2739
  const [pluginVitest, pluginNoOnlyTests] = (await loadPackages([
2740
- "eslint-plugin-vitest",
2740
+ "@vitest/eslint-plugin",
2741
2741
  "eslint-plugin-no-only-tests",
2742
2742
  ]));
2743
2743
  const [pluginFunctional] = await Promise.all([
@@ -3624,7 +3624,7 @@ async function rsEslint(options, ...userConfigs) {
3624
3624
  Boolean(process.env["VSCODE_CWD"]) ||
3625
3625
  Boolean(process.env["JETBRAINS_IDE"]) ||
3626
3626
  Boolean(process.env["VIM"]) ||
3627
- Boolean(process.env["NVIM"])), ignores: ignoresOptions, ignoresFiles: ignoresFilesOptions = [".gitignore"], typescript: typeScriptOptions = isPackageExists("typescript"), unocss: unoCSSOptions = isPackageExists("unocss"), tailwind: tailwindOptions = isPackageExists("tailwindcss"), vue: vueOptions = VuePackages.some((i) => isPackageExists(i)), react: reactOptions = ReactPackages.some((i) => isPackageExists(i)), test: testOptions = true, jsx: jsxOptions = true, functional: functionalOptions = true, jsonc: jsoncOptions = false, yaml: yamlOptions = false, toml: tomlOptions = false, markdown: markdownOptions = false, formatters: formattersOptions = true, mode, projectRoot, } = options;
3627
+ Boolean(process.env["NVIM"])), ignores: ignoresOptions, ignoresFiles: ignoresFilesOptions = [".gitignore"], typescript: typeScriptOptions = isPackageExists("typescript"), unocss: unoCSSOptions = isPackageExists("unocss"), tailwind: tailwindOptions = isPackageExists("tailwindcss"), vue: vueOptions = VuePackages.some((i) => isPackageExists(i)), react: reactOptions = ReactPackages.some((i) => isPackageExists(i)), test: testOptions = true, jsx: jsxOptions = true, functional: functionalOptions = true, jsonc: jsoncOptions = false, yaml: yamlOptions = false, toml: tomlOptions = false, markdown: markdownOptions = false, formatters: formattersOptions = true, sonar: sonarOptions = true, mode, projectRoot, } = options;
3628
3628
  const stylisticOptions = options.stylistic === false
3629
3629
  ? false
3630
3630
  : typeof options.stylistic === "object"
@@ -3689,10 +3689,13 @@ async function rsEslint(options, ...userConfigs) {
3689
3689
  typescript: hasTypeScript,
3690
3690
  }), jsdoc({
3691
3691
  stylistic: stylisticOptions,
3692
- }), promise(), regexp(), sonar(functionalConfigOptions), comments(), unicorn(), node());
3692
+ }), promise(), regexp(), comments(), unicorn(), node());
3693
3693
  if (vueOptions !== false) {
3694
3694
  componentExts.push("vue");
3695
3695
  }
3696
+ if (sonarOptions) {
3697
+ m_configs.push(sonar(functionalConfigOptions));
3698
+ }
3696
3699
  if (jsxOptions) {
3697
3700
  m_configs.push(jsx());
3698
3701
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"
@@ -59,8 +59,8 @@
59
59
  "local-pkg": "^0.5.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@commitlint/cli": "19.4.0",
63
- "@commitlint/config-conventional": "19.2.2",
62
+ "@commitlint/cli": "19.5.0",
63
+ "@commitlint/config-conventional": "19.5.0",
64
64
  "@cspell/dict-cryptocurrencies": "5.0.0",
65
65
  "@eslint-react/eslint-plugin": "1.9.1",
66
66
  "@eslint/compat": "1.1.1",
@@ -68,22 +68,23 @@
68
68
  "@semantic-release/changelog": "6.0.3",
69
69
  "@semantic-release/commit-analyzer": "13.0.0",
70
70
  "@semantic-release/git": "10.0.1",
71
- "@semantic-release/github": "10.1.4",
71
+ "@semantic-release/github": "11.0.0",
72
72
  "@semantic-release/npm": "12.0.1",
73
73
  "@semantic-release/release-notes-generator": "14.0.1",
74
- "@stylistic/eslint-plugin": "2.6.2",
75
- "@stylistic/eslint-plugin-migrate": "2.6.2",
74
+ "@stylistic/eslint-plugin": "2.8.0",
75
+ "@stylistic/eslint-plugin-migrate": "2.8.0",
76
76
  "@types/eslint": "9.6.0",
77
77
  "@types/node": "22.2.0",
78
- "@typescript-eslint/eslint-plugin": "8.0.1",
79
- "@typescript-eslint/parser": "8.0.1",
80
- "@typescript-eslint/utils": "8.0.1",
81
- "@unocss/eslint-plugin": "0.61.9",
78
+ "@typescript-eslint/eslint-plugin": "8.8.0",
79
+ "@typescript-eslint/parser": "8.8.0",
80
+ "@typescript-eslint/utils": "8.8.0",
81
+ "@unocss/eslint-plugin": "0.63.1",
82
+ "@vitest/eslint-plugin": "1.0.1",
82
83
  "commitizen": "4.3.0",
83
- "cspell": "8.13.2",
84
+ "cspell": "8.14.4",
84
85
  "cz-conventional-changelog": "3.3.0",
85
86
  "deassert": "1.1.0",
86
- "eslint": "9.9.0",
87
+ "eslint": "9.11.1",
87
88
  "eslint-config-prettier": "9.1.0",
88
89
  "eslint-flat-config-utils": "0.3.0",
89
90
  "eslint-formatting-reporter": "0.0.0",
@@ -93,7 +94,7 @@
93
94
  "eslint-plugin-format": "0.1.2",
94
95
  "eslint-plugin-functional": "7.0.1",
95
96
  "eslint-plugin-i18next": "6.0.9",
96
- "eslint-plugin-import-x": "3.1.0",
97
+ "eslint-plugin-import-x": "4.1.1",
97
98
  "eslint-plugin-jsdoc": "50.0.0",
98
99
  "eslint-plugin-jsonc": "2.16.0",
99
100
  "eslint-plugin-markdown": "5.1.0",
@@ -106,17 +107,16 @@
106
107
  "eslint-plugin-react-refresh": "0.4.9",
107
108
  "eslint-plugin-readable-tailwind": "1.6.0",
108
109
  "eslint-plugin-regexp": "2.6.0",
109
- "eslint-plugin-sonarjs": "1.0.4",
110
+ "eslint-plugin-sonarjs": "2.0.2",
110
111
  "eslint-plugin-tailwindcss": "3.17.4",
111
112
  "eslint-plugin-toml": "0.11.1",
112
113
  "eslint-plugin-unicorn": "55.0.0",
113
- "eslint-plugin-vitest": "0.5.4",
114
114
  "eslint-plugin-vue": "9.27.0",
115
115
  "eslint-plugin-yml": "1.14.0",
116
116
  "eslint-processor-vue-blocks": "0.1.2",
117
117
  "eslint-typegen": "0.3.0",
118
118
  "husky": "9.1.4",
119
- "jiti": "1.21.6",
119
+ "jiti": "2.1.0",
120
120
  "jsonc-eslint-parser": "2.4.0",
121
121
  "knip": "5.27.2",
122
122
  "lint-staged": "15.2.8",
@@ -124,9 +124,9 @@
124
124
  "markdownlint-cli": "0.41.0",
125
125
  "prettier": "3.3.3",
126
126
  "rimraf": "6.0.1",
127
- "rollup": "4.20.0",
127
+ "rollup": "4.22.4",
128
128
  "rollup-plugin-ts": "3.4.5",
129
- "semantic-release": "24.0.0",
129
+ "semantic-release": "24.1.2",
130
130
  "sort-package-json": "2.10.0",
131
131
  "toml-eslint-parser": "0.10.0",
132
132
  "tsc-files": "1.1.4",
@@ -141,6 +141,7 @@
141
141
  "@typescript-eslint/parser": "*",
142
142
  "@typescript-eslint/utils": "*",
143
143
  "@unocss/eslint-plugin": "*",
144
+ "@vitest/eslint-plugin": "*",
144
145
  "eslint": "*",
145
146
  "eslint-config-prettier": "*",
146
147
  "eslint-flat-config-utils": "*",
@@ -165,7 +166,6 @@
165
166
  "eslint-plugin-tailwindcss": "*",
166
167
  "eslint-plugin-toml": "*",
167
168
  "eslint-plugin-unicorn": "*",
168
- "eslint-plugin-vitest": "*",
169
169
  "eslint-plugin-vue": "*",
170
170
  "eslint-plugin-yml": "*",
171
171
  "eslint-processor-vue-blocks": "*",
@@ -195,6 +195,9 @@
195
195
  "@unocss/eslint-plugin": {
196
196
  "optional": true
197
197
  },
198
+ "@vitest/eslint-plugin": {
199
+ "optional": true
200
+ },
198
201
  "eslint-config-prettier": {
199
202
  "optional": true
200
203
  },
@@ -273,9 +276,6 @@
273
276
  "eslint-plugin-unicorn": {
274
277
  "optional": true
275
278
  },
276
- "eslint-plugin-vitest": {
277
- "optional": true
278
- },
279
279
  "eslint-plugin-vue": {
280
280
  "optional": true
281
281
  },