mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-12 11:22:28 +00:00
Init package.json + setup prettier and eslint
This commit is contained in:
parent
c8fb13177a
commit
b2425c7025
6 changed files with 1547 additions and 0 deletions
14
.editorconfig
Normal file
14
.editorconfig
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Editor configuration, see http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
max_line_length = off
|
||||
trim_trailing_whitespace = false
|
25
.eslintrc.json
Normal file
25
.eslintrc.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"greasemonkey": true,
|
||||
"jquery": true
|
||||
},
|
||||
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
|
||||
"rules": {
|
||||
"prettier/prettier": "error",
|
||||
"prefer-template": "error",
|
||||
"no-console": "off",
|
||||
"no-empty": "warn",
|
||||
"no-inner-declarations": "warn",
|
||||
"no-global-assign": "warn",
|
||||
"no-redeclare": "warn",
|
||||
"no-self-assign": "warn",
|
||||
"no-undef": "warn",
|
||||
"no-useless-concat": "warn",
|
||||
"no-useless-escape": "warn",
|
||||
"no-unused-vars": "warn",
|
||||
"no-var": "warn",
|
||||
"use-isnan": "warn"
|
||||
}
|
||||
}
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,3 +4,6 @@
|
|||
# JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
||||
.idea/
|
||||
*.iml
|
||||
|
||||
# NPM
|
||||
node_modules/
|
||||
|
|
7
.prettierrc.json
Normal file
7
.prettierrc.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"printWidth": 140,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 4,
|
||||
"useTabs": false,
|
||||
"arrowParens": "avoid"
|
||||
}
|
1459
package-lock.json
generated
Normal file
1459
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
39
package.json
Normal file
39
package.json
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"name": "musicbrainz-userscripts",
|
||||
"version": "1.0.0",
|
||||
"description": "Collection of userscripts for MusicBrainz",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"lib": "lib"
|
||||
},
|
||||
"scripts": {
|
||||
"prettier:format": "prettier --write '{,**/}*.{js,json,md}'",
|
||||
"lint": "npm run eslint",
|
||||
"lint-fix": "npm run eslint -- --fix",
|
||||
"eslint": "eslint ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/murdos/musicbrainz-userscripts.git"
|
||||
},
|
||||
"keywords": [
|
||||
"musicbrainz",
|
||||
"userscripts",
|
||||
"import",
|
||||
"ui",
|
||||
"improvements"
|
||||
],
|
||||
"author": "Aurélien Mino <aurelien.mino@gmail.com>",
|
||||
"license": "SEE LICENSE IN individual userscripts",
|
||||
"bugs": {
|
||||
"url": "https://github.com/murdos/musicbrainz-userscripts/issues"
|
||||
},
|
||||
"homepage": "https://github.com/murdos/musicbrainz-userscripts#readme",
|
||||
"devDependencies": {
|
||||
"eslint": "^5.9.0",
|
||||
"eslint-config-prettier": "^3.3.0",
|
||||
"eslint-plugin-import": "^2.14.0",
|
||||
"eslint-plugin-prettier": "^3.0.0",
|
||||
"prettier": "^1.15.2"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue