diff --git a/README.md b/README.md index c4268c9..d8c6180 100644 --- a/README.md +++ b/README.md @@ -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/) diff --git a/package.json b/package.json index 89b793e..dcd21d5 100644 --- a/package.json +++ b/package.json @@ -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/*" ], diff --git a/packages/base/index.js b/packages/base/index.js index dce7c39..dd359bc 100644 --- a/packages/base/index.js +++ b/packages/base/index.js @@ -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', }, diff --git a/packages/base/package.json b/packages/base/package.json index d5717aa..dcd75ca 100644 --- a/packages/base/package.json +++ b/packages/base/package.json @@ -1,7 +1,7 @@ { "name": "@fishbrain/eslint-config-base", "packageManager": "yarn@4.4.1", - "version": "6.0.7", + "version": "6.0.8", "type": "module", "exports": "./index.js", "scripts": { diff --git a/packages/react/package.json b/packages/react/package.json index 67e7cd4..25ba14a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@fishbrain/eslint-config-react", "packageManager": "yarn@4.4.1", - "version": "6.0.7", + "version": "6.0.8", "type": "module", "exports": "./index.js", "scripts": {