Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyurus committed Mar 21, 2023
0 parents commit c0215ac
Show file tree
Hide file tree
Showing 7 changed files with 1,278 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
.DS_Store
npm-debug.log*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023-present.

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.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# stylelint-config-standard-less

![publish](https://github.com/crazyurus/stylelint-config-standard-less/actions/workflows/publish.yaml/badge.svg)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![npm](https://badgen.net/npm/v/stylelint-config-standard-less)](https://www.npmjs.com/package/stylelint-config-standard-less)
[![npm dependents](https://badgen.net/npm/dependents/stylelint-config-standard-less)](https://www.npmjs.com/package/stylelint-config-standard-less?activeTab=dependents)
[![npm downloads](https://badgen.net/npm/dt/stylelint-config-standard-less)](https://www.npmjs.com/package/stylelint-config-standard-less)

> The standard shareable LESS config for Stylelint.
This config:

- extends the [`stylelint-config-standard` shared config](https://github.com/stylelint/stylelint-config-standard) and configures its rules for less
- extends the [`stylelint-config-recommended-less` shared config](https://github.com/ssivanatarajan/stylelint-config-recommended-less)

To see the rules that this config uses, please read the [config itself](/index.js).

## Installation

```shell
npm install --save-dev stylelint-config-standard-less
```

## Usage

Set your `stylelint` config to:

```json
{
"extends": "stylelint-config-standard-less"
}
```

### Extending the config

Simply add a `"rules"` key to your config, then add your overrides and additions there.

For example, to turn off the `less/color-no-invalid-hex` rule:

```json
{
"extends": "stylelint-config-standard-less",
"rules": {
"less/color-no-invalid-hex": null
}
}
```

## [License](LICENSE)
15 changes: 15 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-recommended-less'],
rules: {
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": [
"global"
]
}
]
},
};
33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "stylelint-config-standard-less",
"version": "1.0.0",
"description": "The standard shareable LESS config for Stylelint",
"keywords": [
"stylelint",
"stylelint-config",
"standard",
"less"
],
"repository": "crazyurus/stylelint-config-standard-less",
"license": "MIT",
"author": "Crazy Urus <[email protected]>",
"main": "index.js",
"files": [
"index.js"
],
"dependencies": {
"stylelint-config-recommended-less": "^1.0.4",
"stylelint-config-standard": "^30.0.1"
},
"devDependencies": {},
"peerDependencies": {
"postcss": "^8.3.3",
"stylelint": "^15.0.0"
},
"peerDependenciesMeta": {
"postcss": {
"optional": true
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit c0215ac

Please sign in to comment.