Skip to content

Commit

Permalink
fix: release rules in some conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 14, 2023
1 parent aebdd6e commit 718fc70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/configs/markdown.ts
Expand Up @@ -34,16 +34,17 @@ export function markdown(options: OptionsComponentExts & OptionsOverrides = {}):
},
name: 'antfu:markdown:rules',
rules: {
'antfu/no-cjs-exports': 'off',
'antfu/no-ts-export-equal': 'off',

'import/newline-after-import': 'off',

'no-alert': 'off',
'no-console': 'off',
'no-labels': 'off',
'no-restricted-syntax': 'off',
'no-undef': 'off',
'no-unused-expressions': 'off',

'no-unused-labels': 'off',
'no-unused-vars': 'off',

'node/prefer-global/process': 'off',
Expand Down
2 changes: 2 additions & 0 deletions src/configs/test.ts
Expand Up @@ -26,6 +26,8 @@ export function test(options: OptionsIsInEditor & OptionsOverrides = {}): Config
files: GLOB_TESTS,
name: 'antfu:test:rules',
rules: {
'node/prefer-global/process': 'off',

'test/consistent-test-it': ['error', { fn: 'it', withinDescribe: 'it' }],
'test/no-identical-title': 'error',
'test/no-only-tests': isInEditor ? 'off' : 'error',
Expand Down
1 change: 0 additions & 1 deletion src/configs/typescript.ts
Expand Up @@ -83,7 +83,6 @@ export function typescript(

'antfu/generic-spacing': 'error',
'antfu/named-tuple-spacing': 'error',
'antfu/no-cjs-exports': 'error',

'no-dupe-class-members': 'off',
'no-invalid-this': 'off',
Expand Down

0 comments on commit 718fc70

Please sign in to comment.