allow private class members to be marked with underscore
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2ceb51e8f8
commit
11243f7c3b
4
index.js
4
index.js
@ -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',
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user