Skip to content

Commit 5661ef0

Browse files
committed
🚧 Finish repo restructure
1 parent c9d05a0 commit 5661ef0

13 files changed

+9
-5
lines changed

eslint.config.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-expect-error
12
import checkFile from 'eslint-plugin-check-file'
23
import svelteEslint from 'eslint-plugin-svelte'
34
import svelteParser from 'svelte-eslint-parser'
@@ -107,11 +108,14 @@ const CUSTOM_RULES: ConfigWithExtends['rules'] = {
107108
},
108109
{
109110
selector: ['classProperty', 'classMethod'],
110-
filter: {
111-
regex: '^_.*$',
112-
match: true,
113-
},
114-
prefix: ['_'],
111+
leadingUnderscore: 'allow',
112+
format: ['camelCase'],
113+
},
114+
{
115+
selector: ['classProperty', 'classMethod'],
116+
modifiers: ['private'],
117+
leadingUnderscore: 'allowDouble',
118+
trailingUnderscore: 'allowDouble',
115119
format: ['camelCase'],
116120
},
117121
{
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)