mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
* chore: update minor versions * chore: bump to `style-loader@4` major version change * refactor: combine `#mainwin-toolbar:nth-last-child(2)` rule * refactor: cleanup scss definitions Notes: `.single-file` is no longer used in code * chore: bump `esbuild-sass-plugin@3` `esbuild@0.25` * chore: uninstall unused `stylelint-config-standard` In fact, it was never used since added to `package.json`. * chore: bump `stylelint@16` `stylelint-config-sass-guidelines@12` * chore: bump `eslint@9` `eslint-plugin-sonarjs@1` `eslint-plugin-unicorn@61` * chore: enable prettier for whole `transmission-web` package * chore: bump `@primer/stylelint-config@13` * chore: update minor versions * build: remove lint config files from CMake dependency * chore: bump minor versions * chore: bump `eslint-plugin-sonarjs@3` * ci: use `actions/setup-node@v4` to install Node.js So that there's no risk of the OS package manager's Node.js version being too low. Except in Alpine, which does not work with `actions/setup-node@v4`. Ref: https://github.com/actions/setup-node/issues/387 * chore: replace `lodash.isEqual` with `fast-deep-equal` * chore: bump minor versions * chore: re-generate package-lock.json * chore: fix lint errors
41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
/** @type {import('stylelint').Config} */
|
|
export default {
|
|
extends: ['stylelint-config-sass-guidelines'],
|
|
rules: {
|
|
'@stylistic/function-parentheses-space-inside': 'never-single-line',
|
|
'block-no-empty': true,
|
|
'color-no-invalid-hex': true,
|
|
'comment-no-empty': true,
|
|
'declaration-block-no-duplicate-properties': true,
|
|
'declaration-block-no-shorthand-property-overrides': true,
|
|
'font-family-no-duplicate-names': true,
|
|
'function-calc-no-unspaced-operator': true,
|
|
'function-linear-gradient-no-nonstandard-direction': true,
|
|
'max-nesting-depth': null,
|
|
'media-feature-name-no-unknown': true,
|
|
'no-duplicate-at-import-rules': true,
|
|
'no-duplicate-selectors': null,
|
|
'no-empty-source': true,
|
|
'no-invalid-double-slash-comments': true,
|
|
'no-unknown-custom-properties': true,
|
|
// TODO: add back rule for unused variables?
|
|
'property-no-unknown': true,
|
|
'property-no-vendor-prefix': null,
|
|
'scss/at-rule-no-unknown': true,
|
|
'selector-attribute-quotes': null,
|
|
'selector-max-compound-selectors': null,
|
|
'selector-max-id': null,
|
|
'selector-no-qualifying-type': [
|
|
true,
|
|
{
|
|
ignore: ['attribute'],
|
|
},
|
|
],
|
|
'selector-pseudo-class-no-unknown': true,
|
|
'selector-pseudo-element-no-unknown': true,
|
|
'selector-type-no-unknown': true,
|
|
'string-no-newline': true,
|
|
'unit-no-unknown': true,
|
|
},
|
|
};
|