eslint-config-devextreme

1.1.5 • Public • Published

ESLint Configurations for the DevExtreme Source Code

This repository collects ESLint configurations that enforce the code style used by the DevExtreme development team. These configurations are based on the Airbnb JavaScript Style Guide and cover most frequently encountered cases.

Note: Adding new configurations is possible but discouraged. Double-check that none of the existing configurations fits for your case before you add a new configuration.

List of Configurations

  1. TypeScript
  2. JavaScript
  3. Spell Check
  4. Renovation Declarations
  5. Jest Tests
  6. QUnit Tests
  7. TestCafe Tests

TypeScript

JavaScript

  • Usage Add the following line to your .eslintrc file:

    'extends': ['devextreme/javascript']
  • Extended plugins and configurations

Spell Check

Lists words that the spell check should ignore.

  • Usage Add the following line to your .eslintrc file:

    "extends": ["devextreme/spell-check"]
  • Required plugins

Renovation Declarations

  • Usage Add the following line to your .eslintrc file:

    'extends': ['devextreme/renovation-declarations']

Jest Tests

  • Usage Add the following line to your .eslintrc file:

    'extends': ['devextreme/jest']
  • Environment

    • node (Node.js global variables and scope)
    • jest (Jest global variables)
  • Required plugins

  • Extended plugins

QUnit Tests

  • Usage Add the following line to your .eslintrc file:

    'extends': ['devextreme/qunit']
  • Environment

    • qunit (QUnit global variables)
    • browser (Browser global variables)
  • Required plugins

  • Extended plugins

TestCafe Tests

  • Usage Add the following line to your .eslintrc file:

    'extends': ['devextreme/testcafe']
  • Environment

    • node (Node.js global variables and scope)
    • browser (Browser global variables)
    • jquery (jQuery global variables)
  • Additional global variables

    • test
    • fixture

Package Sidebar

Install

npm i eslint-config-devextreme

Weekly Downloads

1,899

Version

1.1.5

License

MIT

Unpacked Size

51 kB

Total Files

19

Last publish

Collaborators

  • ilyakhd
  • timbset
  • alexslavr
  • amonulloev
  • andrey.lepikhov
  • devexpress-npm-publisher
  • yuliya.smirnova
  • night-skylark
  • vladislav.volkov
  • bingorus
  • maxim.kudryavtsev