Skip to content

Commit 4167969

Browse files
authored
feat: Move no-leading-uppercase-api-name to recommended preset (#21)
1 parent e221f37 commit 4167969

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

base.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ module.exports = {
1515
// LWC lifecycle hooks validation
1616
'@lwc/lwc/no-deprecated': 'error',
1717

18-
// LWC public property syntax validation
19-
'@lwc/lwc/no-leading-uppercase-api-name': 'warn',
20-
2118
// LWC decorator validation
2219
'@lwc/lwc/valid-api': 'error',
2320
'@lwc/lwc/valid-track': 'error',

recommended.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ module.exports = {
103103

104104
// LWC specific rules
105105
'@lwc/lwc/no-async-operation': 'error',
106-
'@lwc/lwc/no-inner-html': 'error',
107106
'@lwc/lwc/no-document-query': 'error',
107+
'@lwc/lwc/no-inner-html': 'error',
108+
'@lwc/lwc/no-leading-uppercase-api-name': 'error',
108109

109110
// Disable unresolved import rule since it doesn't work well with the way the LWC compiler
110111
// resolves the different modules
111-
'import/no-unresolved': 0,
112+
'import/no-unresolved': 'off',
112113
},
113114
};

0 commit comments

Comments
 (0)