Skip to content

Commit 1129b84

Browse files
committed
Add project files
1 parent ccb3065 commit 1129b84

File tree

8 files changed

+1370
-0
lines changed

8 files changed

+1370
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = tab
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{json,yaml,yml}]
15+
indent_size = 2
16+
indent_style = space

.eslintrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
extends: 'web-scrobbler'
2+
parserOptions:
3+
ecmaVersion: 8

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Web Scrobbler Team
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# stylelint-config-web-scrobbler
2+
3+
Stylelint configuration file for Web Scrobbler projects.
4+
5+
## Usage
6+
7+
You can install `stylelint-config-web-scrobbler` by a following way:
8+
```sh
9+
> npm install --save-dev stylelint-config-web-scrobbler
10+
```
11+
12+
Then, add `stylelint-config-web-scrobbler` to the `extends` array in your
13+
`.stylelintrc.*` file.
14+
```json
15+
{
16+
"extends": [
17+
"some-other-config-you-use",
18+
"stylelint-config-web-scrobbler"
19+
]
20+
}
21+
```
22+
23+
## License
24+
25+
Licensed under the [MIT License](./LICENSE).

index.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
'use strict';
2+
3+
module.exports = {
4+
'plugins': [
5+
'stylelint-order'
6+
],
7+
'rules': {
8+
'block-closing-brace-empty-line-before': 'never',
9+
'block-closing-brace-newline-after': 'always',
10+
'block-closing-brace-newline-before': 'always',
11+
'block-opening-brace-newline-after': 'always',
12+
'block-opening-brace-newline-before': 'never-single-line',
13+
'block-opening-brace-space-before': 'always',
14+
'block-no-empty': true,
15+
'color-no-invalid-hex': true,
16+
'color-hex-case': 'lower',
17+
'comment-no-empty': true,
18+
'declaration-bang-space-after': 'never',
19+
'declaration-bang-space-before': 'always',
20+
'declaration-colon-space-after': 'always',
21+
'declaration-colon-space-before': 'never',
22+
'declaration-empty-line-before': 'never',
23+
'declaration-block-no-duplicate-properties': true,
24+
'declaration-block-no-redundant-longhand-properties': true,
25+
'declaration-block-no-shorthand-property-overrides': true,
26+
'declaration-block-semicolon-newline-after': 'always',
27+
'declaration-block-semicolon-newline-before': 'never-multi-line',
28+
'declaration-block-trailing-semicolon': 'always',
29+
'font-family-no-duplicate-names': true,
30+
'font-family-no-missing-generic-family-keyword': true,
31+
'indentation': 'tab',
32+
'linebreaks': 'unix',
33+
'no-duplicate-selectors': true,
34+
'no-eol-whitespace': true,
35+
'no-extra-semicolons': true,
36+
'no-invalid-double-slash-comments': true,
37+
'no-missing-end-of-source-newline': true,
38+
'number-leading-zero': 'always',
39+
'number-no-trailing-zeros': true,
40+
'property-case': 'lower',
41+
'property-no-unknown': true,
42+
'selector-attribute-brackets-space-inside': 'never',
43+
'selector-attribute-operator-space-after': 'never',
44+
'selector-attribute-operator-space-before': 'never',
45+
'selector-combinator-space-after': 'always',
46+
'selector-combinator-space-before': 'always',
47+
'selector-descendant-combinator-no-non-space': true,
48+
'selector-max-empty-lines': 0,
49+
'selector-max-id': 0,
50+
'selector-list-comma-newline-after': 'always-multi-line',
51+
'selector-list-comma-newline-before': 'never-multi-line',
52+
'selector-list-comma-space-after': 'always-single-line',
53+
'selector-list-comma-space-before': 'never',
54+
'shorthand-property-no-redundant-values': true,
55+
'string-quotes': 'single',
56+
'unit-no-unknown': true,
57+
'value-keyword-case': 'lower',
58+
'value-list-comma-newline-after': 'always-multi-line',
59+
'value-list-comma-space-after': 'always',
60+
'value-list-comma-space-before': 'never',
61+
'value-list-max-empty-lines': 0,
62+
'order/properties-alphabetical-order': true
63+
}
64+
};

0 commit comments

Comments
 (0)