mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-21 23:56:12 +01:00

[TASK] Bump eslint from 8.57.0 to 9.2.0 (#1265)

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.2.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v9.2.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2024-05-07 14:40:48 +02:00 committed by GitHub
parent 38b50bdf06
commit f725ef0b03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 26 additions and 91 deletions

View file

@ -1 +0,0 @@
node_modules

View file

@ -1,20 +0,0 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"node": true,
"es6": true,
"amd": true,
"jquery": true
},
"globals": {
"TYPO3": "readonly"
},
"parserOptions": {
"ecmaVersion": 8
}
}

2
.gitattributes vendored
View file

@ -1,7 +1,7 @@
/.Build/ export-ignore /.Build/ export-ignore
/.editorconfig export-ignore /.editorconfig export-ignore
/.eslintignore export-ignore /.eslintignore export-ignore
/.eslintrc.json export-ignore /eslint.config.json export-ignore
/.gitattributes export-ignore /.gitattributes export-ignore
/.github/ export-ignore /.github/ export-ignore
/.gitignore export-ignore /.gitignore export-ignore

19
eslint.config.js Normal file
View file

@ -0,0 +1,19 @@
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
export default [
js.configs.recommended,
eslintConfigPrettier,
{
languageOptions: {
ecmaVersion: 2024,
globals: {
document: false,
TYPO3: "readonly"
},
},
ignores: [
"node_modules"
]
}
]

View file

@ -5,6 +5,7 @@
"url": "https://github.com/FriendsOfTYPO3/tea.git" "url": "https://github.com/FriendsOfTYPO3/tea.git"
}, },
"keywords": [], "keywords": [],
"type": "module",
"author": "", "author": "",
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
@ -15,13 +16,13 @@
"lint:style:fix": "stylelint Resources/Public/**/*.css --fix" "lint:style:fix": "stylelint Resources/Public/**/*.css --fix"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^8.57.0", "eslint": "^9.2.0",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.1.3",
"install": "^0.13.0",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"stylelint": "^15.11.0", "stylelint": "^16.5.0",
"stylelint-config-recommended": "^13.0.0", "stylelint-config-standard-scss": "^13.1.0",
"stylelint-no-browser-hacks": "^1.3.0" "stylelint-no-browser-hacks": "^1.3.0"
} }
} }

View file

@ -1,6 +1,4 @@
"use strict"; export default {
module.exports = {
extends: "stylelint-config-recommended", extends: "stylelint-config-recommended",
rules: { rules: {
"at-rule-empty-line-before": [ "at-rule-empty-line-before": [
@ -15,18 +13,7 @@ module.exports = {
] ]
} }
], ],
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-empty-line-before": "never",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-before": "always-single-line",
"block-no-empty": true, "block-no-empty": true,
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": "lower",
"color-hex-length": "short", "color-hex-length": "short",
"color-no-invalid-hex": true, "color-no-invalid-hex": true,
"comment-empty-line-before": [ "comment-empty-line-before": [
@ -55,8 +42,6 @@ module.exports = {
] ]
} }
], ],
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": [ "declaration-block-no-duplicate-properties": [
true, true,
{ {
@ -67,14 +52,7 @@ module.exports = {
], ],
"declaration-block-no-redundant-longhand-properties": true, "declaration-block-no-redundant-longhand-properties": true,
"declaration-block-no-shorthand-property-overrides": true, "declaration-block-no-shorthand-property-overrides": true,
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1, "declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"declaration-empty-line-before": [ "declaration-empty-line-before": [
"always", "always",
{ {
@ -90,37 +68,13 @@ module.exports = {
], ],
"font-family-no-duplicate-names": true, "font-family-no-duplicate-names": true,
"function-calc-no-unspaced-operator": true, "function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true, "function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": "lower", "function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-whitespace-after": "always",
"indentation": 4,
"keyframe-declaration-no-important": true, "keyframe-declaration-no-important": true,
"length-zero-no-unit": true, "length-zero-no-unit": true,
"max-empty-lines": 1,
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-name-case": "lower",
"media-feature-name-no-unknown": true, "media-feature-name-no-unknown": true,
"media-feature-parentheses-space-inside": "never",
"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-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-empty-source": true, "no-empty-source": true,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true, "no-invalid-double-slash-comments": true,
"no-missing-end-of-source-newline": true,
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"property-case": "lower",
"property-no-unknown": [ "property-no-unknown": [
true, true,
{ {
@ -140,30 +94,12 @@ module.exports = {
] ]
} }
], ],
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-max-empty-lines": 0,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "single", "selector-pseudo-element-colon-notation": "single",
"selector-pseudo-element-no-unknown": true, "selector-pseudo-element-no-unknown": true,
"selector-type-case": "lower", "selector-type-case": "lower",
"selector-type-no-unknown": true, "selector-type-no-unknown": true,
"shorthand-property-no-redundant-values": true, "shorthand-property-no-redundant-values": true,
"string-no-newline": true, "string-no-newline": true,
"unit-case": "lower",
"unit-no-unknown": true, "unit-no-unknown": true,
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-list-max-empty-lines": 0,
}, },
}; };