first commit
This commit is contained in:
21
node_modules/stylelint-config-recommended/LICENSE
generated
vendored
Normal file
21
node_modules/stylelint-config-recommended/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 - present 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.
|
||||
51
node_modules/stylelint-config-recommended/README.md
generated
vendored
Normal file
51
node_modules/stylelint-config-recommended/README.md
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# stylelint-config-recommended
|
||||
|
||||
[](https://www.npmjs.org/package/stylelint-config-recommended) [](https://github.com/stylelint/stylelint-config-recommended/actions)
|
||||
|
||||
> The recommended shareable config for Stylelint.
|
||||
|
||||
It turns on most of the Stylelint rules that help you [_avoid errors_](https://stylelint.io/user-guide/rules/#avoid-errors).
|
||||
|
||||
You can use this as a foundation for your own config, but we suggest most people use our [standard config](https://www.npmjs.com/package/stylelint-config-standard) instead which extends this config and adds a few more rules to enforce common conventions.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install stylelint-config-recommended --save-dev
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Set your `stylelint` config to:
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "stylelint-config-recommended"
|
||||
}
|
||||
```
|
||||
|
||||
### Extending the config
|
||||
|
||||
Add a `"rules"` key to your config, then add your overrides and additions there.
|
||||
|
||||
For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, turn off the `block-no-empty` rule, and add the `unit-allowed-list` rule:
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "stylelint-config-recommended",
|
||||
"rules": {
|
||||
"at-rule-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignoreAtRules": ["extends"]
|
||||
}
|
||||
],
|
||||
"block-no-empty": null,
|
||||
"unit-allowed-list": ["em", "rem", "s"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## [Changelog](CHANGELOG.md)
|
||||
|
||||
## [License](LICENSE)
|
||||
49
node_modules/stylelint-config-recommended/index.js
generated
vendored
Normal file
49
node_modules/stylelint-config-recommended/index.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
rules: {
|
||||
'annotation-no-unknown': true,
|
||||
'at-rule-no-unknown': true,
|
||||
'block-no-empty': true,
|
||||
'color-no-invalid-hex': true,
|
||||
'comment-no-empty': true,
|
||||
'custom-property-no-missing-var-function': true,
|
||||
'declaration-block-no-duplicate-custom-properties': true,
|
||||
'declaration-block-no-duplicate-properties': [
|
||||
true,
|
||||
{
|
||||
ignore: ['consecutive-duplicates-with-different-syntaxes'],
|
||||
},
|
||||
],
|
||||
'declaration-block-no-shorthand-property-overrides': true,
|
||||
'font-family-no-duplicate-names': true,
|
||||
'font-family-no-missing-generic-family-keyword': true,
|
||||
'function-calc-no-unspaced-operator': true,
|
||||
'function-linear-gradient-no-nonstandard-direction': true,
|
||||
'function-no-unknown': true,
|
||||
'keyframe-block-no-duplicate-selectors': true,
|
||||
'keyframe-declaration-no-important': true,
|
||||
'media-feature-name-no-unknown': true,
|
||||
'media-query-no-invalid': true,
|
||||
'named-grid-areas-no-invalid': true,
|
||||
'no-descending-specificity': true,
|
||||
'no-duplicate-at-import-rules': true,
|
||||
'no-duplicate-selectors': true,
|
||||
'no-empty-source': true,
|
||||
'no-invalid-double-slash-comments': true,
|
||||
'no-invalid-position-at-import-rule': true,
|
||||
'no-irregular-whitespace': true,
|
||||
'property-no-unknown': true,
|
||||
'selector-anb-no-unmatchable': true,
|
||||
'selector-pseudo-class-no-unknown': true,
|
||||
'selector-pseudo-element-no-unknown': true,
|
||||
'selector-type-no-unknown': [
|
||||
true,
|
||||
{
|
||||
ignore: ['custom-elements'],
|
||||
},
|
||||
],
|
||||
'string-no-newline': true,
|
||||
'unit-no-unknown': true,
|
||||
},
|
||||
};
|
||||
77
node_modules/stylelint-config-recommended/package.json
generated
vendored
Normal file
77
node_modules/stylelint-config-recommended/package.json
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"name": "stylelint-config-recommended",
|
||||
"version": "14.0.1",
|
||||
"description": "Recommended shareable config for Stylelint",
|
||||
"keywords": [
|
||||
"stylelint",
|
||||
"stylelint-config",
|
||||
"recommended"
|
||||
],
|
||||
"repository": "stylelint/stylelint-config-recommended",
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/stylelint"
|
||||
},
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/stylelint"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"author": "Stylelint",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"scripts": {
|
||||
"format": "prettier . --write",
|
||||
"prepare": "husky",
|
||||
"lint:formatting": "prettier . --check",
|
||||
"lint:js": "eslint . --ignore-path .gitignore",
|
||||
"lint:md": "remark . --quiet --frail --ignore-path .gitignore",
|
||||
"lint": "npm-run-all --parallel lint:*",
|
||||
"release": "np --no-release-draft",
|
||||
"pretest": "npm run lint",
|
||||
"test": "node --test",
|
||||
"watch": "npm test --ignore-scripts -- --watch"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": "eslint --cache --fix",
|
||||
"*.{js,md,yml}": "prettier --write"
|
||||
},
|
||||
"prettier": "@stylelint/prettier-config",
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"stylelint"
|
||||
],
|
||||
"globals": {
|
||||
"module": true,
|
||||
"require": true
|
||||
}
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"@stylelint/remark-preset"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stylelint/prettier-config": "^3.0.0",
|
||||
"@stylelint/remark-preset": "^5.1.1",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-stylelint": "^21.0.0",
|
||||
"husky": "^9.0.11",
|
||||
"lint-staged": "^15.2.7",
|
||||
"np": "^10.0.6",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^3.3.2",
|
||||
"remark-cli": "^12.0.1",
|
||||
"stylelint": "^16.2.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"stylelint": "^16.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.12.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user