Skip to content

Commit 1bc83ff

Browse files
committed
Add project files
1 parent 82d0a79 commit 1bc83ff

File tree

8 files changed

+1348
-0
lines changed

8 files changed

+1348
-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,*.yml,*.yaml}]
15+
indent_size = 2
16+
indent_style = space

.github/workflows/lint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
types: [opened, synchronize]
7+
jobs:
8+
lint:
9+
name: Run ESLint
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: '12.x'
16+
- run: npm install
17+
- run: npm run lint

.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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# prettier-config-web-scrobbler [![NPM][NpmBadge]][Npm] [![Test][WorkflowBadge]][Workflow]
2+
3+
Prettier configuration file for Web Scrobbler projects.
4+
5+
## Usage
6+
7+
You can install `prettier-config-web-scrobbler` by a following way:
8+
```sh
9+
> npm install --save-dev prettier-config-web-scrobbler
10+
```
11+
12+
Then, add `prettier-config-web-scrobbler` to the `extends` array in your
13+
`.prettierrc.*` file.
14+
```json
15+
"prettier-config-web-scrobbler"
16+
```
17+
You can also reference this config in your `package.json` file:
18+
```json
19+
{
20+
"name": "my-cool-library",
21+
"version": "9000.0.1",
22+
"prettier": "prettier-config-web-scrobbler"
23+
}
24+
```
25+
26+
## License
27+
28+
Licensed under the [MIT License](./LICENSE).
29+
30+
<!-- Badges -->
31+
[NpmBadge]: https://img.shields.io/npm/v/prettier-config-web-scrobbler
32+
[WorkflowBadge]: https://github.com/web-scrobbler/prettier-config-web-scrobbler/workflows/Lint/badge.svg
33+
34+
<!-- Related pages -->
35+
[Npm]: https://www.npmjs.com/package/prettier-config-web-scrobbler
36+
[Workflow]: https://github.com/web-scrobbler/prettier-config-web-scrobbler/actions?query=workflow%3ALint

index.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
'use strict';
2+
3+
module.exports = {
4+
tabWidth: 4,
5+
useTabs: true,
6+
semi: true,
7+
singleQuote: true,
8+
quoteProps: 'as-needed',
9+
bracketSpacing: true,
10+
arrowParens: 'always',
11+
endOfLine: 'lf',
12+
overrides: [
13+
{
14+
files: '*.json',
15+
options: {
16+
parser: 'json',
17+
tabWidth: 2,
18+
useTabs: false,
19+
},
20+
},
21+
{
22+
files: '*.yml',
23+
options: {
24+
parser: 'yaml',
25+
tabWidth: 2,
26+
useTabs: false,
27+
},
28+
},
29+
],
30+
};

0 commit comments

Comments
 (0)