Skip to content

Commit

Permalink
Add project files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexesprit committed May 24, 2020
1 parent 82d0a79 commit 1bc83ff
Show file tree
Hide file tree
Showing 8 changed files with 1,348 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[{*.json,*.yml,*.yaml}]
indent_size = 2
indent_style = space
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
jobs:
lint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install
- run: npm run lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules/
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) 2020 Web Scrobbler Team

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.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# prettier-config-web-scrobbler [![NPM][NpmBadge]][Npm] [![Test][WorkflowBadge]][Workflow]

Prettier configuration file for Web Scrobbler projects.

## Usage

You can install `prettier-config-web-scrobbler` by a following way:
```sh
> npm install --save-dev prettier-config-web-scrobbler
```

Then, add `prettier-config-web-scrobbler` to the `extends` array in your
`.prettierrc.*` file.
```json
"prettier-config-web-scrobbler"
```
You can also reference this config in your `package.json` file:
```json
{
"name": "my-cool-library",
"version": "9000.0.1",
"prettier": "prettier-config-web-scrobbler"
}
```

## License

Licensed under the [MIT License](./LICENSE).

<!-- Badges -->
[NpmBadge]: https://img.shields.io/npm/v/prettier-config-web-scrobbler
[WorkflowBadge]: https://github.com/web-scrobbler/prettier-config-web-scrobbler/workflows/Lint/badge.svg

<!-- Related pages -->
[Npm]: https://www.npmjs.com/package/prettier-config-web-scrobbler
[Workflow]: https://github.com/web-scrobbler/prettier-config-web-scrobbler/actions?query=workflow%3ALint
30 changes: 30 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'use strict';

module.exports = {
tabWidth: 4,
useTabs: true,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
bracketSpacing: true,
arrowParens: 'always',
endOfLine: 'lf',
overrides: [
{
files: '*.json',
options: {
parser: 'json',
tabWidth: 2,
useTabs: false,
},
},
{
files: '*.yml',
options: {
parser: 'yaml',
tabWidth: 2,
useTabs: false,
},
},
],
};
Loading

0 comments on commit 1bc83ff

Please sign in to comment.