Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarnings #207

Open
replete opened this issue Jan 13, 2025 · 0 comments
Open

DeprecationWarnings #207

replete opened this issue Jan 13, 2025 · 0 comments

Comments

@replete
Copy link

replete commented Jan 13, 2025

Apologies if this is not the right place, but I'm not quite sure what to do about these warnings other than disable the related rules entirely:

> stylelint -c stylelint.config.mjs "{Assets,Views}/**/*.{css,scss}"

(node:16108) [stylelint:007] DeprecationWarning: Partial position information in the `utils.report()` function is deprecated ("scss/double-slash-comment-whitespace-inside").
Please pass both `index` and `endIndex` as arguments in the `utils.report()` function of "scss/double-slash-comment-whitespace-inside".
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:16108) [stylelint:007] DeprecationWarning: Partial position information in the `utils.report()` function is deprecated ("scss/at-else-closing-brace-newline-after").
Please pass both `index` and `endIndex` as arguments in the `utils.report()` function of "scss/at-else-closing-brace-newline-after".
(node:16108) [stylelint:007] DeprecationWarning: Partial position information in the `utils.report()` function is deprecated ("scss/at-else-closing-brace-space-after").
Please pass both `index` and `endIndex` as arguments in the `utils.report()` function of "scss/at-else-closing-brace-space-after".
(node:16108) [stylelint:007] DeprecationWarning: Partial position information in the `utils.report()` function is deprecated ("scss/at-if-closing-brace-newline-after").
Please pass both `index` and `endIndex` as arguments in the `utils.report()` function of "scss/at-if-closing-brace-newline-after".
(node:16108) [stylelint:007] DeprecationWarning: Partial position information in the `utils.report()` function is deprecated ("scss/at-if-closing-brace-space-after").
Please pass both `index` and `endIndex` as arguments in the `utils.report()` function of "scss/at-if-closing-brace-space-after".

npm deps:

        "stylelint": "^16.13.0",
        "stylelint-config-standard": "^37.0.0",
        "stylelint-config-standard-scss": "^14.0.0"

stylelint.config.mjs

export default {
    overrides: [
        {
            files: ['*.css'],
            extends: ['stylelint-config-standard'],
            rules: {
                'no-empty-source': null,
            },
        },
        {
            files: ['*.scss'],
            extends: ['stylelint-config-standard-scss'],
            rules: {
                // 'scss/double-slash-comment-empty-line-before': null,
                // 'scss/at-mixin-argumentless-call-parentheses': null,
                // 'no-empty-source': null,

                // This disabled rules hide deprecation warnings
                // 'scss/double-slash-comment-whitespace-inside': null,
                // 'scss/at-else-closing-brace-newline-after': null,
                // 'scss/at-else-closing-brace-space-after': null,
                // 'scss/at-if-closing-brace-newline-after': null,
                // 'scss/at-if-closing-brace-space-after': null,
            },
        },
    ],
};

stylelint report command (npm script)

        "stylelint": "stylelint -c stylelint.config.mjs \"{Assets,Views}/**/*.{css,scss}\"",

Can I ignore this? It seems like its for the plugin author?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant