Skip to content

Commit

Permalink
fix: move stylistic files
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 21, 2023
1 parent 9ee683e commit 7070dc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 0 additions & 5 deletions packages/eslint-config/src/configs/javascript.ts
Expand Up @@ -32,7 +32,6 @@ export const javascript: FlatESLintConfigItem[] = [
rules: {
'accessor-pairs': ['error', { enforceForClassMembers: true, setWithoutGet: true }],

'antfu/if-newline': 'error',
'antfu/import-dedupe': 'error',
'antfu/no-import-node-modules-by-path': 'error',
'antfu/top-level-function': 'error',
Expand All @@ -41,11 +40,9 @@ export const javascript: FlatESLintConfigItem[] = [
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'block-scoped-var': 'error',
'camelcase': OFF,
'comma-dangle': ['error', 'always-multiline'],
'complexity': OFF,
'consistent-return': OFF,
'constructor-super': 'error',
'curly': ['error', 'multi-or-nest', 'consistent'],
'default-case-last': 'error',
'dot-notation': ['error', { allowKeywords: true }],
'eol-last': 'error',
Expand Down Expand Up @@ -207,9 +204,7 @@ export const javascript: FlatESLintConfigItem[] = [
'prefer-spread': 'error',
'prefer-template': 'error',
'quote-props': ['error', 'consistent-as-needed'],
'quotes': ['error', 'single'],
'require-await': OFF,
'semi': ['error', 'never'],
'sort-imports': [
'error',
{
Expand Down
8 changes: 6 additions & 2 deletions packages/eslint-config/src/configs/stylistic.ts
Expand Up @@ -61,12 +61,10 @@ export const javascriptStylistic: FlatESLintConfigItem[] = [
'@stylistic/js/keyword-spacing': ['error', { after: true, before: true }],
'@stylistic/js/lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'@stylistic/js/multiline-ternary': ['error', 'always-multiline'],

'@stylistic/js/no-mixed-spaces-and-tabs': 'error',
'@stylistic/js/no-multi-spaces': 'error',
'@stylistic/js/no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 0 }],
'@stylistic/js/no-tabs': 'error',

'@stylistic/js/no-trailing-spaces': 'error',
'@stylistic/js/no-whitespace-before-property': 'error',
'@stylistic/js/object-curly-newline': ['error', { consistent: true, multiline: true }],
Expand Down Expand Up @@ -95,6 +93,12 @@ export const javascriptStylistic: FlatESLintConfigItem[] = [
'@stylistic/js/template-curly-spacing': 'error',
'@stylistic/js/template-tag-spacing': ['error', 'never'],
'@stylistic/js/yield-star-spacing': ['error', 'both'],

'antfu/if-newline': 'error',
'comma-dangle': ['error', 'always-multiline'],
'curly': ['error', 'multi-or-nest', 'consistent'],
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
},
},
]
Expand Down

0 comments on commit 7070dc9

Please sign in to comment.