Skip to content

Commit

Permalink
Merge pull request #561 from fishbrain/rules-updatres
Browse files Browse the repository at this point in the history
Rules updatres
  • Loading branch information
lhansford authored Sep 9, 2024
2 parents 0a34390 + 749cfe0 commit 50860b9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@ export default [
];
```

### Ignoring files

You can ignore files using a glob pattern. Note that the ignores object needs to be on its own without other rules to
be applied globally to all rules.

```js
export default [
{
ignores: ['src/__generated__/**/*', 'setupTests.js'],
},
...config,
{
// Other custom rules and config
},
];
```

### Recommended Prettier settings

Add this to `package.json` to get correct config for [prettier](https://prettier.io/)
Expand Down
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.0.7",
"version": "6.0.8",
"workspaces": [
"packages/*"
],
Expand Down
2 changes: 2 additions & 0 deletions packages/base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ export const config = tseslint.config(
export const looseTypes = [
{
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
},
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.0.7",
"version": "6.0.8",
"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.0.7",
"version": "6.0.8",
"type": "module",
"exports": "./index.js",
"scripts": {
Expand Down

0 comments on commit 50860b9

Please sign in to comment.