Skip to content

Commit 4206e94

Browse files
committed
fix: add rules for 'camelcase'
1 parent 81fce6e commit 4206e94

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/spicy-brooms-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@frontendfixer/eslint-config-react': patch
3+
---
4+
5+
add rules for 'camelcase'

rules/base.rules.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ module.exports = {
22
rules: {
33
'arrow-body-style': ['error', 'as-needed'],
44
import: 'off',
5+
camelcase: [
6+
'warn',
7+
{
8+
ignoreDestructuring: true,
9+
ignoreImports: true,
10+
ignoreGlobals: true,
11+
},
12+
],
513
'comma-dangle': 'off',
614
'consistent-return': 'off',
715
'func-names': 'off',

0 commit comments

Comments
 (0)