fix: prevent asset conflicts between React and Grid.js versions

Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
dwindown
2026-04-18 17:02:14 +07:00
parent bd9cdac02e
commit e8fbfb14c1
74973 changed files with 6658406 additions and 71 deletions

357
node_modules/@wordpress/stylelint-config/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,357 @@
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->
## Unreleased
## 21.41.0 (2024-05-16)
## 21.40.0 (2024-05-02)
## 21.39.0 (2024-04-19)
## 21.38.0 (2024-04-03)
## 21.37.0 (2024-03-21)
## 21.36.0 (2024-03-06)
## 21.35.0 (2024-02-21)
## 21.34.0 (2024-02-09)
## 21.33.0 (2024-01-24)
## 21.32.0 (2024-01-10)
## 21.31.0 (2023-12-13)
## 21.30.0 (2023-11-29)
## 21.29.0 (2023-11-16)
## 21.28.0 (2023-11-02)
## 21.27.0 (2023-10-18)
## 21.26.0 (2023-10-05)
## 21.25.0 (2023-09-20)
## 21.24.0 (2023-08-31)
## 21.23.0 (2023-08-16)
## 21.22.0 (2023-08-10)
## 21.21.0 (2023-07-20)
## 21.20.0 (2023-07-05)
## 21.19.0 (2023-06-23)
## 21.18.0 (2023-06-07)
## 21.17.0 (2023-05-24)
## 21.16.0 (2023-05-10)
## 21.15.0 (2023-04-26)
## 21.14.0 (2023-04-12)
## 21.13.0 (2023-03-29)
## 21.12.0 (2023-03-15)
## 21.11.0 (2023-03-01)
## 21.10.0 (2023-02-15)
## 21.9.0 (2023-02-01)
## 21.8.0 (2023-01-11)
## 21.7.0 (2023-01-02)
## 21.6.0 (2022-12-14)
## 21.5.0 (2022-11-16)
## 21.4.0 (2022-11-02)
## 21.3.0 (2022-10-19)
## 21.2.0 (2022-10-05)
## 21.1.0 (2022-09-21)
## 21.0.0 (2022-08-24)
### Breaking Change
- Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).
## 20.0.0 (2022-01-27)
### Breaking Change
- Increased minimum peer dependency of `stylelint` to `14.2.0` ([#38091](https://github.com/WordPress/gutenberg/pull/38091)). See [official migration guide to v14](https://github.com/stylelint/stylelint/blob/14.0.0/docs/migration-guide/to-14.md) for details.
## 19.0.0 (2021-01-21)
### Breaking Change
- Increase the minimum Node.js version to 12 ([#27934](https://github.com/WordPress/gutenberg/pull/27934)).
- Increased minimum peer dependency of `stylelint` to `13.7.0`.
### Bug Fixes
- Fixed deprecation warning for `declaration-property-unit-whitelist`.
## 18.0.0 (2021-01-05)
### Breaking Change
- Increase the minimum Node.js version to 12 ([#27934](https://github.com/WordPress/gutenberg/pull/27934)).
### Internal
- Imported from `WordPress-Coding-Standards/stylelint-config-wordpress` repository to `WordPress/gutenberg` ([#22777](https://github.com/WordPress/gutenberg/pull/22777))
## 17.0.0 (2020-05-31)
- Updated: `stylelint-scss` to `3.17.2`.
- Updated: `stylelint` to `13.0.0`.
## 16.0.0 (2019-12-31)
- Fixed: `selector-class-pattern` rule regex to account for numerals, case detection, and ensure kebab-case over snake_case.
- Fixed: `selector-id-pattern` rule regex to account for numerals, case detection, and ensure kebab-case over snake_case.
- Updated: `stylelint-config-recommended-scss` to `4.1.0`.
- Updated: `stylelint-find-rules` to `2.2.0`.
- Updated: `stylelint-scss` to `3.13.0`.
- Updated: `stylelint` to `11.0.0`.
## 15.0.0 (2019-10-05)
- Added: NodeJS 12.x.x support.
- Updated: `stylelint` to `11.0.0`.
- Removed: `stylelint < 10.1.0` compatibility.
- Updated: `stylelint-config-recommended` to `3.0.0`.
- Updated: `stylelint-config-recommended-scss` to `4.0.0`.
- Updated: Bump minimum Node.js required version to `10.0.0`.
## 14.0.0 (2019-04-18)
- Updated: `stylelint` to `10.0.0`.
- Updated: `stylelint-scss` to `3.6.0`.
- Updated: `stylelint-config-recommended` to `2.2.0`.
## 13.1.0 (2018-08-19)
- Added: Added SCSS _shared config_ `extends` tests.
- Changed: `stylelint-config-wordpress/scss` now extends [`stylelint-config-recommended-scss`](https://github.com/kristerkari/stylelint-config-recommended-scss) (the net result of this change results in no rule changes for this SCSS config).
- Updated: `stylelint-scss` to `3.3.0`.
- Updated: `stylelint` to `9.5.0`.
## 13.0.0 (2018-03-19)
- Added: stylelint `9.1.3` support.
- Changed: Updated `stylelint` peer dependency version to `^9.1.3`.
- Changed: Improved `no-duplicate-selectors` tests.
- Removed: Jest snapshots.
- Removed: `stylelint < 9.1.3` compatibility.
- Updated: `selector-pseudo-element-colon-notation` to use `double`
- Updated: `stylelint-config-recommended` to `2.1.0`.
- Updated: `stylelint-scss` to `2.1.0`.
- Updated: Bump minimum Node.js required version to `8.9.3`.
## 12.0.0 (2017-07-18)
- Changed: `stylelint-config-wordpress` now extends [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended), which turns on the `at-rule-no-unknown`, `block-no-empty`, `comment-no-empty`, `declaration-block-no-ignored-properties`, `declaration-block-no-redundant-longhand-properties`, `font-family-no-duplicate-names`, `media-feature-name-no-unknown`, `no-empty-source` rule. These rules are part of stylelint's [possible errors](https://github.com/stylelint/stylelint/blob/HEAD/docs/user-guide/rules/list.md#possible-errors) rules.
- Removed: `stylelint-scss < 1.5.1` compatibility.
- Removed: Removed style guide docs.
- Removed: `at-rule-no-unknown` custom `ignoreAtRules` options in `stylelint-config-wordpress/scss` shared config.
- Added: `scss/at-rule-no-unknown` rule in `stylelint-config-wordpress/scss` shared config.
- Added: NodeJS 8.x.x support.
- Added: npm 5.x.x support.
- Added: Jest snapshots to help detect and prevent regressions.
## 11.0.0 (2017-05-16)
- Added: `declaration-property-unit-whitelist` rule to allow `px` and exclude `%` and `em` units in `line-height` values.
- Changed: Relocated repo to https://github.com/WordPress-Coding-Standards.
- Fixed: Include CSS config `at-rule-empty-line-before` rules in SCSS config.
## 10.0.2 (2017-04-29)
- Added: Added `import` to `ignoreAtRules` option in `at-rule-empty-line-before` rule for SCSS config.
## 10.0.1 (2017-04-21)
- Removed: `rule-non-nested-empty-line-before` rule from SCSS config. This rule is deprecated in stylelint v8, the new `rule-empty-line-before` rule already exists in the primary config.
## 10.0.0 (2017-04-21)
- Added: `scss/selector-no-redundant-nesting-selector` rule in `stylelint-config-wordpress/scss` shared config.
- Added: `selector-no-empty` rule.
- Added: NodeJS 7.x.x support
- Fixed: Added `stylelint-scss` plugin @if/@else placement rules.
- Fixed: Ignore `relative` keyword names in `font-weight-notation` rule.
- Fixed: Ignore proprietary `DXImageTransform.Microsoft` MS filters
- Fixed: Removed `@debug` from `ignoreAtRules` array of `at-rule-no-unknown` rule in `stylelint-config-wordpress/scss` chared config.
- Deprecated `blockless-group` option for `at-rule-empty-line-before` rule. Use the new `blockless-after-blockless` option instead.
- Deprecated `media-feature-no-missing-punctuation` rule.
- Deprecated `rule-nested-empty-line-before` and `rule-non-nested-empty-line-before` rules. Use the new `rule-empty-line-before` rule instead.
- Deprecated `selector-no-empty` rule.
- Refactor: Switch from AVA to Jest for tests.
- Refactor: Switch from eslint-plugin-ava to eslint-plugin-jest.
- Removed: `stylelint < 7.10.1` compatibility.
- Removed: `stylelint-scss < 1.4.4` compatibility.
- Removed: NodeJS 4.x support, `stylelint` and `stylelint-config-wordpress` now require NodeJS > 6.9.1 LTS or greater
## 9.1.1 (2016-09-30)
- Fixed: Re-releasing failed npmjs.com 9.1.0 release as 9.1.1.
## 9.1.0 (2016-09-30)
- Added: `stylelint-config-wordpress/scss` preset.
## 9.0.0 (2016-09-10)
- Removed: `stylelint < 7.2.0` compatibility.
- Removed: NodeJS 0.12.x support, `stylelint` and `stylelint-config-wordpress` now require NodeJS > 4.2.1 LTS or greater
- Added: `at-rule-no-unknown` rule.
- Added: `selector-attribute-quotes` rule.
- Added: `font-weight-notation` rule.
- Added: `max-line-length` rule.
- Added: `property-no-unknown` rule.
- Added: `selector-class-pattern` rule.
- Added: `selector-id-pattern` rule.
- Deprecated `no-missing-eof-newline` rule. Use the new `no-missing-end-of-source-newline` rule instead.
- Fixed `font-family-name-quotes` test warning message in `values.js`.
## 8.0.0 (2016-06-14)
- Removed: `stylelint < 6.6.0` compatibility.
- Removed: `number-zero-length-no-unit` rule.
- Added: `length-zero-no-unit` rule.
- Added: `value-keyword-case` rule.
## 7.1.1 (2016-05-30)
- Fixed: Re-releasing failed npmjs.com 7.0.0 release as 7.1.1.
## 7.1.0 (2016-05-30)
- Fixed: `font-family-name-quotes` rule deprecated option `double-where-recommended` to new `always-where-recommended` option.
- Fixed: `function-url-quotes` rule deprecated option `none` to new `never` option.
- Removed: `stylelint < 6.5.1` compatibility.
- Changed: Improved tests and documentation.
- Added: `comment-empty-line-before` rule.
## 7.0.0 (2016-05-20)
- Added: `keyframe-declaration-no-important` rule.
- Added: `selector-pseudo-class-no-unknown` rule.
- Added: `selector-pseudo-element-no-unknown` rule.
- Added: `selector-type-no-unknown` rule.
## 6.0.0 (2016-05-17)
- Added: `at-rule-name-space-after` rule.
- Added: `no-extra-semicolons` rule.
- Added: `selector-attribute-operator-space-after` rule.
- Added: `selector-attribute-operator-space-before` rule.
- Added: `selector-max-empty-liness` rule.
## 5.0.0 (2016-04-24)
- Added: `at-rule-name-case` rule.
- Added: `declaration-block-no-duplicate-properties` rule.
- Added: `function-max-empty-lines` rule.
- Added: `function-name-case` rule.
- Added: `property-case` rule.
- Added: `selector-attribute-brackets-space-inside` rule.
- Added: `selector-pseudo-class-case` rule.
- Added: `selector-pseudo-class-parentheses-space-inside` rule.
- Added: `selector-pseudo-element-case` rule.
- Added: `shorthand-property-no-redundant-values` rule.
- Added: `unit-case` rule.
- Added: `unit-no-unknown` rule.
## 4.0.0 (2016-03-25)
- Removed: `stylelint < 5.2.0` compatibility.
- Added: `at-rule-semicolon-newline-after` rule.
- Added: `selector-type-case` rule.
## 3.0.1 (2016-03-10)
- Added: `stylelint` version `^4.5.0` as a peer dependency to `peerDependencies` in `package.json`
## 3.0.0 (2016-03-08)
- Removed: `stylelint < 4.5.0` compatibility.
- Deprecated: `rule-no-shorthand-property-overrides` rule. Use the new `declaration-block-no-shorthand-property-overrides` rule instead.
- Deprecated: `rule-trailing-semicolon` rule. Use the new `declaration-block-trailing-semicolon` rule instead.
- Added: `color-named` rule.
- Added: `declaration-block-no-shorthand-property-overrides` rule.
- Added: `declaration-block-trailing-semicolon` rule.
- Added: `string-no-newline` rule.
## 2.1.0 (2016-03-03)
- Added: `max-empty-lines` rule, limits the number of adjacent empty lines to 2.
- Changed: `rule-nested-empty-line-before` rule option `ignore: ["after-comment"]`.
- Removed all vendor prefixes, lets autoprefixer handle vendor prefixes:
- Removed: `at-rule-no-vendor-prefix`
- Removed: `media-feature-name-no-vendor-prefix`
- Removed: `property-no-vendor-prefix`
- Removed: `selector-no-vendor-prefix`
- Removed: `value-no-vendor-prefix`
## 2.0.2 (2016-02-17)
- Fixed another npmjs.com release issue
## 2.0.1 (2016-02-17)
- Fixed npmjs.com release
## 2.0.0 (2016-02-17)
- Removed: `media-query-parentheses-space-inside` rule.
- Removed: `stylelint < 4.3.4` compatibility.
- Added: `font-family-name-quotes` rule with double quotes where recommended option.
- Added: `media-feature-no-missing-punctuation` rule.
- Added: `no-invalid-double-slash-comments` rule.
## 1.1.1 (2016-01-19)
- Changed: `rule-non-nested-empty-line-before` with option `ignore: ["after-comment"],`.
## 1.1.0 (2016-01-18)
- Added: `selector-pseudo-element-colon-notation` with option `single`
## 1.0.1 (2015-12-11)
- Changed: config syntax.
## 1.0.0 (2015-12-11)
- Removed: `stylelint < 3.0.0` compatibility.
- Changed: renamed the `function-space-after` rule to `function-whitespace-after`.
- Changed: `at-rule-empty-line-before` with option `ignore: ["after-comment"],`.
- Changed: `declaration-colon-space-after` with option `always-single-line`.
- Added: `declaration-colon-newline-after` with option `always-multi-line`.
- Added: `function-linear-gradient-no-nonstandard-direction`.
## 0.2.0 (2015-09-04)
- Fixed: No quotes for URLs -> `"function-url-quotes": [ 2, "none" ]`.
## 0.1.0 (2015-08-01)
Initial release.

22
node_modules/@wordpress/stylelint-config/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 stylelint
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

65
node_modules/@wordpress/stylelint-config/README.md generated vendored Normal file
View File

@@ -0,0 +1,65 @@
# stylelint config
[stylelint](https://stylelint.io/) configuration rules to ensure your CSS is compliant with the [WordPress CSS Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/).
## Installation
```bash
$ npm install @wordpress/stylelint-config --save-dev
```
**Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.
## Usage
If you've installed `@wordpress/stylelint-config` locally within your project, just set your `stylelint` config to:
```json
{
"extends": "@wordpress/stylelint-config"
}
```
If you've globally installed `@wordpress/stylelint-config` using the `-g` flag, then you'll need to use the absolute path to `@wordpress/stylelint-config` in your config:
```json
{
"extends": "/absolute/path/to/@wordpress/stylelint-config"
}
```
## Presets
In addition to the default preset, there is also a SCSS preset. This preset extends both `@wordpress/stylelint-config` and [`stylelint-config-recommended-scss`](https://github.com/kristerkari/stylelint-config-recommended-scss).
### SCSS
```json
{
"extends": [ "@wordpress/stylelint-config/scss" ]
}
```
## Extending the config
Simply add a `"rules"` key to your config and add your overrides there.
For example, to change the `indentation` to four spaces and turn off the `number-leading-zero` rule:
```json
{
"extends": "@wordpress/stylelint-config",
"rules": {
"indentation": 4,
"number-leading-zero": null
}
}
```
## Contributing to this package
This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to [npm](https://www.npmjs.com/) and used by [WordPress](https://make.wordpress.org/core/) as well as other software projects.
To find out more about contributing to this package or Gutenberg as a whole, please read the project's main [contributor guide](https://github.com/WordPress/gutenberg/tree/HEAD/CONTRIBUTING.md).
<br /><br /><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>

131
node_modules/@wordpress/stylelint-config/index.js generated vendored Normal file
View File

@@ -0,0 +1,131 @@
'use strict';
module.exports = {
extends: 'stylelint-config-recommended',
rules: {
'at-rule-empty-line-before': [
'always',
{
except: [ 'blockless-after-blockless' ],
ignore: [ 'after-comment' ],
},
],
'at-rule-name-case': 'lower',
'at-rule-name-space-after': 'always-single-line',
'at-rule-no-unknown': true,
'at-rule-semicolon-newline-after': 'always',
'block-closing-brace-newline-after': 'always',
'block-closing-brace-newline-before': 'always',
'block-opening-brace-newline-after': 'always',
'block-opening-brace-space-before': 'always',
'color-hex-case': 'lower',
'color-hex-length': 'short',
'color-named': 'never',
'comment-empty-line-before': [
'always',
{
ignore: [ 'stylelint-commands' ],
},
],
'declaration-bang-space-after': 'never',
'declaration-bang-space-before': 'always',
'declaration-block-no-duplicate-properties': [
true,
{
ignore: [ 'consecutive-duplicates' ],
},
],
'declaration-block-semicolon-newline-after': 'always',
'declaration-block-semicolon-space-before': 'never',
'declaration-block-trailing-semicolon': 'always',
'declaration-colon-newline-after': 'always-multi-line',
'declaration-colon-space-after': 'always-single-line',
'declaration-colon-space-before': 'never',
'declaration-property-unit-allowed-list': {
'line-height': [ 'px' ],
},
'font-family-name-quotes': 'always-where-recommended',
'font-weight-notation': [
'numeric',
{
ignore: [ 'relative' ],
},
],
'function-comma-space-after': 'always',
'function-comma-space-before': 'never',
'function-max-empty-lines': 1,
'function-name-case': [
'lower',
{
ignoreFunctions: [ '/^DXImageTransform.Microsoft.*$/' ],
},
],
'function-parentheses-space-inside': 'never',
'function-url-quotes': 'never',
'function-whitespace-after': 'always',
indentation: 'tab',
'length-zero-no-unit': true,
'max-empty-lines': 2,
'max-line-length': [
80,
{
ignore: 'non-comments',
ignorePattern: [
'/(https?://[0-9,a-z]*.*)|(^description\\:.+)|(^tags\\:.+)/i',
],
},
],
'media-feature-colon-space-after': 'always',
'media-feature-colon-space-before': 'never',
'media-feature-range-operator-space-after': 'always',
'media-feature-range-operator-space-before': 'always',
'media-query-list-comma-newline-after': 'always-multi-line',
'media-query-list-comma-space-after': 'always-single-line',
'media-query-list-comma-space-before': 'never',
'no-eol-whitespace': true,
'no-missing-end-of-source-newline': true,
'number-leading-zero': 'always',
'number-no-trailing-zeros': true,
'property-case': 'lower',
'rule-empty-line-before': [
'always',
{
ignore: [ 'after-comment' ],
},
],
'selector-attribute-brackets-space-inside': 'never',
'selector-attribute-operator-space-after': 'never',
'selector-attribute-operator-space-before': 'never',
'selector-attribute-quotes': 'always',
'selector-class-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
{
message:
'Selector should use lowercase and separate words with hyphens (selector-class-pattern)',
},
],
'selector-id-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
{
message:
'Selector should use lowercase and separate words with hyphens (selector-id-pattern)',
},
],
'selector-combinator-space-after': 'always',
'selector-combinator-space-before': 'always',
'selector-list-comma-newline-after': 'always',
'selector-list-comma-space-before': 'never',
'selector-max-empty-lines': 0,
'selector-pseudo-class-case': 'lower',
'selector-pseudo-class-parentheses-space-inside': 'never',
'selector-pseudo-element-case': 'lower',
'selector-pseudo-element-colon-notation': 'double',
'selector-type-case': 'lower',
'string-quotes': 'double',
'unit-case': 'lower',
'value-keyword-case': 'lower',
'value-list-comma-newline-after': 'always-multi-line',
'value-list-comma-space-after': 'always-single-line',
'value-list-comma-space-before': 'never',
},
};

55
node_modules/@wordpress/stylelint-config/package.json generated vendored Normal file
View File

@@ -0,0 +1,55 @@
{
"name": "@wordpress/stylelint-config",
"version": "21.41.0",
"description": "stylelint config for WordPress development.",
"author": "The WordPress Contributors",
"license": "MIT",
"keywords": [
"stylelint",
"stylelint-config",
"stylelint-config-wordpress",
"wordpress"
],
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/packages/stylelint-config/README.md",
"repository": {
"type": "git",
"url": "https://github.com/WordPress/gutenberg.git",
"directory": "packages/stylelint-config"
},
"bugs": {
"url": "https://github.com/WordPress/gutenberg/issues"
},
"engines": {
"node": ">=14"
},
"files": [
"CHANGELOG.md",
"LICENSE",
"README.md",
"index.js",
"scss.js"
],
"main": "index.js",
"dependencies": {
"stylelint-config-recommended": "^6.0.0",
"stylelint-config-recommended-scss": "^5.0.2"
},
"peerDependencies": {
"stylelint": "^14.2"
},
"npmpackagejsonlint": {
"extends": "@wordpress/npm-package-json-lint-config",
"rules": {
"valid-values-license": [
"error",
[
"MIT"
]
]
}
},
"publishConfig": {
"access": "public"
},
"gitHead": "42f38f287506a6b3ed8ccba839b18ad066821044"
}

36
node_modules/@wordpress/stylelint-config/scss.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
'use strict';
module.exports = {
extends: [ './', 'stylelint-config-recommended-scss' ].map(
require.resolve
),
plugins: [ 'stylelint-scss' ],
rules: {
// @wordpress/stylelint-config CSS overrides.
'at-rule-empty-line-before': [
'always',
{
except: [ 'blockless-after-blockless' ],
ignore: [ 'after-comment' ],
ignoreAtRules: [ 'else' ],
},
],
'block-opening-brace-space-before': 'always',
'block-closing-brace-newline-after': [
'always',
{
ignoreAtRules: [ 'if', 'else' ],
},
],
'at-rule-name-space-after': 'always',
'scss/at-else-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-else-closing-brace-space-after': 'always-intermediate',
'scss/at-else-empty-line-before': 'never',
'scss/at-if-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-if-closing-brace-space-after': 'always-intermediate',
'scss/selector-no-redundant-nesting-selector': true,
},
};