-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using types in composables and use new Nuxt ESLint (#65)
* Switch to new Nuxt ESLint * add types * workaround case issue in useWPNuxtLogger.ts
- Loading branch information
1 parent
d9768ba
commit 15e0310
Showing
75 changed files
with
10,642 additions
and
9,041 deletions.
There are no files selected for viewing
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,4 @@ | ||
{ | ||
// Enable ESlint flat config support | ||
"eslint.experimental.useFlatConfig": true, | ||
} |
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 @@ | ||
[{"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/layouts/default.vue":"1","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/app.config.ts":"2","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/app.vue":"3","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/error.vue":"4","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/nuxt.config.ts":"5","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/nuxt.schema.ts":"6","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/tailwind.config.ts":"7","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/FooterComponent.vue":"8","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/HeaderComponent.vue":"9","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/LogoComponent.vue":"10","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/layouts/docs.vue":"11","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/pages/[...slug].vue":"12","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/pages/index.vue":"13","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/pages/playground.vue":"14","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/OgImage/OgImageDocs.vue":"15","/Users/wouter/git/wpnuxt/wpnuxt-module/docs/server/api/search.json.get.ts":"16"},{"size":53,"mtime":1712308934974,"results":"17","hashOfConfig":"18"},{"size":2642,"mtime":1713937151495,"results":"19","hashOfConfig":"20"},{"size":1167,"mtime":1713933330778,"results":"21","hashOfConfig":"22"},{"size":1023,"mtime":1713933330778,"results":"23","hashOfConfig":"22"},{"size":907,"mtime":1713936805400,"results":"24","hashOfConfig":"20"},{"size":7111,"mtime":1713933330778,"results":"25","hashOfConfig":"20"},{"size":1862,"mtime":1713933330778,"results":"26","hashOfConfig":"20"},{"size":494,"mtime":1712308934970,"results":"27","hashOfConfig":"22"},{"size":1369,"mtime":1713933330778,"results":"28","hashOfConfig":"22"},{"size":149,"mtime":1712308934971,"results":"29","hashOfConfig":"22"},{"size":495,"mtime":1712308934975,"results":"30","hashOfConfig":"18"},{"size":2510,"mtime":1713933330778,"results":"31","hashOfConfig":"18"},{"size":13057,"mtime":1713937410635,"results":"32","hashOfConfig":"18"},{"size":577,"mtime":1713933330778,"results":"33","hashOfConfig":"18"},{"size":536,"mtime":1713933330778,"results":"34","hashOfConfig":"22"},{"size":203,"mtime":1713933330778,"results":"35","hashOfConfig":"20"},{"filePath":"36","messages":"37","suppressedMessages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"kacpou",{"filePath":"39","messages":"40","suppressedMessages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1di4uzd",{"filePath":"42","messages":"43","suppressedMessages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"brs66o",{"filePath":"45","messages":"46","suppressedMessages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"48","messages":"49","suppressedMessages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","suppressedMessages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","suppressedMessages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","suppressedMessages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","suppressedMessages":"62","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","suppressedMessages":"65","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"66","messages":"67","suppressedMessages":"68","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"69","messages":"70","suppressedMessages":"71","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","suppressedMessages":"74","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"75","messages":"76","suppressedMessages":"77","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"78","messages":"79","suppressedMessages":"80","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"81","messages":"82","suppressedMessages":"83","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/layouts/default.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/app.config.ts",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/app.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/error.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/nuxt.config.ts",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/nuxt.schema.ts",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/tailwind.config.ts",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/FooterComponent.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/HeaderComponent.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/LogoComponent.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/layouts/docs.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/pages/[...slug].vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/pages/index.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/pages/playground.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/components/OgImage/OgImageDocs.vue",[],[],"/Users/wouter/git/wpnuxt/wpnuxt-module/docs/server/api/search.json.get.ts",[],[]] |
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
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
File renamed without changes.
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,15 @@ | ||
import withNuxt from './.nuxt/eslint.config.mjs' | ||
|
||
export default withNuxt( | ||
{ | ||
rules: { | ||
// Global | ||
'semi': ['error', 'never'], | ||
'quotes': ['error', 'single'], | ||
// Vue | ||
'vue/multi-word-component-names': 0, | ||
'vue/max-attributes-per-line': 'off', | ||
'vue/no-v-html': 0, | ||
}, | ||
}, | ||
) |
Oops, something went wrong.