Skip to content

Commit

Permalink
v6.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Magic <[email protected]>
  • Loading branch information
magicoflolis committed Aug 6, 2023
1 parent 8b6f8bf commit d61af4b
Show file tree
Hide file tree
Showing 9 changed files with 3,548 additions and 1,183 deletions.
2,304 changes: 1,192 additions & 1,112 deletions dist/magic-userjs.user.js

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
'use strict'
import js from '@eslint/js'
import globals from 'globals'
import configPrettier from 'eslint-config-prettier'

export default [
js.configs.recommended,
configPrettier,
{
// files: ['**/*.js'],
ignores: [
'userscript/header.js',
'src/UserJS/header.js',
'src/**/header.js',
'src/languages.js',
'tools/userscript.js',
'dist/**/*.js',
],
languageOptions: {
ecmaVersion: 'latest',
globals: {
MU: 'writable',
boxCSS: 'readonly',
main_css: 'readonly',
custom_width: 'readonly',
jaeFetchUserJSFrame: 'readonly',
sleazyfork_redirect: 'readonly',
webext: 'readonly',
brws: 'readonly',
...globals.node,
...globals.nodeBuiltin,
...globals.browser,
...globals.greasemonkey,
...globals.webextensions,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
allowImportExportEverywhere: false,
ecmaFeatures: {
globalReturn: true,
arrowFunctions: true,
modules: true,
},
},
},
rules: {
'keyword-spacing': ['error', { before: true }],
'no-var': 'error',
'prefer-const': ['error', { destructuring: 'all' }],
'prefer-promise-reject-errors': 'error',
'prefer-regex-literals': ['error', { disallowRedundantWrapping: true }],
quotes: [
'error',
'single',
{ avoidEscape: true, allowTemplateLiterals: false },
],
semi: ['error', 'never'],
'space-before-blocks': ['error', 'always'],
// 'space-before-function-paren': ['error', 'always'],
},
},
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/magicoflolis/Userscript-Plus/issues/new"
},
"userJS": {
"version": "5.12.0",
"version": "6.0.0",
"name": "Magic Userscript+ : Show Site All UserJS",
"bugs": "https://github.com/magicoflolis/Userscript-Plus/issues/new",
"homepage": "https://github.com/magicoflolis/Userscript-Plus",
Expand Down
Loading

0 comments on commit d61af4b

Please sign in to comment.