@intouchg/eslint-config
v0.7.0
Published
ESLint configuration for the Intouch Design System
Downloads
11
Readme
@intouchg/eslint-config
ESLint configuration for the Intouch Design System
Getting Started
This ESLint configuration is automatically included in the Intouch Design System app boilerplate @intouchg/starter.
To use in your own custom configuration, install then extend this package in your eslint config.
Install dependencies
Dependencies to lint JavaScript:
// package.json
{
"devDependencies": {
"@babel/eslint-parser": "7.12.1",
"@babel/eslint-plugin": "7.11.5",
"@intouchg/eslint-config": "latest",
"eslint": "7.19.0",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4.2.0",
}
}
or
Dependencies to link JavaScript and TypeScript:
// package.json
{
"devDependencies": {
"@babel/eslint-parser": "7.12.1",
"@babel/eslint-plugin": "7.11.5",
"@intouchg/eslint-config": "latest",
"@typescript-eslint/eslint-plugin": "4.14.2",
"@typescript-eslint/parser": "4.14.2",
"eslint": "7.19.0",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4.2.0",
"typescript": "4.1.3"
}
}
Configure eslint
// .eslintrc
{
"extends": [
"@intouchg/eslint-config"
]
}
or
// .eslintrc.js
module.exports = {
extends: [ require.resolve('@intouchg/eslint-config') ],
}