https://github.com/borgar/eslint-config
This is my eslint-config. There are many like it, but this one is mine.
https://github.com/borgar/eslint-config
Last synced: 4 months ago
JSON representation
This is my eslint-config. There are many like it, but this one is mine.
- Host: GitHub
- URL: https://github.com/borgar/eslint-config
- Owner: borgar
- License: mit
- Created: 2018-05-02T20:18:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-10-27T10:29:59.000Z (7 months ago)
- Last Synced: 2025-10-27T12:25:55.656Z (7 months ago)
- Language: TypeScript
- Size: 398 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @borgar/eslint-config
I have opinions on how my code should look. This is a capture of those.
Look at the [example.js](./example.js) to get a feel for what the code looks like.
## Installing it
Pull it into your package like this:
npm install --save-dev eslint @eslint/js globals typescript-eslint @borgar/eslint-config
Then add an eslint.config.js file:
```js
import borgarLint from '@borgar/eslint-config';
import eslint from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
files: [
'**/*.js',
'**/*.ts',
'**/*.mjs'
],
ignores: [
'dist/*'
],
languageOptions: {
globals: { ...globals.browser },
parserOptions: { projectService: { allowDefaultProject: [] } }
}
},
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
tseslint.configs.stylisticTypeChecked,
borgarLint.config.recommended,
borgarLint.config.stylistic({
commaDangle: true,
singleBlocks: true,
lineLength: 120
}),
);
```