ESLint config for Digital Linguistics (DLx) projects
Rules have been updated up to the following versions (even though the peer dependencies listed are actually higher than these):
- ESLint v9.1.0
- Stylistic v1.7.2
- Install peer dependencies:
npm i -D eslint @eslint/js @stylistic/eslint-plugin-js- Install the shared DLx config:
npm install -D @digitallinguistics/eslint-config- Add an
eslint.config.jsfile with the following content:
import config from '@digitallinguistics/eslint-config'
export default [...config]Alternatively, you can import just individual portions of the stylesheet:
import problemsConfig from '@digitallinguistics/eslint-config/problems.js'
export default [problemsConfig]- Increment the version number.
npm publish