Skip to content

Commit

Permalink
updated dev dependencies and configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
cadeyrn committed Jun 15, 2024
1 parent fda4610 commit 404b90b
Show file tree
Hide file tree
Showing 10 changed files with 2,565 additions and 4,822 deletions.
100 changes: 56 additions & 44 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"plugins": [
"compat",
"no-unsanitized",
"promise",
"jsdoc",
"sort-requires",
"xss"
],
Expand Down Expand Up @@ -36,8 +34,7 @@
"comma-dangle": "error",
"comma-spacing": "error",
"comma-style": "error",
"compat/compat": "error",
"complexity": "error",
"complexity": ["error", { "max": 30 }],
"computed-property-spacing": "error",
"consistent-return": "error",
"consistent-this": ["error", "self"],
Expand Down Expand Up @@ -67,6 +64,58 @@
"implicit-arrow-linebreak": ["error", "beside"],
"indent": ["error", 2, { "SwitchCase" : 1}],
"init-declarations": "error",
"jsdoc/check-access": "warn",
"jsdoc/check-alignment": "warn",
"jsdoc/check-examples": "off",
"jsdoc/check-indentation": "warn",
"jsdoc/check-line-alignment": "warn",
"jsdoc/check-param-names": "warn",
"jsdoc/check-property-names": "warn",
"jsdoc/check-syntax": "warn",
"jsdoc/check-tag-names": "warn",
"jsdoc/check-types": "warn",
"jsdoc/check-values": "warn",
"jsdoc/empty-tags": "warn",
"jsdoc/implements-on-classes": "warn",
"jsdoc/imports-as-dependencies": "warn",
"jsdoc/informative-docs": "off",
"jsdoc/match-description": "off",
"jsdoc/match-name": "off",
"jsdoc/multiline-blocks": "warn",
"jsdoc/no-bad-blocks": "off",
"jsdoc/no-blank-block-descriptions": "warn",
"jsdoc/no-blank-blocks": "warn",
"jsdoc/no-defaults": "warn",
"jsdoc/no-missing-syntax": "off",
"jsdoc/no-multi-asterisks": "warn",
"jsdoc/no-restricted-syntax": "off",
"jsdoc/no-types": "off",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-asterisk-prefix": "warn",
"jsdoc/require-description": "warn",
"jsdoc/require-description-complete-sentence": "off",
"jsdoc/require-example": "off",
"jsdoc/require-file-overview": "off",
"jsdoc/require-hyphen-before-param-description": "warn",
"jsdoc/require-jsdoc": "warn",
"jsdoc/require-param": "warn",
"jsdoc/require-param-description": "warn",
"jsdoc/require-param-name": "warn",
"jsdoc/require-param-type": "warn",
"jsdoc/require-property": "warn",
"jsdoc/require-property-description": "warn",
"jsdoc/require-property-name": "warn",
"jsdoc/require-property-type": "warn",
"jsdoc/require-returns": "warn",
"jsdoc/require-returns-check": "warn",
"jsdoc/require-returns-description": "warn",
"jsdoc/require-returns-type": "warn",
"jsdoc/require-throws": "warn",
"jsdoc/require-yields": "warn",
"jsdoc/require-yields-check": "warn",
"jsdoc/sort-tags": "off",
"jsdoc/tag-lines": "off",
"jsdoc/valid-types": "warn",
"jsx-quotes": "error",
"key-spacing": ["error", { "beforeColon": true }],
"keyword-spacing": "error",
Expand Down Expand Up @@ -165,11 +214,10 @@
"no-new": "error",
"no-new-func": "error",
"no-new-native-nonconstructor": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-new-object": "error",
"no-nonoctal-decimal-escape": "error",
"no-obj-calls": "error",
"no-object-constructor": "error",
"no-octal-escape": "error",
"no-octal": "error",
"no-param-reassign": "error",
Expand Down Expand Up @@ -212,13 +260,12 @@
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unsafe-optional-chaining": "error",
"no-unsanitized/method": "error",
"no-unsanitized/property": "error",
"no-unused-expressions": ["error", { "allowTernary": true }],
"no-unused-labels": "error",
"no-unused-private-class-members": "error",
"no-unused-vars": ["error", { "vars": "local" }],
"no-use-before-define": "error",
"no-useless-assignment": "off",
"no-useless-backreference": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
Expand Down Expand Up @@ -262,31 +309,11 @@
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "off",
"promise/always-return": "error",
"promise/avoid-new": "off",
"promise/catch-or-return": "error",
"promise/no-callback-in-promise": "error",
"promise/no-multiple-resolved": "error",
"promise/no-native": "off",
"promise/no-nesting": "error",
"promise/no-promise-in-callback": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/prefer-await-to-callbacks": "error",
"promise/prefer-await-to-then": "off",
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single"],
"radix": ["error", "as-needed"],
"require-atomic-updates": "error",
"require-await": "error",
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": false
}
}],
"require-unicode-regexp": "off",
"require-yield": "error",
"rest-spread-spacing": "error",
Expand All @@ -310,21 +337,6 @@
"template-tag-spacing": ["error", "always"],
"unicode-bom": "error",
"use-isnan": "error",
"valid-jsdoc": ["error", {
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"return": "returns",
"virtual": "abstract"
},
"preferType": {
"Boolean": "boolean",
"Number": "number",
"object": "Object",
"String": "string"
}
}],
"valid-typeof": "error",
"vars-on-top": "error",
"wrap-iife": "error",
Expand Down
18 changes: 17 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"rules": {
"alpha-value-notation": "number",
"annotation-no-unknown": true,
"at-rule-allowed-list": null,
"at-rule-disallowed-list": null,
"at-rule-empty-line-before": "always",
Expand Down Expand Up @@ -35,6 +36,7 @@
"color-no-invalid-hex": true,
"comment-empty-line-before": ["always", { "ignore": ["stylelint-commands"] }],
"comment-no-empty": true,
"comment-pattern": null,
"comment-whitespace-inside": "always",
"comment-word-disallowed-list": ["todo", "fixme", "xxx"],
"csstree/validator": true,
Expand All @@ -44,6 +46,7 @@
"custom-property-pattern": null,
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-custom-properties": true,
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-redundant-longhand-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
Expand All @@ -58,10 +61,12 @@
"declaration-colon-space-before": "never",
"declaration-empty-line-before": "never",
"declaration-no-important": true,
"declaration-property-max-values": null,
"declaration-property-unit-allowed-list": null,
"declaration-property-unit-disallowed-list": null,
"declaration-property-value-allowed-list": null,
"declaration-property-value-disallowed-list": null,
"declaration-property-value-no-unknown": true,
"font-family-name-quotes": "always-where-recommended",
"font-family-no-duplicate-names": true,
"font-family-no-missing-generic-family-keyword": true,
Expand All @@ -85,8 +90,11 @@
"function-url-scheme-disallowed-list": null,
"function-whitespace-after": "always",
"hue-degree-notation": "angle",
"import-notation": "string",
"indentation": 2,
"keyframe-block-no-duplicate-selectors": null,
"keyframe-declaration-no-important": true,
"keyframe-selector-notation": "percentage",
"keyframes-name-pattern": null,
"length-zero-no-unit": true,
"linebreaks": "unix",
Expand All @@ -100,15 +108,18 @@
"media-feature-name-disallowed-list": null,
"media-feature-name-no-unknown": true,
"media-feature-name-no-vendor-prefix": true,
"media-feature-name-unit-allowed-list": { "/width/": ["px"], "/height/": ["px"] },
"media-feature-name-value-allowed-list": null,
"media-feature-name-value-no-unknown": true,
"media-feature-parentheses-space-inside": "never",
"media-feature-range-notation": "prefix",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-newline-before": "never-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never-single-line",
"media-feature-range-notation": "prefix",
"media-query-no-invalid": true,
"named-grid-areas-no-invalid": true,
"no-descending-specificity": null,
"no-duplicate-at-import-rules": true,
Expand All @@ -122,6 +133,7 @@
"no-irregular-whitespace": true,
"no-missing-end-of-source-newline": true,
"no-unknown-animations": true,
"no-unknown-custom-properties": false,
"number-leading-zero": "never",
"number-max-precision": 2,
"number-no-trailing-zeros": true,
Expand All @@ -146,6 +158,7 @@
"font",
"border",
"background",
"background-color",
"color",
"list-style",
"vertical-align",
Expand All @@ -165,7 +178,9 @@
"property-no-vendor-prefix": true,
"rule-empty-line-before": ["always", { "except" : ["first-nested"] }],
"rule-selector-property-disallowed-list": null,
"selector-anb-no-unmatchable": true,
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-name-disallowed-list": ["class", "id"],
"selector-attribute-operator-allowed-list": null,
"selector-attribute-operator-disallowed-list": null,
"selector-attribute-operator-space-after": "never",
Expand Down Expand Up @@ -195,6 +210,7 @@
"selector-nested-pattern": null,
"selector-no-qualifying-type": null,
"selector-no-vendor-prefix": true,
"selector-not-notation": "complex",
"selector-pseudo-class-allowed-list": null,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-disallowed-list": null,
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@

- [BUGFIX] fixed a bug that caused the new tab page to be reset when the settings were opened, fixes
[#341](https://github.com/cadeyrn/newtaboverride/issues/341)
- [DEPENDENCY] added eslint-plugin-jsdoc 48.2.12
- [DEPENDENCY] updated eslint from version 8.56.0 to 9.5.0 and updated configuration
- [DEPENDENCY] updated gulp from version 4.0.2 to 5.0.0
- [DEPENDENCY] updated gulp-eslint-new from version 1.9.0 to 2.1.0
- [DEPENDENCY] updated jsdoc from version 4.0.2 to 4.0.3
- [DEPENDENCY] updated stylelint configuration
- [DEPENDENCY] updated web-ext from version 7.11.0 to 8.1.0
- [DEPENDENCY] removed eslint-plugin-compat
- [DEPENDENCY] removed eslint-plugin-no-unsanitized
- [DEPENDENCY] removed eslint-plugin-promise

### Version 16.0.0 (2024-02-04)

Expand Down
10 changes: 8 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ gulp.task('lint-html', () => gulp.src(['./src/html/*.html'])
);

gulp.task('lint-js', () => gulp.src(['gulpfile.js', './src/js/**/*.js'])
.pipe(gulpEslint({ overrideConfigFile : '.eslintrc.json' }))
.pipe(gulpEslint({ overrideConfigFile : '.eslintrc.json', configType : 'eslintrc' }))
.pipe(gulpEslint.format())
);

gulp.task('lint-css', () => gulp.src(['./src/css/*.css'])
.pipe(gulpStylelint({
failAfterError : false
failAfterError : false,
reporters : [
{
formatter : 'string',
console : true
}
]
}))
);

Expand Down
Loading

0 comments on commit 404b90b

Please sign in to comment.