Skip to content

Commit

Permalink
Merge pull request #602 from fishbrain/add-non-typescript-option
Browse files Browse the repository at this point in the history
Fix config
  • Loading branch information
lhansford authored Oct 28, 2024
2 parents 2e350bf + 4ba028e commit 7ff6084
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@fishbrain/eslint-config-monorepo",
"private": true,
"description": "ESLint configs for Fishbrain projects",
"version": "6.1.1",
"version": "6.1.2",
"workspaces": [
"packages/*"
],
Expand Down
5 changes: 4 additions & 1 deletion packages/base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,19 @@ const customRulesTypescript = {
};

export const configWithoutTypescript = [
...baseConfig,
eslint.configs.recommended,
{ plugins: { prettier: prettierPlugin } },
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
jestPlugin.configs['flat/recommended'],
customRules,
];

export const configWithoutJest = tseslint.config(
...baseConfig,
customRules,
customRulesTypescript,
);

export const config = tseslint.config(
...baseConfig,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
Expand Down
2 changes: 1 addition & 1 deletion packages/base/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-base",
"packageManager": "[email protected]",
"version": "6.1.1",
"version": "6.1.2",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fishbrain/eslint-config-react",
"packageManager": "[email protected]",
"version": "6.1.1",
"version": "6.1.2",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down

0 comments on commit 7ff6084

Please sign in to comment.