allow private class members to be marked with underscore
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Hocker 2021-01-21 21:18:32 +01:00
parent 2ceb51e8f8
commit 11243f7c3b
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ module.exports = {
'block-spacing': ['error', 'always'], 'block-spacing': ['error', 'always'],
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }], 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
camelcase: 'off', camelcase: 'off',
'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]+)$', { onlyDeclarations: true }], 'id-match': ['error', '^([_a-z][a-z0-9_]*|[A-Z][a-zA-Z]+)$', { onlyDeclarations: true }],
'comma-dangle': ['error', 'never'], 'comma-dangle': ['error', 'never'],
'comma-spacing': 'error', 'comma-spacing': 'error',
'comma-style': 'error', 'comma-style': 'error',
@ -222,7 +222,7 @@ module.exports = {
'no-underscore-dangle': ['error', { 'no-underscore-dangle': ['error', {
allowAfterThis: true, allowAfterThis: true,
allowAfterSuper: true, allowAfterSuper: true,
enforceInMethodNames: true enforceInMethodNames: false
}], }],
'no-unneeded-ternary': 'error', 'no-unneeded-ternary': 'error',
'no-whitespace-before-property': 'error', 'no-whitespace-before-property': 'error',

View File

@ -1,6 +1,6 @@
{ {
"name": "@sapphirecode/eslint-config", "name": "@sapphirecode/eslint-config",
"version": "2.1.21", "version": "2.1.22",
"description": "scode eslint standard configuration", "description": "scode eslint standard configuration",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {