Skip to content

Commit

Permalink
feat: add ignorePatterns & use stroustrup brace-style
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Mar 13, 2022
1 parent c7f1c49 commit 1f8ab0d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion packages/eslint-plugin/src/configs/core.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
import { defineConfig } from '../utils'
import bestPracticeRules from './rules/best-practice'

const ignorePatterns = [
'*.min.*',
'CHANGELOG.md',
'dist',
'LICENSE*',
'output',
'coverage',
'public',
'temp',
'packages-lock.json',
'pnpm-lock.yaml',
'yarn.lock',
'__snapshots__',
'!.github',
'!.vitepress',
'!.vscode',
]

export default defineConfig({
plugins: ['@hannoeru', 'html'],
extends: [
'standard',
'plugin:eslint-comments/recommended',
],
ignorePatterns,
rules: {
// Common
'semi': ['error', 'never'],
Expand All @@ -16,7 +35,7 @@ export default defineConfig({
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-param-reassign': 'off',
'array-bracket-spacing': ['error', 'never'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
'block-spacing': ['error', 'always'],
'camelcase': 'off',
'comma-spacing': ['error', { before: false, after: true }],
Expand Down

0 comments on commit 1f8ab0d

Please sign in to comment.