Skip to content
ESLint
EntityQ55452824· pop 11· linked from 70 articles

ESLint is a static code analysis tool for identifying problematic patterns found in JavaScript code. It was created by Nicholas C. Zakas in 2013. Rules in ESLint are configurable, and customized rules can be defined and loaded. ESLint covers both code quality and coding style issues. ESLint supports current standards of ECMAScript, and experimental syntax from drafts for future standards. Code using JSX or TypeScript can also be processed when a plugin or transpiler is used.

Key facts

Software.logo
128px
Software.name
ESLint
Software.title
ESLint
Software.author
Nicholas C. Zakas
Software.developer
Nicholas C. Zakas
Software.programming language
JavaScript
Software.operating system
Cross-platform
Software.language
English
Software.genre
Static code analysis
Software.license
MIT License

via Wikipedia infobox

Official website

Find and fix problems in your JavaScript code - ESLint - Pluggable JavaScript Linter

A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.

eslint.org

Link to the official site · 11,252 chars · not written by Vinony

Source code

This ensures that pnpm installs dependencies in a way that is more compatible with npm and is less likely to produce errors. You can configure rules in your eslint.config.js files as in this example: The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the configuration docs). The ESLint team provides ongoing support for the current version and six months of limited support for the previous version. Limited support includes critical bug fixes, security issues, and compatibility issues only. ESLint offers commercial support for both current and previous versions through our partners, [Tidelift][tidelift] and [HeroDevs][herodevs]. Yes, ESLint natively supports parsing JSX syntax (this must be enabled in configuration). Please note that supporting JSX syntax is not the same as supporting React. React applies specific semantics to JSX syntax that ESLint doesn't recognize. We recommend using eslint-plugin-react if you are using React and want React semantics. No, ESLint and Prettier have different jobs: ESLint is a linter (looking for problematic patterns) and Prettier is a code formatter. Using both tools is common, refer to Prettier's documentation to learn how to configure them to work well with each other. ESLint has full support for ECMAScript 3, 5, and every year from 2015 up until the most recent stage 4 specification (the default). You can set your desired ECMAScript syntax and other settings (like global variables) through configuration. ESLint's parser only officially supports the latest final ECMAScript standard. We will make changes to core rules in order to avoid crashes on stage 3 ECMAScript syntax proposals (as long as they are implemented using the correct experimental ESTree syntax). We may make changes to core rules to better work with language extensions (such as JSX, Flow, and TypeScript) on a case-by-case basis. In other cases (including if rules need to warn on more or fewer cases due to new syntax, rather than just not crashing), we recommend you use other parsers and/or rule plugins. If you are using Babel, you can use @babel/eslint-parser and @babel/eslint-plugin to use any option available in Babel. Once a language feature has been adopted into the ECMAScript standard (stage 4 according to the TC39 process), we will accept issues and pull requests related to the new feature, subject to our contributing guidelines. Until then, please use the appropriate parser and plugin(s) for your experimental feature. ESLint updates the supported Node.js versions with each major release of ESLint. At that time, ESLint's supported Node.js versions are updated to be: 1. The most recent maintenance release of Node.js 1. The lowest minor version of the Node.js LTS release that includes the features the ESLint team wants to use. 1. The Node.js Current release ESLint is also expected to work with Node.js versions released after the Node.js Current release. Refer to the Quick Start Guide for the officially supported Node.js versions for a given ESLint release. Lock files like package-lock.json are helpful for deployed applications. They ensure that dependencies are consistent between environments and across deployments. Packages like eslint that get published to the npm registry do not include lock files. npm install eslint as a user will respect version constraints in ESLint's package.json . ESLint and its dependencies will be included in the user's lock file if one exists, but ESLint's own lock file would not be used. We intentionally don't lock dependency versions so that we have the latest compatible dependency versions in development and CI that our users get when installing ESLint in a project. We have scheduled releases every two weeks on Friday or Saturday. You can follow a release issue for updates about the scheduling of any particular release. ESLint takes security seriously. We work hard to ensure that ESLint is safe f

Excerpt from the source-code README · 20,804 chars · not written by Vinony

Wikidata facts

Official website
eslint.org
Show 5 more facts
inception
2013-06-01
source code repository URL
github.com/eslint/eslint
software version identifier
10.2.1
official demo URL
eslint.org/play
social media followers
735
Sources (11)

via Wikidata · CC0

~2 min read

Article

4 sections
Contents
  • History
  • Adoption
  • References
  • External links

ESLint is a static code analysis tool for identifying problematic patterns found in JavaScript code. It was created by Nicholas C. Zakas in 2013. Rules in ESLint are configurable, and customized rules can be defined and loaded. ESLint covers both code quality and coding style issues. ESLint supports current standards of ECMAScript, and experimental syntax from drafts for future standards. Code using JSX or TypeScript can also be processed when a plugin or transpiler is used.

== History == Both JSLint and JSHint were lacking the ability to create additional rules for code quality and coding style. After contributing to JSHint, Zakas decided to create a new linting tool in June 2013, ESLint (originally called JSCheck, but renamed a month later), where all rules are configurable, and additional rules can be defined or loaded at run-time.

Gallery (2)

Available in 10 languages

via Wikidata sitelinks · CC0

Connections

Categories