Skip to content

DevExpress/eslint-config-devextreme

Repository files navigation

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.

Required packages

List of Configurations

  1. TypeScript
  2. JavaScript
  3. Spell Check
  4. Jest Tests
  5. QUnit Tests
  6. TestCafe Tests
  7. React
  8. Angular
  9. Vue

TypeScript

JavaScript

  • Usage Add the following line to your eslint.config.mjs file:

    import { javascript } from 'eslint-config-devextreme';
    export default [
      ...javascript,
    ]
  • Required packages

Spell Check

Lists words that the spell check should ignore.

  • Usage Add the following line to your eslint.config.mjs file:

    import { spellCheck } from 'eslint-config-devextreme';
    export default [
      ...spellCheck,
    ]
  • Required packages

Jest Tests

  • Usage Add the following line to your eslint.config.mjs file:

    import { jest } from 'eslint-config-devextreme';
    export default [
        ...jest.map(config => ({
          ...config,
          settings: {
            jest: {
              version: 'your jest version'
            }
          }
        })),
    ]
  • Required packages

  • Extended plugins

QUnit Tests

TestCafe Tests

  • Usage Add the following line to your eslint.config.mjs file:

    import { testcafe } from 'eslint-config-devextreme';
    export default [
      ...testcafe,
    ]

React

Angular

  • Usage Add the following line to your eslint.config.mjs file:

    import angular from 'eslint-config-devextreme';
    export default [
      ...angular,
    ]
  • Required packages

Vue

  • Usage Add the following line to your eslint.config.mjs file:

    import vue from 'eslint-config-devextreme';
    export default [
      ...vue,
    ]
  • Required packages

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 22