eslint-config
This package includes the shareable ESLint configuration used by Digital Arts Network New Zealand.
Installation
npm i --save-dev eslint prettier @dan-nz/eslint-config
Usage
Create an .eslintrc.js
file with the following contents:
Vanilla JavaScript
module.exports = {
'extends': '@dan-nz/eslint-config'
}
React
module.exports = {
'extends': '@dan-nz/eslint-config/react'
}