mirror of
https://github.com/hanzoai/insights.git
synced 2026-11-02 14:32:45 +00:00
The tree was a debranded snapshot of upstream taken around 2026-02-20, and upstream has moved about five months since. This replaces it with upstream master, mechanically re-derived: bin/debrand does the rename, and the pipeline and squashed migrations are restored from the shipped tree. Not a merge. The previous import replaced the tree wholesale in a single commit, so there is no shared content history to merge against. Reproducing the rename on the new tree is what actually converges. What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints, compose files, LLM.md, and insights/migrations. The squashed initial migration is load-bearing — the live database records it by name, so upstream's ~918 individual migrations cannot come back. Nine products are dropped as unreferenced. Twenty-one more that we do not run are kept anyway because the core app still imports them; unpicking those is a refactor and does not belong in a rebase. This base does not build yet, and the reasons are not in the rename: upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against our 4.2, and the dependency manifests still name upstream packages that we republish under our own names. Those are decisions, not renames.
57 lines
2.5 KiB
JavaScript
57 lines
2.5 KiB
JavaScript
module.exports = {
|
|
extends: ['stylelint-config-standard-scss', 'stylelint-config-recess-order'],
|
|
plugins: ['stylelint-order'],
|
|
rules: {
|
|
'no-descending-specificity': null, // TODO: Enable separately, as the diff will be significant
|
|
'number-max-precision': 5,
|
|
'value-keyword-case': [
|
|
'lower',
|
|
{
|
|
// CSS Color Module Level 3 says currentColor, Level 4 candidate says currentcolor
|
|
// Sticking to Level 3 for now
|
|
camelCaseSvgKeywords: true,
|
|
ignoreKeywords: ['BlinkMacSystemFont'], // BlinkMacSystemFont MUST have this particular casing
|
|
},
|
|
],
|
|
// Sadly Safari only started supporting the range syntax of media queries in 2023, so let's switch to that
|
|
// ('context' value) in 2024, once support is better https://caniuse.com/?search=range%20context
|
|
'media-feature-range-notation': 'prefix',
|
|
'selector-class-pattern': [
|
|
'^[A-Za-z0-9_/-]+(__[A-Za-z0-9_/-]+)?(--[A-Za-z0-9/-]+)?$',
|
|
{
|
|
message: 'Expected class selector to match Block__Element--Modifier or plain snake-case (slash allowed for Tailwind opacity)',
|
|
},
|
|
],
|
|
'selector-id-pattern': [
|
|
'^[A-Za-z0-9_-]+(__[A-Za-z0-9_-]+)?(--[A-Za-z0-9_-]+)?$',
|
|
{
|
|
message: 'Expected id selector to match Block__Element--Modifier or plain kebak-case',
|
|
},
|
|
],
|
|
'keyframes-name-pattern': [
|
|
'^[A-Za-z0-9_-]+__[A-Za-z0-9_-]+$',
|
|
{
|
|
message: 'Expected keyframe name to match Block__Animation',
|
|
},
|
|
],
|
|
'scss/dollar-variable-pattern': [
|
|
'^[A-Za-z_]+[A-Za-z0-9_-]+$',
|
|
{
|
|
message: 'Expected variable to match kebab-case or snake_case',
|
|
},
|
|
],
|
|
'scss/at-rule-no-unknown': [
|
|
true,
|
|
{
|
|
ignoreAtRules: ['tailwind', 'config', 'theme', 'starting-style', 'custom-variant', 'source'],
|
|
},
|
|
],
|
|
'custom-property-pattern': null,
|
|
'scss/operator-no-newline-after': null, // Doesn't always play well with prettier
|
|
'scss/at-extend-no-missing-placeholder': null,
|
|
'scss/comment-no-empty': null,
|
|
'order/order': ['dollar-variables', 'custom-properties', 'declarations', 'rules', 'at-rules'],
|
|
'color-function-notation': ['modern', { ignore: ['with-var-inside'] }],
|
|
},
|
|
}
|