1
0
Fork 0

chore: migrate eslint config

This commit is contained in:
Michael Kriese 2024-09-25 08:34:57 +02:00
parent c54ebb8bc7
commit a8f141f6d1
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
2 changed files with 51 additions and 51 deletions

View file

@ -13,6 +13,7 @@ parserOptions:
plugins: plugins:
- "@eslint-community/eslint-plugin-eslint-comments" - "@eslint-community/eslint-plugin-eslint-comments"
- "@stylistic/eslint-plugin-js" - "@stylistic/eslint-plugin-js"
- "@vitest"
- eslint-plugin-array-func - eslint-plugin-array-func
- eslint-plugin-github - eslint-plugin-github
- eslint-plugin-i - eslint-plugin-i
@ -21,7 +22,6 @@ plugins:
- eslint-plugin-regexp - eslint-plugin-regexp
- eslint-plugin-sonarjs - eslint-plugin-sonarjs
- eslint-plugin-unicorn - eslint-plugin-unicorn
- eslint-plugin-vitest
- eslint-plugin-vitest-globals - eslint-plugin-vitest-globals
- eslint-plugin-wc - eslint-plugin-wc
@ -50,55 +50,55 @@ overrides:
env: env:
vitest-globals/env: true vitest-globals/env: true
rules: rules:
vitest/consistent-test-filename: [0] "@vitest/consistent-test-filename": [0]
vitest/consistent-test-it: [0] "@vitest/consistent-test-it": [0]
vitest/expect-expect: [0] "@vitest/expect-expect": [0]
vitest/max-expects: [0] "@vitest/max-expects": [0]
vitest/max-nested-describe: [0] "@vitest/max-nested-describe": [0]
vitest/no-alias-methods: [0] "@vitest/no-alias-methods": [0]
vitest/no-commented-out-tests: [0] "@vitest/no-commented-out-tests": [0]
vitest/no-conditional-expect: [0] "@vitest/no-conditional-expect": [0]
vitest/no-conditional-in-test: [0] "@vitest/no-conditional-in-test": [0]
vitest/no-conditional-tests: [0] "@vitest/no-conditional-tests": [0]
vitest/no-disabled-tests: [0] "@vitest/no-disabled-tests": [0]
vitest/no-done-callback: [0] "@vitest/no-done-callback": [0]
vitest/no-duplicate-hooks: [0] "@vitest/no-duplicate-hooks": [0]
vitest/no-focused-tests: [0] "@vitest/no-focused-tests": [0]
vitest/no-hooks: [0] "@vitest/no-hooks": [0]
vitest/no-identical-title: [2] "@vitest/no-identical-title": [2]
vitest/no-interpolation-in-snapshots: [0] "@vitest/no-interpolation-in-snapshots": [0]
vitest/no-large-snapshots: [0] "@vitest/no-large-snapshots": [0]
vitest/no-mocks-import: [0] "@vitest/no-mocks-import": [0]
vitest/no-restricted-matchers: [0] "@vitest/no-restricted-matchers": [0]
vitest/no-restricted-vi-methods: [0] "@vitest/no-restricted-vi-methods": [0]
vitest/no-standalone-expect: [0] "@vitest/no-standalone-expect": [0]
vitest/no-test-prefixes: [0] "@vitest/no-test-prefixes": [0]
vitest/no-test-return-statement: [0] "@vitest/no-test-return-statement": [0]
vitest/prefer-called-with: [0] "@vitest/prefer-called-with": [0]
vitest/prefer-comparison-matcher: [0] "@vitest/prefer-comparison-matcher": [0]
vitest/prefer-each: [0] "@vitest/prefer-each": [0]
vitest/prefer-equality-matcher: [0] "@vitest/prefer-equality-matcher": [0]
vitest/prefer-expect-resolves: [0] "@vitest/prefer-expect-resolves": [0]
vitest/prefer-hooks-in-order: [0] "@vitest/prefer-hooks-in-order": [0]
vitest/prefer-hooks-on-top: [2] "@vitest/prefer-hooks-on-top": [2]
vitest/prefer-lowercase-title: [0] "@vitest/prefer-lowercase-title": [0]
vitest/prefer-mock-promise-shorthand: [0] "@vitest/prefer-mock-promise-shorthand": [0]
vitest/prefer-snapshot-hint: [0] "@vitest/prefer-snapshot-hint": [0]
vitest/prefer-spy-on: [0] "@vitest/prefer-spy-on": [0]
vitest/prefer-strict-equal: [0] "@vitest/prefer-strict-equal": [0]
vitest/prefer-to-be: [0] "@vitest/prefer-to-be": [0]
vitest/prefer-to-be-falsy: [0] "@vitest/prefer-to-be-falsy": [0]
vitest/prefer-to-be-object: [0] "@vitest/prefer-to-be-object": [0]
vitest/prefer-to-be-truthy: [0] "@vitest/prefer-to-be-truthy": [0]
vitest/prefer-to-contain: [0] "@vitest/prefer-to-contain": [0]
vitest/prefer-to-have-length: [0] "@vitest/prefer-to-have-length": [0]
vitest/prefer-todo: [0] "@vitest/prefer-todo": [0]
vitest/require-hook: [0] "@vitest/require-hook": [0]
vitest/require-to-throw-message: [0] "@vitest/require-to-throw-message": [0]
vitest/require-top-level-describe: [0] "@vitest/require-top-level-describe": [0]
vitest/valid-describe-callback: [2] "@vitest/valid-describe-callback": [2]
vitest/valid-expect: [2] "@vitest/valid-expect": [2]
vitest/valid-title: [2] "@vitest/valid-title": [2]
- files: ["web_src/js/modules/fetch.js", "web_src/js/standalone/**/*"] - files: ["web_src/js/modules/fetch.js", "web_src/js/standalone/**/*"]
rules: rules:
no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression] no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]

View file

@ -67,6 +67,7 @@
"@stylistic/stylelint-plugin": "3.0.1", "@stylistic/stylelint-plugin": "3.0.1",
"@vitejs/plugin-vue": "5.1.3", "@vitejs/plugin-vue": "5.1.3",
"@vitest/coverage-v8": "2.1.1", "@vitest/coverage-v8": "2.1.1",
"@vitest/eslint-plugin": "1.0.0",
"@vue/test-utils": "2.4.6", "@vue/test-utils": "2.4.6",
"eslint": "8.57.1", "eslint": "8.57.1",
"eslint-plugin-array-func": "4.0.0", "eslint-plugin-array-func": "4.0.0",
@ -78,7 +79,6 @@
"eslint-plugin-regexp": "2.6.0", "eslint-plugin-regexp": "2.6.0",
"eslint-plugin-sonarjs": "2.0.2", "eslint-plugin-sonarjs": "2.0.2",
"eslint-plugin-unicorn": "55.0.0", "eslint-plugin-unicorn": "55.0.0",
"@vitest/eslint-plugin": "1.0.0",
"eslint-plugin-vitest-globals": "1.5.0", "eslint-plugin-vitest-globals": "1.5.0",
"eslint-plugin-vue": "9.28.0", "eslint-plugin-vue": "9.28.0",
"eslint-plugin-vue-scoped-css": "2.8.1", "eslint-plugin-vue-scoped-css": "2.8.1",