From 3c4a47e297e6fb2e1bd322feca2cdcdfbf9f23e9 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 15 Mar 2021 21:27:31 +0100 Subject: [PATCH] allow config objects to contain camelCase --- index.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 81eb172..b341abc 100644 --- a/index.js +++ b/index.js @@ -53,6 +53,10 @@ module.exports = { selector: 'variable', modifiers: ['const', 'global'], format: ['UPPER_CASE', 'snake_case'] + }, + { + selector: 'objectLiteralProperty', + format: ['camelCase', 'snake_case'] } ], '@typescript-eslint/no-use-before-define': 'off', diff --git a/package.json b/package.json index f04d6b1..37982f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sapphirecode/eslint-config-ts", - "version": "1.1.32", + "version": "1.1.33", "description": "scode eslint typescript configuration", "main": "index.js", "scripts": {