Merge remote-tracking branch 'origin/master' into worktree/docs-website
# Conflicts: # package.json # pnpm-lock.yaml # pnpm-workspace.yaml # scripts/verify-md-wrap.ts
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import stylistic from '@stylistic/eslint-plugin'
|
||||
import sonarjs from 'eslint-plugin-sonarjs'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
/**
|
||||
@@ -124,6 +125,23 @@ export default tseslint.config(
|
||||
},
|
||||
},
|
||||
|
||||
// --- file-local duplication (all owned TypeScript) ---------------------
|
||||
{
|
||||
files: ['packages/**/*.ts', 'examples/**/*.ts', 'scripts/**/*.ts', 'website/**/*.ts'],
|
||||
plugins: { sonarjs },
|
||||
rules: {
|
||||
// Cross-file clones are covered separately by jscpd.
|
||||
'sonarjs/duplicates-in-character-class': 'error',
|
||||
'sonarjs/no-all-duplicated-branches': 'error',
|
||||
'sonarjs/no-duplicate-in-composite': 'error',
|
||||
'sonarjs/no-duplicate-test-title': 'error',
|
||||
'sonarjs/no-identical-conditions': 'error',
|
||||
'sonarjs/no-identical-expressions': 'error',
|
||||
'sonarjs/no-identical-functions': 'error',
|
||||
'sonarjs/no-duplicated-branches': 'error',
|
||||
},
|
||||
},
|
||||
|
||||
// --- formatting (everything we own) -------------------------------------
|
||||
{
|
||||
files: ['packages/**/*.ts', 'examples/**/*.ts', 'scripts/**/*.ts', 'website/**/*.ts', 'eslint.config.mjs'],
|
||||
|
||||
Reference in New Issue
Block a user