diff --git a/index.js b/index.js index 91a267a..cac41bc 100644 --- a/index.js +++ b/index.js @@ -86,7 +86,7 @@ module.exports = { 'format': ['PascalCase'] }, { - 'selector': 'objectLiteralProperty', + 'selector': ['objectLiteralProperty', 'objectLiteralMethod'], 'format': null }, { diff --git a/package.json b/package.json index 3164352..26aa288 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paralenz/eslint-config-typescript-react", - "version": "1.2.0", + "version": "1.2.1", "description": "Paralenz eslint configuration for typescript and React", "main": "index.js", "scripts": { diff --git a/tests/@typescript-eslint/naming-convention/keys-in-record-param.ts b/tests/@typescript-eslint/naming-convention/keys-in-record-param.ts new file mode 100644 index 0000000..7e1cd8a --- /dev/null +++ b/tests/@typescript-eslint/naming-convention/keys-in-record-param.ts @@ -0,0 +1,5 @@ +import { fold } from 'some-where' + +fold({ + Registered: () => true +})