Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mightyiam/eslint-config-love
A TypeScript ESLint config that loves you
https://github.com/mightyiam/eslint-config-love
eslint hacktoberfest javascript typescript
Last synced: about 20 hours ago
JSON representation
A TypeScript ESLint config that loves you
- Host: GitHub
- URL: https://github.com/mightyiam/eslint-config-love
- Owner: mightyiam
- License: mit
- Created: 2017-09-27T07:42:29.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-01-16T05:22:25.000Z (7 days ago)
- Last Synced: 2025-01-17T03:55:09.335Z (7 days ago)
- Topics: eslint, hacktoberfest, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 3.5 MB
- Stars: 786
- Watchers: 6
- Forks: 69
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
eslint-config-love
![GitHub License](https://img.shields.io/github/license/mightyiam/eslint-config-love)
[![.github/workflows/ci.yaml](https://github.com/mightyiam/eslint-config-love/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/mightyiam/eslint-config-love/actions/workflows/ci.yaml)
[![npm](https://img.shields.io/npm/v/eslint-config-love)](https://www.npmjs.com/package/eslint-config-love)
![Dependent repos prior to rename](https://img.shields.io/librariesio/dependent-repos/npm/eslint-config-standard-with-typescript?label="dependent%20repos%20prior%20to%20rename")
![Dependent repos](https://img.shields.io/librariesio/dependent-repos/npm/eslint-config-love)
![GitHub Repo stars](https://img.shields.io/github/stars/mightyiam/eslint-config-love)_A TypeScript ESLint config that loves you_
## Description
This is an [ESLint shareable configuration](https://eslint.org/docs/latest/use/core-concepts#shareable-configurations).
- No framework/library-specific rules
- Safety at the cost of verbosity
- Convention over arbitrary choice
- No formatting rules (please use a formatter)
- No rules that are covered by strict TypeScript## Versioning
Any change that might require a user to make changes beyond upgrading this package is considered major.
For example, rule addition are obviously major.
It is expected that most version bumps will be major.## Example config
Here are example [ESLint configuration files](https://eslint.org/docs/latest/use/configure/configuration-files).
ECMAScript Modules:
```js
import love from 'eslint-config-love'export default [
{
...love,
files: ['**/*.js', '**/*.ts'],
},
]
```CommonJS:
```js
module.exports = (async function config() {
const { default: love } = await import('eslint-config-love')return [
{
...love,
files: ['**/*.js', '**/*.ts'],
},
]
})()
```[Learn how to configure ESLint](https://eslint.org/docs/latest/use/configure/).
Note: the config exported by this package sets `languageOptions.parserOptions.project = true`.
Read about the `project` option [here](https://typescript-eslint.io/packages/parser/#project).There are [some more `parserOptions`](https://typescript-eslint.io/packages/parser/#configuration) you may care about.
## Example command line usage:
```
$ npx eslint .
```## Disabling rules
As with any ESLint configuration, some ad-hoc [disabling of rules](https://eslint.org/docs/latest/use/configure/rules#disabling-rules) is expected.
It is further expected that the strict nature of this configuration would more frequently require the disabling of rules.Consider minimizing the scope in which rules are disabled;
prefer using `eslint-disable-*` comments when possible.
Otherwise, rules can be disabled for a subset of files using configuration.## Contributing
This project is developed primarily in remote mob programming format.
[See schedule and how to apply here](https://mobusoperandi.com/mobs/love.html).Otherwise, see [`CONTRIBUTING.md`](./CONTRIBUTING.md).
## Sponsoring
To ensure the continuity of this project, consider [sponsoring the author](https://github.com/sponsors/mightyiam).