https://github.com/mkloubert/eslint-config-marcel
Personal ESlint settings.
https://github.com/mkloubert/eslint-config-marcel
eslint eslint-config javascript js ts tsc tslint typescript
Last synced: about 1 month ago
JSON representation
Personal ESlint settings.
- Host: GitHub
- URL: https://github.com/mkloubert/eslint-config-marcel
- Owner: mkloubert
- License: mit
- Created: 2022-04-27T23:21:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T00:28:27.000Z (about 4 years ago)
- Last Synced: 2025-10-18T03:59:20.432Z (8 months ago)
- Topics: eslint, eslint-config, javascript, js, ts, tsc, tslint, typescript
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-config-marcel
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/eslint-config-marcel)
[](https://github.com/mkloubert/eslint-config-marcel/actions?query=workflow%3APublish)
[](https://github.com/mkloubert/eslint-config-marcel/pulls)
# eslint-config-marcel
> Personal ESLint settings, which can be (used by anyone)[http://eslint.org/docs/developer-guide/shareable-configs.html].
## Installation
```
$ npm i -D eslint eslint-config-marcel
```
## Usage
Once the `eslint-config-marcel` package is installed, you can use it by specifying `marcel` in the [`extends`](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).
Create a `.eslintrc.js` file in the root folder of your project and use the following skeleton:
```js
module.exports = {
"extends": "marcel",
"rules": {
// Additional, per-project rules...
},
};
```
As optional feature, you can add script entry, called `lint` e.g., to your `package.json`:
```json
{
"scripts": {
"lint": "eslint -c .eslintrc.js --ext .ts ",
"lint:fix": "eslint --fix -c .eslintrc.js --ext .ts "
}
}
```
### Visual Studio Code
First install [ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) for [Visual Studio Code](https://code.visualstudio.com/) by [Dirk Baeumer](https://marketplace.visualstudio.com/publishers/dbaeumer).
Then setup your `settings.json` inside your `.vscode` subfolder by adding the following entries:
```json
{
"editor.formatOnSave": true,
"editor.tabSize": 2,
"eslint.quiet": false,
"eslint.workingDirectories": [""],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
```
To keep sure, to have the extension installed, create a `extensions.json` file inside the same folder, if needed, and add the following entry as recommendation:
```json
{
"recommendations": ["dbaeumer.vscode-eslint"]
}
```
## License
MIT © [Marcel Joachim Kloubert](https://github.com/mkloubert)
## Support
Or visit https://marcel.coffee