Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eslint/eslint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.23.1
Choose a base ref
...
head repository: eslint/eslint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.24.0
Choose a head ref
  • 11 commits
  • 21 files changed
  • 9 contributors

Commits on Sep 14, 2022

  1. docs: fix typo (#16288)

    jjangga0214 authored Sep 14, 2022
    Configuration menu
    Copy the full SHA
    6ba269e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8cc0bbe View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. feat: array-callback-return support findLast and findLastIndex (#…

    …16314)
    
    * feat: support `Array.prototype.find(Last)Index`.
    
    Fixes #16313
    
    * docs: update `array-callback-return` docs
    sosukesuzuki authored Sep 16, 2022
    Configuration menu
    Copy the full SHA
    f02bcd9 View commit details
    Browse the repository at this point in the history
  2. feat: add rule logical-assignment-operators (#16102)

    * feat: add rule logical-assignment-operators
    Fixes #13689
    
    * docs: update rule documentation
    - State the concept of the rule clearer
    - Increase the heading level for options
    
    * chore: unify ast-utils import
    
    * fix: only check for void 0 in undefined checks
    
    * fix: always fix for the logical pattern
    
    * feat: support yoda conditions in if conditions
    
    * fix: remove parenthesis around assignment target if necessary
    
    * fix: parenthesize logical pattern if needed
    
    * fix: add semicolon for if patterns with a body if needed
    
    * fix: remove file extension from import
    
    Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
    
    * fix: check strictness of global scope instead of current scope to avoid checking for with
    
    * fix: check for mixed ?? and ||/&& operators in the fix for never
    
    * fix: check previous token for continuation problems in the if fix
    
    * feat: support else if (and fix suggest cases for if)
    
    * fix: do not remove else keyword for else if
    
    * fix: if cases also suggest based on potential getter
    
    * fix: also fix if only a single property is accessed for the if pattern
    
    * fix: do not fix logical patterns with a deeper access
    
    * fix: check whether Boolean references a global
    
    * fix: allow test conditions to access the same static property (a.b <=> a['b'])
    
    * fix: use the whole assignment operator with equals in the message and add operator for 'if' messages
    
    * docs: remove edit_link
    
    * docs: remove description from docs as it is autogenerated from rule.meta.docs.description
    
    * docs: move introductory text before rule details
    
    * docs: add missing 'logical' to rule description
    
    * docs: fix formatting for options
    
    * docs: include all logical operators for option 'never'
    
    * docs: add examples for option 'always'
    
    * docs: add examples of for the 'enforceForIfStatements' option and swap correct with incorrect sections
    
    * fix: disallow optional chaining for the logical pattern
    
    * fix: fixer does not delete parenthesis around the right operand in the assignment pattern
    
    * fix: remove multiple parenthesis around the right operand in the logical pattern
    
    * test: add data property for suggestions
    
    * docs: add missing comma in description
    
    Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
    
    * test: clean up unnecessary data, add missing data and pass missing options for test case
    
    * fix: do not allow property accesses in a computed property when checking for a single property access
    
    * test: add test cases for private identifiers
    
    Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
    DMartens and mdjermanovic authored Sep 16, 2022
    Configuration menu
    Copy the full SHA
    b0d72c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1729f9e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    504fe59 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2022

  1. Configuration menu
    Copy the full SHA
    bf7bd88 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. docs: note false positive Object.getOwnPropertyNames in prefer-refl…

    …ect (#16317)
    
    * docs: Add note to disclose inappropriate behavior
    
    Due to #16305 (comment) the falsely suggestion should be disclose to users to avoid further confusion
    
    See #16305
    
    * docs(prefer-reflect): Remove the section about `getOwnPropertyNames`
    
    Make the document clean
    
    * docs: Apply suggestions from code review
    
    Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
    
    * docs: Mark the value as string
    
    Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
    
    * docs: remove duplicated consecutive blank line
    
    Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
    
    * Update docs/src/rules/prefer-reflect.md
    
    Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
    AnnAngela and mdjermanovic authored Sep 19, 2022
    Configuration menu
    Copy the full SHA
    2c152ff View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. chore: Upgrade @humanwhocodes/config-array for perf (#16339)

    Latest version of the package includes more aggressive caching.
    
    Refs #16302
    nzakas authored Sep 22, 2022
    Configuration menu
    Copy the full SHA
    131e646 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Build: changelog update for 8.24.0

    ESLint Jenkins committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    f2cfacd View commit details
    Browse the repository at this point in the history
  2. 8.24.0

    ESLint Jenkins committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    a578780 View commit details
    Browse the repository at this point in the history
Loading