@rebeccastevens/eslint-config 3.2.2 → 3.2.3

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 CHANGED
@@ -2054,7 +2054,7 @@ async function promise() {
2054
2054
  const [pluginPromise] = (await loadPackages(["eslint-plugin-promise"]));
2055
2055
  return [
2056
2056
  {
2057
- name: "rs:node",
2057
+ name: "rs:promise",
2058
2058
  plugins: {
2059
2059
  promise: pluginPromise,
2060
2060
  },
@@ -2228,7 +2228,7 @@ async function regexp() {
2228
2228
  ]));
2229
2229
  return [
2230
2230
  {
2231
- name: "rs:node",
2231
+ name: "rs:regexp",
2232
2232
  plugins: {
2233
2233
  regexp: {
2234
2234
  ...pluginRegexp,
@@ -2313,7 +2313,7 @@ async function sonar(options) {
2313
2313
  const [pluginSonar] = (await loadPackages(["eslint-plugin-sonarjs"]));
2314
2314
  return [
2315
2315
  {
2316
- name: "rs:node",
2316
+ name: "rs:sonar",
2317
2317
  plugins: {
2318
2318
  sonar: pluginSonar,
2319
2319
  },
@@ -2364,7 +2364,7 @@ function sortTsconfig() {
2364
2364
  return [
2365
2365
  {
2366
2366
  files: ["**/tsconfig.json", "**/tsconfig.*.json"],
2367
- name: "",
2367
+ name: "rs:sort:tsconfig",
2368
2368
  rules: {
2369
2369
  "jsonc/sort-keys": [
2370
2370
  "error",
@@ -2724,7 +2724,7 @@ async function tailwind(options) {
2724
2724
  ]));
2725
2725
  return [
2726
2726
  {
2727
- name: "js:tailwindcss",
2727
+ name: "rs:tailwindcss",
2728
2728
  plugins: {
2729
2729
  tailwind: pluginTailwindCSS,
2730
2730
  "tailwind-readable": pluginReadableTailwind,
@@ -3646,7 +3646,7 @@ async function rsEslint(options, ...userConfigs) {
3646
3646
  Boolean(process.env["VSCODE_CWD"]) ||
3647
3647
  Boolean(process.env["JETBRAINS_IDE"]) ||
3648
3648
  Boolean(process.env["VIM"]) ||
3649
- Boolean(process.env["NVIM"])), ignores: ignoresOptions, ignoresFiles: ignoresFilesOptions = [".gitignore"], typescript: typeScriptOptions = localPkg.isPackageExists("typescript"), unocss: unoCSSOptions = localPkg.isPackageExists("unocss"), tailwind: tailwindOptions = localPkg.isPackageExists("tailwindcss"), vue: vueOptions = VuePackages.some((i) => localPkg.isPackageExists(i)), react: reactOptions = ReactPackages.some((i) => localPkg.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;
3649
+ Boolean(process.env["NVIM"])), ignores: ignoresOptions, ignoresFiles: ignoresFilesOptions = [".gitignore"], typescript: typeScriptOptions = localPkg.isPackageExists("typescript"), unocss: unoCSSOptions = localPkg.isPackageExists("unocss"), tailwind: tailwindOptions = localPkg.isPackageExists("tailwindcss"), vue: vueOptions = VuePackages.some((i) => localPkg.isPackageExists(i)), react: reactOptions = ReactPackages.some((i) => localPkg.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;
3650
3650
  const stylisticOptions = options.stylistic === false
3651
3651
  ? false
3652
3652
  : typeof options.stylistic === "object"
@@ -3711,10 +3711,13 @@ async function rsEslint(options, ...userConfigs) {
3711
3711
  typescript: hasTypeScript,
3712
3712
  }), jsdoc({
3713
3713
  stylistic: stylisticOptions,
3714
- }), promise(), regexp(), sonar(functionalConfigOptions), comments(), unicorn(), node());
3714
+ }), promise(), regexp(), comments(), unicorn(), node());
3715
3715
  if (vueOptions !== false) {
3716
3716
  componentExts.push("vue");
3717
3717
  }
3718
+ if (sonarOptions) {
3719
+ m_configs.push(sonar(functionalConfigOptions));
3720
+ }
3718
3721
  if (jsxOptions) {
3719
3722
  m_configs.push(jsx());
3720
3723
  }