Skip to content

Commit

Permalink
fix: associate the TypeScript ESLint config with its correct file types
Browse files Browse the repository at this point in the history
  • Loading branch information
nbouvrette committed Aug 1, 2022
1 parent b9bfe1c commit 98c3cfb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
17 changes: 8 additions & 9 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,9 @@ env:
browser: true
node: true
es6: true
parser: '@typescript-eslint/parser'
parserOptions:
project:
- 'tsconfig.json'
- 'tests/jest.json'
extends:
- eslint:recommended
- plugin:import/recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:prettier/recommended
settings:
import/resolver:
Expand Down Expand Up @@ -46,6 +39,14 @@ overrides:
- '*.mts'
- '*.cts'
- '*.tsx'
parser: '@typescript-eslint/parser'
parserOptions:
project:
- 'tsconfig.json'
- 'tests/jest.json'
extends:
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
rules:
# Show errors when missing return types are missing on relevant functions
'@typescript-eslint/explicit-function-return-type':
Expand All @@ -55,7 +56,5 @@ overrides:
# Jest configurations
- files:
- tests/**
plugins:
- jest
extends:
- plugin:jest/recommended
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


## [1.1.14](https://github.com/Avansai/resolve-accept-language/compare/v1.1.13...v1.1.14) (2022-08-01)

## [1.1.13](https://github.com/Avansai/resolve-accept-language/compare/v1.1.12...v1.1.13) (2022-07-25)
Expand Down Expand Up @@ -42,4 +40,4 @@

- minor changes while keeping dev dependencies up to date ([commits](https://github.com/Avansai/resolve-accept-language/compare/v1.0.1...v1.0.59))

## 1.0.1 Initial release (2021-03-14)
## 1.0.1 Initial release (2021-03-14)
2 changes: 1 addition & 1 deletion tests/jest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"include": ["../jest.config.js", "**/*.ts"]
"include": ["**/*.ts"]
}

0 comments on commit 98c3cfb

Please sign in to comment.