From e6234691849fb75ea1c6350b9d63136e7e5aa75e Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Tue, 2 Feb 2021 14:35:53 +0100 Subject: [PATCH] allow any casing in object literals --- index.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4013b83..2d5ac0c 100644 --- a/index.js +++ b/index.js @@ -43,6 +43,10 @@ module.exports = { modifiers: ['private'], format: ['snake_case'], leadingUnderscore: 'require' + }, + { + selector: 'objectLiteralProperty', + format: ['camelCase', 'snake_case', 'PascalCase'] } ], '@typescript-eslint/no-use-before-define': 'off', diff --git a/package.json b/package.json index d7cda06..006ba5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sapphirecode/eslint-config-ts", - "version": "1.1.27", + "version": "1.1.28", "description": "scode eslint typescript configuration", "main": "index.js", "scripts": {