Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denkristoffer/eslint-config
https://github.com/denkristoffer/eslint-config
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/denkristoffer/eslint-config
- Owner: denkristoffer
- License: mit
- Created: 2019-08-21T07:28:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T05:01:39.000Z (over 1 year ago)
- Last Synced: 2023-03-11T07:27:45.803Z (over 1 year ago)
- Language: JavaScript
- Size: 954 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# @denkristoffer/eslint-config
ESLint configuration.
## Install
Install the package
```sh
npm i -D eslint @denkristoffer/eslint-config
```and add it to your `.eslintrc.js`.
### TypeScript projects
Make sure to set `parserOptions.tsconfigRootDir` as well for the rules requiring type information:
```js
module.exports = {
extends: "@denkristoffer/eslint-config",
parserOptions: {
tsconfigRootDir: __dirname,
},
root: true,
};
```### JavaScript projects
For JavaScript projects you should extend `"@denkristoffer/eslint-config/js"` instead.
```js
module.exports = {
extends: "@denkristoffer/eslint-config/js",
root: true,
};
```