Update config
This commit is contained in:
parent
a61ce38780
commit
4c6721aabb
7 changed files with 6817 additions and 1 deletions
11
.editorconfig
Normal file
11
.editorconfig
Normal file
|
@ -0,0 +1,11 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[package.json]
|
||||
indent_size = 2
|
30
.eslintrc.json
Normal file
30
.eslintrc.json
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"webextensions": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"rules": {
|
||||
"indent": ["error", 4, { "SwitchCase": 1 }],
|
||||
"quotes": ["error", "double"],
|
||||
"semi": ["error", "always"],
|
||||
"curly": ["error", "all"],
|
||||
"eqeqeq": ["error", "always"],
|
||||
"padding-line-between-statements": [
|
||||
"error",
|
||||
{
|
||||
"blankLine": "always",
|
||||
"prev": "*",
|
||||
"next": "function"
|
||||
}
|
||||
],
|
||||
"no-trailing-spaces": "error",
|
||||
"comma-spacing": "error",
|
||||
"no-nested-ternary": "error",
|
||||
"max-depth": ["error", 4]
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018
|
||||
}
|
||||
}
|
2
.gitignore
vendored
Normal file → Executable file
2
.gitignore
vendored
Normal file → Executable file
|
@ -1,2 +1,2 @@
|
|||
.jshintrc
|
||||
*.swp
|
||||
node_modules
|
||||
|
|
4
.prettierrc.json
Normal file
4
.prettierrc.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"printWidth": 90,
|
||||
"tabWidth": 4
|
||||
}
|
31
.vscode/launch.json
vendored
Normal file
31
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "WebExtension",
|
||||
"type": "firefox",
|
||||
"request": "launch",
|
||||
"reAttach": true,
|
||||
"addonPath": "${workspaceFolder}/extension",
|
||||
"reloadOnChange": {
|
||||
"watch": "${workspaceFolder}/extension/*.js",
|
||||
"ignore": "**/node_modules/**"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "WebExtension (Nightly)",
|
||||
"type": "firefox",
|
||||
"request": "launch",
|
||||
"reAttach": true,
|
||||
"addonPath": "${workspaceFolder}/extension",
|
||||
"reloadOnChange": {
|
||||
"watch": "${workspaceFolder}/extension/*.js",
|
||||
"ignore": "**/node_modules/**"
|
||||
},
|
||||
"firefoxExecutable": "firefox-trunk"
|
||||
}
|
||||
]
|
||||
}
|
6711
package-lock.json
generated
Executable file
6711
package-lock.json
generated
Executable file
File diff suppressed because it is too large
Load diff
29
package.json
Executable file
29
package.json
Executable file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"name": "history-cleaner",
|
||||
"version": "1.0.0",
|
||||
"description": "Firefox addon that deletes history older than a specified amount of days.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"firefox": "web-ext run -s ./extension",
|
||||
"nightly": "web-ext run -s ./extension -f firefox-trunk"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Rayquaza01/HistoryCleaner.git"
|
||||
},
|
||||
"author": "Rayquaza01",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Rayquaza01/HistoryCleaner/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Rayquaza01/HistoryCleaner#readme",
|
||||
"dependencies": {
|
||||
"eslint": "^6.5.1",
|
||||
"prettier": "^1.18.2",
|
||||
"web-ext": "^3.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webextension-polyfill": "^0.6.0"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue