Skip to content

Commit

Permalink
feat: added react support
Browse files Browse the repository at this point in the history
  • Loading branch information
dworak-dev committed May 20, 2023
1 parent 9a3f77c commit 438c463
Show file tree
Hide file tree
Showing 5 changed files with 382 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository:
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.

# The name of the repository. Changing this will rename the repository
name: eslint-config-typescript
name: eslint-config-typescript-react

# A short description of the repository that will show up on GitHub
description: dworac's eslint typescript configuration with airbnb, prettier and jsdoc.
Expand All @@ -13,7 +13,7 @@ repository:
is_template: false

# A URL with more information about the repository
homepage: https://github.com/dworac/eslint-config-typescript
homepage: https://github.com/dworac/eslint-config-typescript-react

# A comma-separated list of topics to set on the repository
topics: node,typescript,template,jest,eslint,prettier,esbuild
Expand Down
30 changes: 15 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
# Changelog

## [1.2.0](https://github.com/dworac/eslint-config-typescript/compare/v1.1.0...v1.2.0) (2023-03-03)
## [1.2.0](https://github.com/dworac/eslint-config-typescript-react/compare/v1.1.0...v1.2.0) (2023-03-03)


### Features

* added peer dependencies for typescript ([cab4331](https://github.com/dworac/eslint-config-typescript/commit/cab4331020bb8efc81e910b6424d0a88118138ed))
* added peer dependencies for typescript ([cab4331](https://github.com/dworac/eslint-config-typescript-react/commit/cab4331020bb8efc81e910b6424d0a88118138ed))

## [1.1.0](https://github.com/dworac/eslint-config-typescript/compare/v1.0.5...v1.1.0) (2023-03-01)
## [1.1.0](https://github.com/dworac/eslint-config-typescript-react/compare/v1.0.5...v1.1.0) (2023-03-01)


### Features

* license and readme ([e0a0f6e](https://github.com/dworac/eslint-config-typescript/commit/e0a0f6e381b3cfc48b181c8f0e9e904b159b3daa))
* license and readme ([e0a0f6e](https://github.com/dworac/eslint-config-typescript-react/commit/e0a0f6e381b3cfc48b181c8f0e9e904b159b3daa))

## [1.0.5](https://github.com/dworac/eslint-config-typescript/compare/v1.0.4...v1.0.5) (2023-03-01)
## [1.0.5](https://github.com/dworac/eslint-config-typescript-react/compare/v1.0.4...v1.0.5) (2023-03-01)


### Bug Fixes

* usage readme ([8c19274](https://github.com/dworac/eslint-config-typescript/commit/8c19274512edc1f3001bb13a10945cd507a65a68))
* usage readme ([8c19274](https://github.com/dworac/eslint-config-typescript-react/commit/8c19274512edc1f3001bb13a10945cd507a65a68))

## [1.0.4](https://github.com/dworac/eslint-config-typescript/compare/v1.0.3...v1.0.4) (2023-03-01)
## [1.0.4](https://github.com/dworac/eslint-config-typescript-react/compare/v1.0.3...v1.0.4) (2023-03-01)


### Bug Fixes

* delete unused file ([9f224d7](https://github.com/dworac/eslint-config-typescript/commit/9f224d7622b18a2fb8e3a64524b81bcfe020580e))
* delete unused file ([9f224d7](https://github.com/dworac/eslint-config-typescript-react/commit/9f224d7622b18a2fb8e3a64524b81bcfe020580e))

## [1.0.3](https://github.com/dworac/eslint-config-typescript/compare/v1.0.2...v1.0.3) (2023-03-01)
## [1.0.3](https://github.com/dworac/eslint-config-typescript-react/compare/v1.0.2...v1.0.3) (2023-03-01)


### Bug Fixes

* release-please action ([7de2aa2](https://github.com/dworac/eslint-config-typescript/commit/7de2aa251f720a4baea1c9a581e58e8f10b70192))
* release-please action ([7de2aa2](https://github.com/dworac/eslint-config-typescript-react/commit/7de2aa251f720a4baea1c9a581e58e8f10b70192))

## [1.0.2](https://github.com/dworac/eslint-config-typescript/compare/v1.0.1...v1.0.2) (2023-03-01)
## [1.0.2](https://github.com/dworac/eslint-config-typescript-react/compare/v1.0.1...v1.0.2) (2023-03-01)


### Bug Fixes

* added release to NPM ([dcf41b8](https://github.com/dworac/eslint-config-typescript/commit/dcf41b8bc0f1d43288f9d24b5fd41c30158bab03))
* added release to NPM ([dcf41b8](https://github.com/dworac/eslint-config-typescript-react/commit/dcf41b8bc0f1d43288f9d24b5fd41c30158bab03))

## [1.0.1](https://github.com/dworac/eslint-config-typescript/compare/v1.0.0...v1.0.1) (2023-03-01)
## [1.0.1](https://github.com/dworac/eslint-config-typescript-react/compare/v1.0.0...v1.0.1) (2023-03-01)


### Bug Fixes

* publish actions trigger ([dc811cb](https://github.com/dworac/eslint-config-typescript/commit/dc811cbaea428af660bca871f1220b5498160d3a))
* publish actions trigger ([dc811cb](https://github.com/dworac/eslint-config-typescript-react/commit/dc811cbaea428af660bca871f1220b5498160d3a))

## 1.0.0 (2023-03-01)


### Features

* initial commit ([d9a0e3f](https://github.com/dworac/eslint-config-typescript/commit/d9a0e3fe2566a1d0bc06786625ec53dde8a15dd8))
* initial commit ([d9a0e3f](https://github.com/dworac/eslint-config-typescript-react/commit/d9a0e3fe2566a1d0bc06786625ec53dde8a15dd8))
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @dworac/eslint-config-typescript
# @dworac/eslint-config-typescript-react

ESLint is a popular tool that helps maintain consistent code quality across a project. The template you provided comes with a pre-configured ESLint setup that has support for TypeScript, the AirBnB preset, Prettier, and JSDoc. Let's take a closer look at each of these components and the configuration for the template.

Expand All @@ -7,15 +7,15 @@ ESLint is a popular tool that helps maintain consistent code quality across a pr
To use the ESLint configuration, you must first install the required dependencies:

```bash
yarn add -D @dworac/eslint-config-typescript
yarn add -D @dworac/eslint-config-typescript-react
```

Then, add the following to your `.eslintrc.js` file:

```javascript
{
extends: [
'@dworac/eslint-config-typescript',
'@dworac/eslint-config-typescript-react',
],
}
```
Expand Down
11 changes: 8 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
// AirBnB style guide
'airbnb-base',
'airbnb-typescript/base',
'airbnb',
'airbnb-typescript',
// Prettier
'plugin:prettier/recommended',
// JSDoc
'plugin:jsdoc/recommended',
// React
"plugin:react/recommended",
'plugin:react-hooks/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jsdoc'],
plugins: ['@typescript-eslint', 'jsdoc', 'react-refresh'],
root: true,
parserOptions: {
project: './tsconfig.json',
},
rules: {
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'jsdoc/require-file-overview': 1,
'import/no-absolute-path': 0,
'react-refresh/only-export-components': 'warn',
},
settings: {
jsdoc: {
Expand Down
Loading

0 comments on commit 438c463

Please sign in to comment.