5.0.0 • Published 8 months ago
@splunk/eslint-config v5.0.0
@splunk/eslint-config
This package provides extendable ESLint configuration objects. Currently, the following configs are available:
browser
- For code that runs in the browser.browser-prettier
- For browser code that is formatted by prettier.node
- For node scripts.node-prettier
- For node scripts that are automatically formatted with prettier.
Install
Install the package and its dependencies.
- Install the peer dependencies:
npm install --save-dev babel-eslint@^10 eslint@^8 eslint-config-airbnb@^19 eslint-plugin-import@^2 eslint-plugin-jsx-a11y@^6 eslint-plugin-react@^7 eslint-plugin-react-hooks@^4
- Install the package:
ESLint requires dependencies to be installed as peer dependencies. See this issue on github for more background.``` npm install --save-dev @splunk/eslint-config ```
Usage
Add the appropriate entry to your eslint configuration:
{
extends: "@splunk/eslint-config/browser"
}
Or
{
extends: "@splunk/eslint-config/browser-prettier"
}
Or
{
extends: "@splunk/eslint-config/node"
}
Or
{
extends: "@splunk/eslint-config/node-prettier"
}
5.0.0
8 months ago
4.0.0
5 years ago
3.0.0
5 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.2.0
7 years ago
1.2.0-alpha.sha-51d7adbd
7 years ago
1.2.0-alpha.sha-37cf8114
7 years ago
1.2.0-alpha.sha-846e9716
7 years ago
1.2.0-alpha.sha-3172d6ef
7 years ago
1.1.0-alpha.sha-b5fd08bd
7 years ago
1.2.0-alpha.sha-d5300bb5
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago