Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deseteral/eslint-config

🔧 Customized Airbnb ESLint configuration for JavaScript and TypeScript projects
https://github.com/deseteral/eslint-config

eslint eslint-config hacktoberfest personal

Last synced: 5 days ago
JSON representation

🔧 Customized Airbnb ESLint configuration for JavaScript and TypeScript projects

Awesome Lists containing this project

README

        

# Deseteral ESLint config

> Customized Airbnb ESLint configuration for JavaScript and TypeScript projects

## Usage
First you gotta install it:
```sh
npm i --save-dev eslint @deseteral/eslint-config
```

Then you gotta setup your `.eslintrc` to extend that config:
```json
{
"extends": "@deseteral/eslint-config"
}
```

...or if you're using TypeScript:
```json
{
"extends": "@deseteral/eslint-config/typescript"
}
```

The last thing you have to do is put linting script in your project's `package.json`:
```json
"scripts": {
"lint": "eslint src --ext js,jsx,ts,tsx"
}
```

## Changelog

### [8.0.0] - 2023-11-08
#### Changed
- Upgraded dependencies.

### [7.0.0] - 2023-01-13
#### Changed
- Upgraded ESLint rules dependencies.

### [6.1.1] - 2023-01-13
#### Fixed
- Upgraded dependencies.

### [6.1.0] - 2022-12-31
#### Changed
- Disabled `no-dupe-class-members` because it's handled by TypeScript.

### [6.0.3] - 2022-05-24
#### Fixed
- Reverted changes from last version.

### [6.0.2] - 2022-05-24
#### Fixed
- Replaced `indent` with it's TypeScript equivalent.

### [6.0.1] - 2022-04-09
#### Fixed
- Bad config for `import/no-default-export`.
- Added `function-paren-newline` rule.

### [6.0.0] - 2022-04-09
#### Changed
- Upgraded deps. ESLint 8 is now minimum required version.
- Removed disabling `dot-notation` rule.
- Replaced `import/prefer-default-export` with `import/no-default-export` rule.

### [5.1.0] - 2021-10-31
#### Changed
- Turned off `react/require-default-props'` rule for TypeScript

### [5.0.1] - 2021-10-29
#### Fixed
- Migrated package-lock to version 2

### [5.0.0] - 2021-05-23
#### Changed
- Added `type-annotation-spacing` rule for TypeScript

### [4.1.0] - 2021-05-04
#### Changed
- Upgraded deps

### [4.0.0] - 2021-03-15
#### Changed
- Upgraded ESLint

### [3.0.3] - 2021-03-15
#### Fixed
- Fixed false-positive `no-shadow` when defining enums in TypeScript

### [3.0.2] - 2020-10-06
#### Fixed
- Fixed false-positive `no-use-before-define` when using TypeScript

### [3.0.1] - 2020-10-04
#### Fixed
- Fixed false-positive `no-unused-expressions` when using optional call expressions in TypeScript

### [3.0.0] - 2020-10-03
#### Changed
- Upgraded ESLint version
- Upgraded Airbnb config
- Enabled rules of Hooks
- Allowed using `_id` as variable name (for MongoDB `ObjectID` representation)
#### Fixed
- Fixed false-positive `Cannot read property 'map' of undefined` errors for TypeScript

### [2.0.1] - 2019-12-31
#### Fixed
- Disabled `import/extensions` for TypeScript projects

### [2.0.0] - 2019-12-31
#### Changed
- Upgraded ESLint version
- Upgraded Airbnb config
- Enabled TypeScript extensions for `import/extensions` rule

### [1.3.1] - 2019-05-08
#### Fixed
- Babel parser is now in dependencies not dev dependencies.

### [1.3.0] - 2019-05-08
#### Changed
- ESLint is now using Babel as its code parser.

### [1.2.0] - 2019-04-03
#### Added
- Rule specifing use of operator linebreak.

### [1.1.0] - 2019-03-10
#### Added
- JSX is now allowed in files with `.tsx` extension.

### [1.0.0] - 2019-02-24
- Initial release.

## License
This project is licensed under the [MIT license](LICENSE).