-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #741 from sasstools/release/1.8.0
Prepare 1.8.0 release
- Loading branch information
Showing
151 changed files
with
6,784 additions
and
1,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
Please include as much information as possible about your issue/request. | ||
Make sure you've read through our [contribution guidelines](https://github.com/sasstools/sass-lint/blob/develop/CONTRIBUTING.md#submitting-issues) first. | ||
If you would like to propose a feature please ignore some of the headings below but include as much information as you can and if possible any relevant test case code samples. | ||
--> | ||
|
||
|
||
What version of Sass Lint are you using? | ||
|
||
Please include any relevant parts of your configuration | ||
|
||
What did you do? Please include the actual source code causing the issue. | ||
|
||
What did you expect to happen? | ||
|
||
What actually happened? Please include any error messages given to you by Sass Lint. | ||
|
||
If you're using a IDE plugin have you tried the CLI too? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- | ||
## New Pull Request Information | ||
Please make sure you have read through our [contribution guidelines](https://github.com/sasstools/sass-lint/blob/develop/CONTRIBUTING.md#pull-requests) before submitting a pull request. | ||
Most importantly your pull request should provide information on what the changes do and they should reference an already created issue. e.g. 'Fixes #80' for bugs and 'Closes #90' for other issues. | ||
Please use the headings below as guidance, you don't need to answer them point for point but the contents give you an idea of what we'd like to know about your PR. | ||
You must also include your agreement to the developer certificate of origin below. | ||
--> | ||
|
||
**What do the changes you have made achieve?** | ||
|
||
**Are there any new warning messages?** | ||
|
||
**Have you written tests?** | ||
|
||
**Have you included relevant documentation** | ||
|
||
**Which issues does this resolve?** | ||
|
||
`<DCO 1.1 Signed-off-by: YOUR_FULL_NAME YOUR_EMAIL>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- '0.10' | ||
- '0.12' | ||
- '4' | ||
- '5' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -270,6 +270,7 @@ justify-items | |
justify-self | ||
kerning | ||
@keyframes | ||
keyframes | ||
left | ||
letter-spacing | ||
lighting-color | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
active | ||
checked | ||
default | ||
disabled | ||
empty | ||
enabled | ||
first | ||
first-child | ||
first-of-type | ||
focus | ||
hover | ||
indeterminate | ||
in-range | ||
invalid | ||
lang | ||
last-child | ||
last-of-type | ||
left | ||
link | ||
not | ||
nth-child | ||
nth-last-child | ||
nth-last-of-type | ||
nth-of-type | ||
only-child | ||
only-of-type | ||
optional | ||
out-of-range | ||
read-only | ||
read-write | ||
required | ||
right | ||
root | ||
target | ||
valid | ||
visited |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
after | ||
before | ||
first-letter | ||
first-line | ||
selection | ||
backdrop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,71 @@ | ||
# Config File | ||
|
||
Option `config-file` will tell Sass Lint the path to a custom config file. `config-file` should be set to a path plus file name relative to where Sass Lint is being run from. If not included, Sass Lint will attempt to find the closest config file, or fall back to the default one. | ||
### Configuration Options | ||
When passing options directly to `Sass-lint` option `config-file` will tell Sass Lint the path to a custom config file. `config-file` should be set to a path plus file name relative to where Sass Lint is being run from OR an absolute path. If not included, Sass Lint will attempt to find the closest config file, or fall back to the default one. | ||
|
||
Config File will only be respected if passed in as an option directly, not if it is already in a config file. | ||
### Config File Options | ||
|
||
You may specify a config file in your current config file as follows: | ||
|
||
```yaml | ||
options: | ||
config-file: my-folder/my-other-config.yml | ||
rules: | ||
no-ids: 2 | ||
``` | ||
The config file loaded from the `config-file` option will be treated as a base config file and as such will be extended with the rules and options in your main config. The path of this must be either an absolute path or a path relative to your main config file. | ||
|
||
**Absolute path** | ||
|
||
`/root/my/projects/config/extend/.sass-lint.yml` | ||
|
||
**Relative path** | ||
|
||
`extra-config/.sass-lint.yml` | ||
|
||
## Example | ||
|
||
**Project Structure** | ||
``` | ||
my-project/ | ||
- .sass-lint-A.yml | ||
- sub-folder/ | ||
- .sass-lint-B.yml | ||
``` | ||
**.sass-lint-A.yml** | ||
```yml | ||
options: | ||
config-file: sub-folder/.sass-lint-B.yml | ||
rules: | ||
no-ids: 1 | ||
``` | ||
|
||
**.sass-lint-B.yml** | ||
```yml | ||
rules: | ||
no-ids: 2 | ||
no-important: 1 | ||
``` | ||
**start Sass-lint from the my-project directory** | ||
`sass-lint -c .sass-lint-A.yml` | ||
|
||
|
||
In the scenario above the first config would load and merge the second config recursively. | ||
|
||
The resulting config you could expect would be: | ||
|
||
```yml | ||
options: | ||
config-file: sub-folder/.sass-lint-B.yml | ||
rules: | ||
no-ids: 1 | ||
no-important: 1 | ||
``` | ||
|
||
Notice how the B config's `no-ids` rule is ignored as we are 'extending' A from B. | ||
|
||
There is no limit to how many config files can be loaded, but please do be aware of circular dependencies. |
Oops, something went wrong.