mteb/BrightProStackoverflowRetrieval huggingface dataset:
](../rules) will be
turned on. Alternatively, you can use configurations that others have created
by searching for “eslint-config” on [ npmjs.com
](https://www.npmjs.com/search?q=eslint-config) . ESLint will not lint your
code unless you extend from a shared configuration or explicitly turn rules on
in your configuration.

##  Global Install

It is also possible to install ESLint globally, rather than locally, using `
npm install eslint --global ` . However, this is not recommended, and any
plugins or shareable configs that you use must still be installed locally if
you install ESLint globally.

##  Manual Set Up

You can also manually set up ESLint in your project.

Before you begin, you must already have a ` package.json ` file. If you don’t,
make sure to run ` npm init ` or ` yarn init ` to create the file beforehand.

  1. Install the ESLint packages in your project: 
    
        npm install --save-dev eslint @eslint/js
    
    
    1  
    

  2. Add an ` eslint.config.js ` file: 
    
        # Create JavaScript configuration file
    touch eslint.config.js
    
    
    1  
    2  
    

  3. Add configuration to the ` eslint.config.js ` file. Refer to the [ Configure ESLint documentation ](configure/) to learn how to add rules, custom configurations, plugins, and more. 
    
        import js from "@eslint/js";
    
    export default [
        js.configs.recommended,
    
       {
           rules: {
               "no-unused-vars": "warn",
               "no-undef": "warn"
           }
       }
    ];
    
    
    1  
    2  
    3  
    4  
    5  
    6  
    7  
    8  
    9  
    10  
    11  
    12  
    

  4. Lint code using the ESLint CLI: 
    
        npx eslint project-dir/ file1.js
    
    
    1  
    

For more information on the available CLI options, refer to [ Command Line
Interface ](./command-line-interface) .

* * *

##  Next Steps

  * Learn about [ advanced configuration ](configure/) of ESLint. 
  * Get familiar with the [ command line options ](command-line-interface) . 
  * Explore [ ESLint integrations ](integrations) into other tools like editors, build systems, and more. 
  * Can’t find just the right rule? Make your own [ custom rule ](../extend/custom-rules) . 
  * Make ESLint even better by [ contributing ](../contribute/) . 

[ Edit this page ](

                
                    https://github.com/eslint/eslint/edit/main/docs/./src/use/getting-started.md
                
                )

##  Table of Contents

  1. Prerequisites 
  2. Quick start 
  3. Configuration 
  4. Global Install 
  5. Manual Set Up 
  6. Next Steps 

##  Social Media

  * [ ](https://twitter.com/geteslint)
  * [ ](https://github.com/eslint/eslint)
  * [ ](https://eslint.org/chat)
  * [ ](https://fosstodon.org/@eslint)

© OpenJS Foundation and ESLint contributors, [ www.openjsf.org
](https://www.openjsf.org) . Content licensed under [ MIT License
](https://github.com/eslint/eslint/blob/main/LICENSE) .

##  Theme Switcher

Light  Dark

[ Change Language ](/languages/)

Language Switcher

Selecting a language will take you to the ESLint website in that language.

Language  🇺🇸 English (US) (Latest)  🇨🇳 简体中文 (最新)
/core-rules)
    * [ Governance ](/docs/latest/contribute/governance)
    * [ Report a Security Vulnerability ](/docs/latest/contribute/report-security-vulnerability)
  * [ Maintain ESLint ](/docs/latest/maintain/)
    * [ How ESLint is Maintained ](/docs/latest/maintain/overview)
    * [ Manage Issues and Pull Requests ](/docs/latest/maintain/manage-issues)
    * [ Review Pull Requests ](/docs/latest/maintain/review-pull-requests)
    * [ Manage Releases ](/docs/latest/maintain/manage-releases)
    * [ Working Groups ](/docs/latest/maintain/working-groups)

#  Troubleshooting

This page serves as a reference for common issues working with ESLint.

  * [ ` ESLint couldn't determine the plugin … uniquely ` ](./couldnt-determine-the-plugin-uniquely)
  * [ ` ESLint couldn't find the config … to extend from ` ](./couldnt-find-the-config)
  * [ ` ESLint couldn't find the plugin … ` ](./couldnt-find-the-plugin)

Issues oftentimes can be resolved by updating the to latest versions of the `
eslint ` package and any related packages, such as for ESLint shareable
configs and plugins.

If you still can’t figure out the problem, please stop by [
https://eslint.org/chat/help ](https://eslint.org/chat/help) to chat with the
team.

[ Edit this page ](

                
                    https://github.com/eslint/eslint/edit/main/docs/./src/use/troubleshooting/index.md
                
                )

##  Social Media

  * [ ](https://twitter.com/geteslint)
  * [ ](https://github.com/eslint/eslint)
  * [ ](https://eslint.org/chat)
  * [ ](https://fosstodon.org/@eslint)

© OpenJS Foundation and ESLint contributors, [ www.openjsf.org
](https://www.openjsf.org) . Content licensed under [ MIT License
](https://github.com/eslint/eslint/blob/main/LICENSE) .

##  Theme Switcher

Light  Dark

[ Change Language ](/languages/)

Language Switcher

Selecting a language will take you to the ESLint website in that language.

Language  🇺🇸 English (US) (Latest)  🇨🇳 简体中文 (最新)
/core-rules)
    * [ Governance ](/docs/latest/contribute/governance)
    * [ Report a Security Vulnerability ](/docs/latest/contribute/report-security-vulnerability)
  * [ Maintain ESLint ](/docs/latest/maintain/)
    * [ How ESLint is Maintained ](/docs/latest/maintain/overview)
    * [ Manage Issues and Pull Requests ](/docs/latest/maintain/manage-issues)
    * [ Review Pull Requests ](/docs/latest/maintain/review-pull-requests)
    * [ Manage Releases ](/docs/latest/maintain/manage-releases)
    * [ Working Groups ](/docs/latest/maintain/working-groups)

#  Code of Conduct

ESLint welcomes contributions from everyone and adheres to the [ OpenJS
Foundation Code of Conduct ](https://eslint.org/conduct) . We kindly request
that you read over this code of conduct before contributing.

[ Edit this page ](

                
                    https://github.com/eslint/eslint/edit/main/docs/./src/contribute/code-of-conduct.md
                
                )

##  Social Media

  * [ ](https://twitter.com/geteslint)
  * [ ](https://github.com/eslint/eslint)
  * [ ](https://eslint.org/chat)
  * [ ](https://fosstodon.org/@eslint)

© OpenJS Foundation and ESLint contributors, [ www.openjsf.org
](https://www.openjsf.org) . Content licensed under [ MIT License
](https://github.com/eslint/eslint/blob/main/LICENSE) .

##  Theme Switcher

Light  Dark

[ Change Language ](/languages/)

Language Switcher

Selecting a language will take you to the ESLint website in that language.

Language  🇺🇸 English (US) (Latest)  🇨🇳 简体中文 (最新)
ts). I had a great time talking with Andrew
Pla, and...

##  [ Multiple ways to setup your CI/CD pipelines in GitHub Actions
](/Multiple-ways-to-setup-your-CI-CD-pipelines-in-GitHub-Actions/)

__ January 5, 2024  __ 22 minute read

In this post I’ll show different approaches to setting up your build and
deployment workflows with GitHub Actions, as well as some pros and cons of
each.

Enter your search term...

![Donate button image](/assets/Site/CanadianPoutine.png)

×

If you've found my blog helpful and would like to show your appreciation, buy
me a [ poutine ](https://en.wikipedia.org/wiki/Poutine) ! It will encourage me
to create more content 😁

![Poutine image](/assets/Site/CanadianPoutine.png) [ ![Donate payment button
image](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)
](https://www.paypal.com/cgi-bin/webscr?cmd=_s-
xclick&hosted_button_id=G2XLYDXFE2MNQ)

  * [ __ Twitter ](https://twitter.com/deadlydog)
  * [ __ Mastodon ](https://hachyderm.io/@deadlydog)
  * [ __ YouTube ](https://www.youtube.com/deadlydog)
  * [ __ GitHub ](https://github.com/deadlydog)
  * [ __ LinkedIn ](https://www.linkedin.com/in/1danielschroeder/)
  * [ __ Stack Overflow ](https://stackoverflow.com/users/602585/deadlydog)
  * [ __ Feed ](/feed.xml)

© 2024 Daniel Schroeder. Powered by [ Jekyll ](https://jekyllrb.com) & [
Minimal Mistakes ](https://mademistakes.com/work/minimal-mistakes-jekyll-
theme/) .

[ Mastodon ](https://hachyderm.io/@deadlydog)

This website uses cookies to ensure you get the best experience.  [ More info
](/privacy) OK
l has a Service Retirement Workbook that shows all of the
services you are using which are being retired within the next few years. This
could...

##  [ Several ways to explore your Azure resources ](/Several-ways-to-explore-
your-Azure-resources/)

__ January 19, 2024  __ 6 minute read

Here I present a few ways to explore your Azure resources, for when the
portal’s search and filter functionality is not enough.

##  [ I was the guest for the 100th episode of The PowerShell Podcast!
](/I-was-the-guest-for-the-100th-episode-of-The-PowerShell-Podcast/)

__ January 11, 2024  __ 4 minute read

I was recently invited to be a guest on The PowerShell Podcast (Podbean)
(YouTube playlist) (Apple Podcasts). I had a great time talking with Andrew
Pla, and...

##  [ Multiple ways to setup your CI/CD pipelines in GitHub Actions
](/Multiple-ways-to-setup-your-CI-CD-pipelines-in-GitHub-Actions/)

__ January 5, 2024  __ 22 minute read

In this post I’ll show different approaches to setting up your build and
deployment workflows with GitHub Actions, as well as some pros and cons of
each.

Enter your search term...

![Donate button image](/assets/Site/CanadianPoutine.png)

×

If you've found my blog helpful and would like to show your appreciation, buy
me a [ poutine ](https://en.wikipedia.org/wiki/Poutine) ! It will encourage me
to create more content 😁

![Poutine image](/assets/Site/CanadianPoutine.png) [ ![Donate payment button
image](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)
](https://www.paypal.com/cgi-bin/webscr?cmd=_s-
xclick&hosted_button_id=G2XLYDXFE2MNQ)

  * [ __ Twitter ](https://twitter.com/deadlydog)
  * [ __ Mastodon ](https://hachyderm.io/@deadlydog)
  * [ __ YouTube ](https://www.youtube.com/deadlydog)
  * [ __ GitHub ](https://github.com/deadlydog)
  * [ __ LinkedIn ](https://www.linkedin.com/in/1danielschroeder/)
  * [ __ Stack Overflow ](https://stackoverflow.com/users/602585/deadlydog)
  * [ __ Feed ](/feed.xml)

© 2024 Daniel Schroeder. Powered by [ Jekyll ](https://jekyllrb.com) & [
Minimal Mistakes ](https://mademistakes.com/work/minimal-mistakes-jekyll-
theme/) .

[ Mastodon ](https://hachyderm.io/@deadlydog)

This website uses cookies to ensure you get the best experience.  [ More info
](/privacy) OK
MockK
](https://github.com/Ninja-Squad/springmockk) which provides similar `
@MockkBean ` and ` @SpykBean ` annotations.

###  13.7. Resources

####  13.7.1. Further reading

  * [ Kotlin language reference ](https://kotlinlang.org/docs/reference/)

  * [ Kotlin Slack ](https://kotlinlang.slack.com/) (with a dedicated #spring channel) 

  * [ Stack Overflow with ` spring ` and ` kotlin ` tags ](https://stackoverflow.com/questions/tagged/spring+kotlin)

  * [ Try Kotlin in your browser ](https://try.kotlinlang.org/)

  * [ Kotlin blog ](https://blog.jetbrains.com/kotlin/)

  * [ Awesome Kotlin ](https://kotlin.link/)

  * [ Tutorial: building web applications with Spring Boot and Kotlin ](https://spring.io/guides/tutorials/spring-boot-kotlin/)

  * [ Developing Spring Boot applications with Kotlin ](https://spring.io/blog/2016/02/15/developing-spring-boot-applications-with-kotlin)

  * [ A Geospatial Messenger with Kotlin, Spring Boot and PostgreSQL ](https://spring.io/blog/2016/03/20/a-geospatial-messenger-with-kotlin-spring-boot-and-postgresql)

  * [ Introducing Kotlin support in Spring Framework 5.0 ](https://spring.io/blog/2017/01/04/introducing-kotlin-support-in-spring-framework-5-0)

  * [ Spring Framework 5 Kotlin APIs, the functional way ](https://spring.io/blog/2017/08/01/spring-framework-5-kotlin-apis-the-functional-way)

####  13.7.2. Examples

  * [ spring-boot-kotlin-demo ](https://github.com/sdeleuze/spring-boot-kotlin-demo) : regular Spring Boot + Spring Data JPA project 

  * [ mixit ](https://github.com/mixitconf/mixit) : Spring Boot 2 + WebFlux + Reactive Spring Data MongoDB 

  * [ spring-kotlin-fullstack ](https://github.com/sdeleuze/spring-kotlin-fullstack) : WebFlux Kotlin fullstack example with Kotlin2js for frontend instead of JavaScript or TypeScript 

  * [ spring-petclinic-kotlin ](https://github.com/spring-petclinic/spring-petclinic-kotlin) : Kotlin version of the Spring PetClinic Sample Application 

  * [ spring-kotlin-deepdive ](https://github.com/sdeleuze/spring-kotlin-deepdive) : a step by step migration for Boot 1.0 + Java to Boot 2.0 + Kotlin 

  * [ spring-boot-coroutines-demo ](https://github.com/sdeleuze/spring-boot-coroutines-demo) : Coroutines sample project
nts.html)

  * ` doctest  ` â Test interactive Python examples 
    * Simple Usage: Checking Examples in Docstrings 
    * Simple Usage: Checking Examples in a Text File 
    * How It Works 
      * Which Docstrings Are Examined? 
      * How are Docstring Examples Recognized? 
      * Whatâs the Execution Context? 
      * What About Exceptions? 
      * Option Flags 
      * Directives 
      * Warnings 
    * Basic API 
    * Unittest API 
    * Advanced API 
      * DocTest Objects 
      * Example Objects 
      * DocTestFinder objects 
      * DocTestParser objects 
      * DocTestRunner objects 
      * OutputChecker objects 
    * Debugging 
    * Soapbox 

####  Previous topic

[ Python Development Mode ](devmode.html "previous chapter")

####  Next topic

[ ` unittest  ` â Unit testing framework ](unittest.html "next chapter")

###  This Page

  * [ Report a Bug ](../bugs.html)
  * [ Show Source ](https://github.com/python/cpython/blob/main/Doc/library/doctest.rst)

Â«

###  Navigation

  * [ index ](../genindex.html "General Index")
  * [ modules ](../py-modindex.html "Python Module Index") | 
  * [ next ](unittest.html "unittest â Unit testing framework") | 
  * [ previous ](devmode.html "Python Development Mode") | 
  * ![Python logo](../_static/py.svg)
  * [ Python ](https://www.python.org/) » 
  *   *   * [ 3.12.3 Documentation ](../index.html) » 
  * [ The Python Standard Library ](index.html) » 
  * [ Development Tools ](development.html) » 
  * [ ` doctest  ` â Test interactive Python examples ]()
  * | 
  * Theme  Auto  Light  Dark  | 

© [ Copyright ](../copyright.html) 2001-2024, Python Software Foundation.  
This page is licensed under the Python Software Foundation License Version 2.  
Examples, recipes, and other code in the documentation are additionally
licensed under the Zero Clause BSD License.  
See [ History and License ](/license.html) for more information.  
  
The Python Software Foundation is a non-profit corporation. [ Please donate.
](https://www.python.org/psf/donations/)  
  
Last updated on Apr 28, 2024 (09:58 UTC). [ Found a bug ](/bugs.html) ?  
Created using [ Sphinx ](https://www.sphinx-doc.org/) 7.2.6.
...
    StopIteration
    

###  [ Table of Contents ](../contents.html)

  * ` unittest.mock  ` â mock object library 
    * Quick Guide 
    * The Mock Class 
      * Calling 
      * Deleting Attributes 
      * Mock names and the name attribute 
      * Attaching Mocks as Attributes 
    * The patchers 
      * patch 
      * patch.object 
      * patch.dict 
      * patch.multiple 
      * patch methods: start and stop 
      * patch builtins 
      * TEST_PREFIX 
      * Nesting Patch Decorators 
      * Where to patch 
      * Patching Descriptors and Proxy Objects 
    * MagicMock and magic method support 
      * Mocking Magic Methods 
      * Magic Mock 
    * Helpers 
      * sentinel 
      * DEFAULT 
      * call 
      * create_autospec 
      * ANY 
      * FILTER_DIR 
      * mock_open 
      * Autospeccing 
      * Sealing mocks 
    * Order of precedence of ` side_effect  ` , ` return_value  ` and _wraps_

####  Previous topic

[ ` unittest  ` â Unit testing framework ](unittest.html "previous chapter")

####  Next topic

[ ` unittest.mock  ` â getting started ](unittest.mock-examples.html "next
chapter")

###  This Page

  * [ Report a Bug ](../bugs.html)
  * [ Show Source ](https://github.com/python/cpython/blob/main/Doc/library/unittest.mock.rst)

Â«

###  Navigation

  * [ index ](../genindex.html "General Index")
  * [ modules ](../py-modindex.html "Python Module Index") | 
  * [ next ](unittest.mock-examples.html "unittest.mock â getting started") | 
  * [ previous ](unittest.html "unittest â Unit testing framework") | 
  * ![Python logo](../_static/py.svg)
  * [ Python ](https://www.python.org/) » 
  *   *   * [ 3.12.3 Documentation ](../index.html) » 
  * [ The Python Standard Library ](index.html) » 
  * [ Development Tools ](development.html) » 
  * [ ` unittest.mock  ` â mock object library ]()
  * | 
  * Theme  Auto  Light  Dark  | 

© [ Copyright ](../copyright.html) 2001-2024, Python Software Foundation.  
This page is licensed under the Python Software Foundation License Version 2.  
Examples, recipes, and other code in the documentation are additionally
licensed under the Zero Clause BSD License.  
See [ History and License ](/license.html) for more information.  
  
The Python Software Foundation is a non-profit corporation. [ Please donate.
](https://www.python.org/psf/donations/)  
  
Last updated on Apr 28, 2024 (09:58 UTC). [ Found a bug ](/bugs.html) ?  
Created using [ Sphinx ](https://www.sphinx-doc.org/) 7.2.6.
##  ` lib2to3  ` â 2to3âs library  Â¶

**Source code:** [ Lib/lib2to3/
](https://github.com/python/cpython/tree/3.12/Lib/lib2to3/)

* * *

Deprecated since version 3.11, will be removed in version 3.13:  Python 3.9
switched to a PEG parser (see  [ **PEP 617**
](https://peps.python.org/pep-0617/) ) while lib2to3 is using a less flexible
LL(1) parser. Python 3.10 includes new language syntax that is not parsable by
lib2to3âs LL(1) parser (see  [ **PEP 634**
](https://peps.python.org/pep-0634/) ). The ` lib2to3  ` module was marked
pending for deprecation in Python 3.9 (raising [ ` PendingDeprecationWarning
` ](exceptions.html#PendingDeprecationWarning "PendingDeprecationWarning") on
import) and fully deprecated in Python 3.11 (raising [ ` DeprecationWarning  `
](exceptions.html#DeprecationWarning "DeprecationWarning") ). It will be
removed from the standard library in Python 3.13. Consider third-party
alternatives such as [ LibCST ](https://libcst.readthedocs.io/) or [ parso
](https://parso.readthedocs.io/) .

Note

The  ` lib2to3  ` API should be considered unstable and may change drastically
in the future.

###  [ Table of Contents ](../contents.html)

  * 2to3 â Automated Python 2 to 3 code translation 
    * Using 2to3 
    * Fixers 
    * ` lib2to3  ` â 2to3âs library 

####  Previous topic

[ ` unittest.mock  ` â getting started ](unittest.mock-examples.html
"previous chapter")

####  Next topic

[ ` test  ` â Regression tests package for Python ](test.html "next
chapter")

###  This Page

  * [ Report a Bug ](../bugs.html)
  * [ Show Source ](https://github.com/python/cpython/blob/main/Doc/library/2to3.rst)

Â«

###  Navigation

  * [ index ](../genindex.html "General Index")
  * [ modules ](../py-modindex.html "Python Module Index") | 
  * [ next ](test.html "test â Regression tests package for Python") | 
  * [ previous ](unittest.mock-examples.html "unittest.mock â getting started") | 
  * ![Python logo](../_static/py.svg)
  * [ Python ](https://www.python.org/) » 
  *   *   * [ 3.12.3 Documentation ](../index.html) » 
  * [ The Python Standard Library ](index.html) » 
  * [ Development Tools ](development.html) » 
  * [ 2to3 â Automated Python 2 to 3 code translation ]()
  * | 
  * Theme  Auto  Light  Dark  | 

© [ Copyright ](../copyright.html) 2001-2024, Python Software Foundation.  
This page is licensed under the Python Software Foundation License Version 2.  
Examples, recipes, and other code in the documentation are additionally
licensed under the Zero Clause BSD License.  
See [ History and License ](/license.html) for more information.  
  
The Python Software Foundation is a non-profit corporation. [ Please donate.
](https://www.python.org/psf/donations/)  
  
Last updated on Apr 28, 2024 (09:58 UTC). [ Found a bug ](/bugs.html) ?  
Created using [ Sphinx ](https://www.sphinx-doc.org/) 7.2.6.
####  Next topic

[ ` pydoc  ` â Documentation generator and online help system ](pydoc.html
"next chapter")

###  This Page

  * [ Report a Bug ](../bugs.html)
  * [ Show Source ](https://github.com/python/cpython/blob/main/Doc/library/typing.rst)

Â«

###  Navigation

  * [ index ](../genindex.html "General Index")
  * [ modules ](../py-modindex.html "Python Module Index") | 
  * [ next ](pydoc.html "pydoc â Documentation generator and online help system") | 
  * [ previous ](development.html "Development Tools") | 
  * ![Python logo](../_static/py.svg)
  * [ Python ](https://www.python.org/) » 
  *   *   * [ 3.12.3 Documentation ](../index.html) » 
  * [ The Python Standard Library ](index.html) » 
  * [ Development Tools ](development.html) » 
  * [ ` typing  ` â Support for type hints ]()
  * | 
  * Theme  Auto  Light  Dark  | 

© [ Copyright ](../copyright.html) 2001-2024, Python Software Foundation.  
This page is licensed under the Python Software Foundation License Version 2.  
Examples, recipes, and other code in the documentation are additionally
licensed under the Zero Clause BSD License.  
See [ History and License ](/license.html) for more information.  
  
The Python Software Foundation is a non-profit corporation. [ Please donate.
](https://www.python.org/psf/donations/)  
  
Last updated on Apr 28, 2024 (09:58 UTC). [ Found a bug ](/bugs.html) ?  
Created using [ Sphinx ](https://www.sphinx-doc.org/) 7.2.6.