Английская Википедия:ESLint

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Infobox software

ESLint is a static code analysis tool for identifying problematic patterns found in JavaScript code. It was created by Nicholas C. Zakas in 2013.[1][2] 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.[3][4]

History

Both JSLint and JSHint were lacking the ability to create additional rules for code quality and coding style.[2] 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.[5][6]

In April 2016, the ESLint project joined the jQuery Foundation.[7] Later that year, jQuery Foundation merged with Dojo Foundation to become JS Foundation as a Linux Foundation project.[8][9][10]

In October 2017, the ESLint project became a "Graduate Project" of the JS Foundation through its mentorship program.[11]

As of March 2019, ESLint is part of the OpenJS Foundation, following a merge between the JS Foundation and Node.js Foundation.[12][13]

Adoption

JetBrains provides integrated support for ESLint in their WebStorm code editor, which runs the ESLint software as configured for the current text file, and displays any warnings near the offending lines of code in the editor.[14][15][16]

Since 2016, the Vue.js project provides an ESLint plugin to automatically validate use of Vue.js templates and other features.[17][18][19] Since 2018, this plugin is also promoted in the wizard for creating new Vue.js projects.[20]

In October 2018, the React project (developed by Facebook) published an official ESLint plugin to help enforce their coding rules.[21][22]

As of 2021, ESLint is the most commonly used JavaScript linter and is being downloaded over 14,000,000 times per week.[23]

References

External links

Шаблон:JavaScript