Skip to content

Commit

Permalink
Tweak some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Jan 9, 2024
1 parent 62ef0b7 commit 8918c63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export function prepareConfig() {
'stylistic/object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
'stylistic/operator-linebreak': ['error', 'before'],
'stylistic/padded-blocks': ['error', 'never'],
'stylistic/quote-props': ['error', 'consistent-as-needed'],
'stylistic/quote-props': ['error', 'as-needed'],
'stylistic/quotes': ['error', 'single'],
'stylistic/rest-spread-spacing': 'error',
'stylistic/semi': 'error',
Expand Down
5 changes: 5 additions & 0 deletions configs/share/naming-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export const baseNamingRuleConfig = [
modifiers: ['override'],
format: null
},
{ // default imports
selector: 'import',
modifiers: ['default'],
format: ['camelCase', 'PascalCase']
},
{
selector: [
'property',
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default defineFlatConfig([
},
rules: {
'no-extra-parens': 'off',
'no-magic-numbers': 'off'
'no-magic-numbers': 'off',
'stylistic/quote-props': ['error', 'consistent-as-needed']
}
},
{ ignores: ['index.d.ts'] }
Expand Down

0 comments on commit 8918c63

Please sign in to comment.