From 30eb7f5c353119cfadc4463166c84dd714c055a9 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 11 Mar 2021 20:56:14 +0100 Subject: [PATCH] fix naming convention --- index.js | 10 ++++++++-- package.json | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 2d5ac0c..f5aff0a 100644 --- a/index.js +++ b/index.js @@ -45,8 +45,14 @@ module.exports = { leadingUnderscore: 'require' }, { - selector: 'objectLiteralProperty', - format: ['camelCase', 'snake_case', 'PascalCase'] + selector: 'variable', + modifier: 'destructured', + format: null + }, + { + selector: 'variable', + modifier: ['const', 'global'], + format: ['UPPEER_CASE', 'snake_case'] } ], '@typescript-eslint/no-use-before-define': 'off', diff --git a/package.json b/package.json index 006ba5d..acb7ef9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sapphirecode/eslint-config-ts", - "version": "1.1.28", + "version": "1.1.29", "description": "scode eslint typescript configuration", "main": "index.js", "scripts": {