-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency eslint to v9 (#1072)
* Update dependency eslint to v9 * migrated to `@nuxt/eslint` * fixed linting errors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Frank Elsinga <[email protected]>
- Loading branch information
1 parent
2682790
commit 530c393
Showing
21 changed files
with
2,132 additions
and
1,879 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,4 @@ coverage | |
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
/cdn/ | ||
|
||
# lockfiles | ||
pnpm-lock.yaml | ||
package-lock.json | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import withNuxt from "./.nuxt/eslint.config.mjs"; | ||
|
||
export default withNuxt( | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
}, | ||
}, | ||
rules: { | ||
"vue/no-multiple-template-root": "off", | ||
"vue/no-v-html": "off", | ||
"vue/block-lang": [ | ||
"error", | ||
{ | ||
script: { | ||
lang: "ts", | ||
}, | ||
}, | ||
], | ||
"vue/block-order": [ | ||
"error", | ||
{ | ||
order: ["script", "template", "style", "i18n"], | ||
}, | ||
], | ||
"vue/block-tag-newline": "error", | ||
"vue/component-api-style": [ | ||
"error", | ||
["script-setup", "composition"], // "script-setup", "composition", "composition-vue2", or "options" | ||
], | ||
"vue/multi-word-component-names": "off", | ||
"vue/component-name-in-template-casing": ["error", "PascalCase", { registeredComponentsOnly: false }], | ||
"vue/custom-event-name-casing": ["error", "camelCase"], | ||
"vue/define-macros-order": "error", | ||
"vue/define-props-declaration": ["error", "type-based"], | ||
"vue/html-button-has-type": [ | ||
"error", | ||
{ | ||
button: true, | ||
submit: true, | ||
reset: true, | ||
}, | ||
], | ||
"vue/no-boolean-default": ["error", "default-false"], | ||
"vue/no-empty-component-block": "error", | ||
"vue/html-comment-content-spacing": ["error", "always"], | ||
"vue/no-ref-object-reactivity-loss": "error", | ||
"vue/no-required-prop-with-default": "error", | ||
"vue/no-restricted-call-after-await": "error", | ||
//"vue/no-root-v-if": "error", todo: enable when there is a loading animation | ||
"vue/no-setup-props-reactivity-loss": "error", | ||
//"vue/no-static-inline-styles": "error", todo: enable after migration to tailwind | ||
"vue/no-useless-mustaches": "error", | ||
"vue/no-useless-v-bind": "error", | ||
"vue/no-v-text": "error", | ||
"vue/padding-line-between-blocks": "error", | ||
"vue/prefer-prop-type-boolean-first": "error", | ||
"vue/prefer-separate-static-class": "error", | ||
"vue/require-macro-variable-name": "error", | ||
"vue/require-typed-ref": "error", | ||
"vue/static-class-names-order": "off", | ||
"vue/v-for-delimiter-style": "error", | ||
"vue/no-constant-condition": "error", | ||
}, | ||
}, | ||
// your custom flat configs go here, for example: | ||
// { | ||
// files: ['**/*.ts', '**/*.tsx'], | ||
// rules: { | ||
// 'no-console': 'off' // allow console.log in TypeScript files | ||
// } | ||
// }, | ||
// { | ||
// ... | ||
// } | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.