PrimeIntellect/SWE-rebench-V2-Filtered-Easy-Verified huggingface dataset:
Repository: platers/obsidian-linter (ts)
Issue: FR: Exclude quote rules from inline code (single backticks)
## Is Your Feature Request Related to a Problem? Please Describe.

I ran the linter across my vault and notices that it changes something like `` `'Test'` `` to `` `‘Test’` `` when smart quotes are enabled, but in this case it was referring to a string in code.

## Describe the Solution You'd Like

It would be great if there was an option to disable the option for inline code. There are a few other rules which also seem to be deactivated in code blocks but not in inline code (like removing spaces after punctuation) so it could make sense to make an option that is broader and affects more than one rule.

**Please include an example where applicable:**

```markdown
- `'string'`
```

```markdown
- `'string'`
```

## Describe Alternatives You've Considered

You could use a code block but for small snippets especially in the middle of a sentence inline code makes more sense so I ended up disabling the rules that negatively affected my inline code snippets.
Pull request description: Make `Quote Style` Ignore Inline Code
Fixes #826 

Changes Made:
- Added a test for ignoring inline code for quote style
- Added ignore type for inline code for quote style

Patch:
diff --git a/src/rules/quote-style.ts b/src/rules/quote-style.ts
index 5473d8b..c8e214b 100644
--- a/src/rules/quote-style.ts
+++ b/src/rules/quote-style.ts
@@ -211,7 +211,7 @@ export default class QuoteStyle extends RuleBuilder<QuoteStyleOptions> {
       nameKey: 'rules.quote-style.name',
       descriptionKey: 'rules.quote-style.description',
       type: RuleType.CONTENT,
-      ruleIgnoreTypes: [IgnoreTypes.code, IgnoreTypes.math, IgnoreTypes.yaml, IgnoreTypes.math, IgnoreTypes.inlineMath, IgnoreTypes.html, IgnoreTypes.templaterCommand],
+      ruleIgnoreTypes: [IgnoreTypes.code, IgnoreTypes.inlineCode, IgnoreTypes.math, IgnoreTypes.yaml, IgnoreTypes.math, IgnoreTypes.inlineMath, IgnoreTypes.html, IgnoreTypes.templaterCommand],
     });
   }
   get OptionsClass(): new () => QuoteStyleOptions {


Test patch:
diff --git a/__tests__/quote-style.test.ts b/__tests__/quote-style.test.ts
new file mode 100644
index 0000000..90d7616
--- /dev/null
+++ b/__tests__/quote-style.test.ts
@@ -0,0 +1,24 @@
+import QuoteStyle, {SingleQuoteStyles, DoubleQuoteStyles} from '../src/rules/quote-style';
+import dedent from 'ts-dedent';
+import {ruleTest} from './common';
+
+ruleTest({
+  RuleBuilderClass: QuoteStyle,
+  testCases: [
+    { // accounts for https://github.com/platers/obsidian-linter/issues/826
+      testName: 'Make sure inline code is unaffected',
+      before: dedent`
+        \`'Test'\`
+        \`"Test"\`
+      `,
+      after: dedent`
+        \`'Test'\`
+        \`"Test"\`
+      `,
+      options: {
+        singleQuoteStyle: SingleQuoteStyles.SmartQuote,
+        doubleQuoteStyle: DoubleQuoteStyles.SmartQuote,
+      },
+    },
+  ],
+});
Repository: ember-template-lint/ember-template-lint (js)
Issue: Table group rule does not account for component composition
I have run into an issue with the table group rule. I am creating a contextual table component that will look something like this:
```hbs
<table>
  {{yield
    (hash
      Body=(component "table/body")
      Head=(component "table/head")
      Header=(component "table/header")
      Row=(component "table/row")
    )
  }}
</table>
```

Consuming contexts would do something like:
```hbs
<Table as |T|>
  <T.Head>
     ...
  </T.Head>
</Table>
```
As you can see, this is meant to be invoked in such away that the invoking context will employ a table group, but of course there is nothing forcing them to do so. 

I could silence the lint error using a comment of course, but I almost think that any template that uses a `yield` as a first child of the `table` tag should not result in a lint error. Thoughts?
Pull request description: Allow yield statements as children of table
Fixes #680

Patch:
diff --git a/lib/rules/lint-table-groups.js b/lib/rules/lint-table-groups.js
index 778d70d5..59914bc7 100644
--- a/lib/rules/lint-table-groups.js
+++ b/lib/rules/lint-table-groups.js
@@ -35,6 +35,8 @@ function isAllowedTableChild(node) {
       tagNamePair = node.hash.pairs.find(pair => pair.key === 'tagName');
       if (tagNamePair) {
         return ALLOWED_TABLE_CHILDREN.includes(tagNamePair.value.value);
+      } else if (node.path.original === 'yield') {
+        return true;
       }
       break;
     case 'ElementNode':


Test patch:
diff --git a/test/unit/rules/lint-table-groups-test.js b/test/unit/rules/lint-table-groups-test.js
index 09ee0342..98fa3826 100644
--- a/test/unit/rules/lint-table-groups-test.js
+++ b/test/unit/rules/lint-table-groups-test.js
@@ -53,6 +53,7 @@ generateRuleTests({
     '<table><SomeComponent @tagName="tbody" /></table>',
     '<table><SomeComponent @tagName="thead" /></table>',
     '<table><SomeComponent @tagName="tfoot" /></table>',
+    ` <table>{{yield}}</table> `,
     '<table><!-- this --></table>',
     '<table>{{! or this }}</table>',
     '<table> </table>',
Repository: jsx-eslint/eslint-plugin-react (js)
Issue: [Bug]: `jsx-curly-brace-presence` doesn't trigger on strings containing a quote character
### Is there an existing issue for this?

- [X] I have searched the existing issues and my issue is unique
- [X] My issue appears in the command-line and not only in the text editor

### Description Overview

The curly braces are unnecessary here and should be reported by the rule. If the single quote is replaced with any other character, the rule does trigger.
```jsx
<Foo
  bar={"'"}
/>
```

### Expected Behavior

Report an error with a suggested fix to
```jsx
<Foo
  bar="'"
/>
```

### eslint-plugin-react version

4.3.1

### eslint version

8.57.0

### node version

20.14.12
Pull request description: [Fix] `jsx-curly-brace-presence`: do not trigger on strings containing a quote character
Fixes #3795

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a6aca8c4..98edcee2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
 
 ## Unreleased
 
+### Fixed
+* [`jsx-curly-brace-presence`]: do not trigger on strings containing a quote character ([#3798][] @akulsr0)
+
+[#3798]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3798
+
 ## [7.35.0] - 2024.07.19
 
 ### Added
diff --git a/lib/rules/jsx-curly-brace-presence.js b/lib/rules/jsx-curly-brace-presence.js
index 213e0ce3..cfbe3bda 100755
--- a/lib/rules/jsx-curly-brace-presence.js
+++ b/lib/rules/jsx-curly-brace-presence.js
@@ -269,7 +269,7 @@ module.exports = {
           && !containsMultilineComment(expression.value)
           && !needToEscapeCharacterForJSX(expression.raw, JSXExpressionNode) && (
           jsxUtil.isJSX(JSXExpressionNode.parent)
-          || !containsQuoteCharacters(expression.value)
+          || (!containsQuoteCharacters(expression.value) || typeof expression.value === 'string')
         )
       ) {
         reportUnnecessaryCurly(JSXExpressionNode);


Test patch:
diff --git a/tests/lib/rules/jsx-curly-brace-presence.js b/tests/lib/rules/jsx-curly-brace-presence.js
index 4c157deb..259b9538 100755
--- a/tests/lib/rules/jsx-curly-brace-presence.js
+++ b/tests/lib/rules/jsx-curly-brace-presence.js
@@ -934,6 +934,12 @@ ruleTester.run('jsx-curly-brace-presence', rule, {
       errors: [{ messageId: 'unnecessaryCurly' }],
       options: [{ props: 'never', children: 'never', propElementValues: 'never' }],
       features: ['no-ts'],
+    },
+    {
+      code: `<Foo bar={"'"} />`,
+      output: `<Foo bar="'" />`,
+      errors: [{ messageId: 'unnecessaryCurly' }],
+      options: [{ props: 'never', children: 'never', propElementValues: 'never' }],
     }
   )),
 });
Repository: yargs/yargs (js)
Issue: Question: Filename appearing next to command in help menu
Just a quick question. I am not sure if this is a NodeJS issue or what, but when I run the example yargs code, I get the following in my terminal:

```
example.js <cmd> [args]

Commands:
  example.js hello [name]  welcome ter yargs!

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]
```

In the example, the filename is not next to the command `hello` under the `Commands` section. Just wondering how to get the filename out of that section so that it looks like the one from the example:

```
  Commands:
    hello [name]  welcome ter yargs!

```
Pull request description: feat: Allow setting scriptName $0
Fixes #1010 #1048 #1065

Patch:
diff --git a/docs/api.md b/docs/api.md
index 85af995..d18d8f9 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -813,6 +813,20 @@ var yargs = require("yargs")(['--info'])
   .argv
 ```
 
+<a name="scriptName"></a>.scriptName($0)
+------------------
+
+Set the name of your script ($0). Default is the base filename executed by node (`process.argv[1]`)
+
+Example:
+
+```js
+var yargs = require("yargs")
+  .scriptName("my-script")
+  .help()
+  .argv
+```
+
 <a name="showHidden"></a>.showHidden()
 -----------------------------------------
 .showHidden([option | boolean])
diff --git a/yargs.js b/yargs.js
index da1a4bd..c2ac0fe 100644
--- a/yargs.js
+++ b/yargs.js
@@ -37,6 +37,11 @@ function Yargs (processArgs, cwd, parentRequire) {
 
   if (!cwd) cwd = process.cwd()
 
+  self.scriptName = function scriptName (scriptName) {
+    self.$0 = scriptName
+    return self
+  }
+
   self.$0 = process.argv
     .slice(0, 2)
     .map((x, i) => {


Test patch:
diff --git a/test/usage.js b/test/usage.js
index 8907e35..6cfad3e 100644
--- a/test/usage.js
+++ b/test/usage.js
@@ -1232,6 +1232,26 @@ describe('usage tests', () => {
     })
   })
 
+  describe('scriptName', () => {
+    it('should display user supplied scriptName', () => {
+      const r = checkUsage(() => yargs(['--help'])
+        .scriptName('custom')
+        .command('command')
+        .parse()
+      )
+      r.logs.join('\n').split(/\n+/).should.deep.equal([
+        'custom [command]',
+        'Commands:',
+        '  custom command',
+        'Options:',
+        '  --help     Show help                                                 [boolean]',
+        '  --version  Show version number                                       [boolean]'
+      ])
+      r.errors.should.have.length(0)
+      r.exit.should.equal(true)
+    })
+  })
+
   it('should succeed when rebase', () => {
     rebase(['home', 'chevex'].join(path.sep), ['home', 'chevex', 'foo', 'bar', 'baz'].join(path.sep)).should.equal(['foo', 'bar', 'baz'].join(path.sep))
     rebase(['home', 'chevex', 'foo', 'bar', 'baz'].join(path.sep), ['home', 'chevex'].join(path.sep)).should.equal(['..', '..', '..'].join(path.sep))