eslint-config-devextreme
v1.1.7
Published
ESLint Configurations for the DevExtreme Source Code
Readme
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
TypeScript
Usage Add the following line to your eslint.config.mjs file:
import { typescript } from 'eslint-config-devextreme'; export default [ ...typescript, ]Required packages
Extended plugins and configurations
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
jestPlugin.configs['flat/recommended']jestFormatting.configs['flat/recommended']
QUnit Tests
Usage Add the following line to your eslint.config.mjs file:
import { qunit } from 'eslint-config-devextreme'; export default [ ...qunit, ]Required packages
Extended plugins
TestCafe Tests
Usage Add the following line to your eslint.config.mjs file:
import { testcafe } from 'eslint-config-devextreme'; export default [ ...testcafe, ]
React
Usage Add the following line to your eslint.config.mjs file:
import { react } from 'eslint-config-devextreme'; export default [ ...react, settings: { react: { version: 'detect', }, }, ]Required packages
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
