Skip to content

Commit 1859c47

Browse files
committed
fix!: typo in config
1 parent 15730a5 commit 1859c47

File tree

6 files changed

+21
-14
lines changed

6 files changed

+21
-14
lines changed

.changeset/lucky-insects-sort.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'eslint-config-sheriff': major
3+
'@sherifforg/types': major
4+
'docs-website': patch
5+
---
6+
7+
fix!: typo in config

apps/docs-website/docs/configuration.mdx

+8-8
Original file line numberDiff line numberDiff line change
@@ -330,18 +330,18 @@ module.exports = defineFlatConfig([...sheriff(sheriffOptions)]);
330330
</TabItem>
331331
</Tabs>
332332

333-
### `pathsOveriddes`
333+
### `pathsOverrides`
334334

335335
As outlined in the [criteria](./core-philosophy/criteria.md) page, Sheriff comes with sensible defaults. However, as your project grows, your team may come across the need to override some of these defaults. This option lets you do just that.
336336

337337
```ts title="API"
338-
pathsOveriddes: {
338+
pathsOverrides: {
339339
tsconfigLocation: string | string[];
340340
tests: string[];
341341
}
342342
```
343343

344-
#### `pathsOveriddes.tsconfigLocation`
344+
#### `pathsOverrides.tsconfigLocation`
345345

346346
By default, Sheriff will use the `project: true` option to locate the `tsconfig.json` of your project.
347347

@@ -365,7 +365,7 @@ const sheriffOptions = {
365365
playwright: false,
366366
jest: false,
367367
vitest: false,
368-
pathsOveriddes: {
368+
pathsOverrides: {
369369
// highlight-next-line
370370
tsconfigLocation: "./tsconfig.eslint.json",
371371
},
@@ -388,7 +388,7 @@ const sheriffOptions = {
388388
playwright: false,
389389
jest: false,
390390
vitest: false,
391-
pathsOveriddes: {
391+
pathsOverrides: {
392392
// highlight-next-line
393393
tsconfigLocation: "./tsconfig.eslint.json",
394394
},
@@ -400,7 +400,7 @@ module.exports = defineFlatConfig([...sheriff(sheriffOptions)]);
400400
</TabItem>
401401
</Tabs>
402402

403-
#### `pathsOveriddes.tests`
403+
#### `pathsOverrides.tests`
404404

405405
By default, Sheriff will apply Jest or Vitest rules only on specific files.
406406

@@ -428,7 +428,7 @@ const sheriffOptions = {
428428
playwright: false,
429429
jest: false,
430430
vitest: false,
431-
pathsOveriddes: {
431+
pathsOverrides: {
432432
// highlight-start
433433
tests: [
434434
"**/*.mySpecialName.{js,mjs,cjs,ts,mts,cts}",
@@ -456,7 +456,7 @@ const sheriffOptions = {
456456
playwright: false,
457457
jest: false,
458458
vitest: false,
459-
pathsOveriddes: {
459+
pathsOverrides: {
460460
// highlight-start
461461
tests: [
462462
"**/*.mySpecialName.{js,mjs,cjs,ts,mts,cts,jsx,tsx,mtsx,mjsx}",

apps/docs-website/docs/performance-considerations.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ Pay special attention to:
122122
- [ESLint files and ignore patterns](https://eslint.org/docs/latest/use/configure/configuration-files-new#specifying-files-and-ignores)
123123
- [Typescript include and exclude patterns](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#wide-includes-in-your-tsconfig)
124124
- [Sheriff files options](./configuration#files)
125-
- [Sheriff pathsOveriddes options](./configuration#pathsoveriddes)
125+
- [Sheriff pathsOverrides options](./configuration#pathsoverrides)
126126
- [wide-globs-in-parseroptionsproject](https://typescript-eslint.io/linting/typed-linting/monorepos/#wide-globs-in-parseroptionsproject)

packages/eslint-config-sheriff/src/getBaseConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { getBaseEslintHandPickedRules } from './handpickedRules/getBaseEslintHan
2727
import { getLanguageOptionsTypescript } from './utils/getLanguageOptionsTypescript';
2828

2929
export const getBaseConfig = (userConfigChoices: SheriffSettings) => {
30-
const customTSConfigPath = userConfigChoices.pathsOveriddes?.tsconfigLocation;
30+
const customTSConfigPath = userConfigChoices.pathsOverrides?.tsconfigLocation;
3131
const { noRestrictedSyntaxOverride } = userConfigChoices;
3232
const hasReact = Boolean(userConfigChoices.react);
3333

packages/eslint-config-sheriff/src/getExportableConfig.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const getExportableConfig = (
3030
// we insert reactConfig this way because it's an array. It's an array because it contains multiple configs, currently: react, react-hooks, react-a11y and react-refresh.
3131
exportableConfig = [
3232
...exportableConfig,
33-
...getReactConfig(userConfigChoices.pathsOveriddes?.tsconfigLocation),
33+
...getReactConfig(userConfigChoices.pathsOverrides?.tsconfigLocation),
3434
];
3535
}
3636

@@ -46,14 +46,14 @@ export const getExportableConfig = (
4646

4747
if (userConfigChoices.jest) {
4848
exportableConfig.push(
49-
getJestConfig(userConfigChoices.pathsOveriddes?.tests),
49+
getJestConfig(userConfigChoices.pathsOverrides?.tests),
5050
);
5151
}
5252

5353
if (userConfigChoices.vitest) {
5454
exportableConfig.push(
5555
//@ts-expect-error
56-
getVitestConfig(userConfigChoices.pathsOveriddes?.tests),
56+
getVitestConfig(userConfigChoices.pathsOverrides?.tests),
5757
);
5858
}
5959

packages/sheriff-types/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export interface SheriffSettings extends Partial<SheriffConfigurablePlugins> {
8989
/**
9090
* This parameter allows you to override the paths for some Sheriff settings.
9191
*/
92-
pathsOveriddes?: {
92+
pathsOverrides?: {
9393
/**
9494
* With this setting, if you have multiple tsconfig.json files in your project (like tsconfig.json, tsconfig.eslint.json, tsconfig.node.json, etc...) you can specify which config Sheriff will pickup. You can also specify a list of paths, see: https://typescript-eslint.io/linting/typed-linting/monorepos/#one-tsconfigjson-per-package-and-an-optional-one-in-the-root.
9595
*/

0 commit comments

Comments
 (0)