Skip to content

Commit

Permalink
fix: restore $turnstile types, update and lint project (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli authored Apr 4, 2023
1 parent 4c90d16 commit 0510083
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 964 deletions.
21 changes: 1 addition & 20 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended', 'eslint:recommended'],
extends: ['@nuxt/eslint-config', 'plugin:prettier/recommended'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-inferrable-types': 1,
'@typescript-eslint/no-explicit-any': 'off',
'no-unused-vars': 'off',
'no-redeclare': 'off',
'no-undef': 'off',
'no-empty': 'off',
},
}
2 changes: 1 addition & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
rollup: { emitCJS: true },
externals: ['node:url']
externals: ['node:url'],
})
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@
"lint:eslint": "eslint --fix",
"lint:prettier": "prettier --write --loglevel warn",
"prepack": "pnpm build",
"prepare": "husky install",
"prepublishOnly": "pnpm lint && pnpm test && pinst --disable",
"release": "bumpp && npm publish",
"test": "vitest run",
"test:types": "tsc --noEmit",
"test:types": "tsc --noEmit && nuxt typecheck",
"postinstall": "husky install",
"postpublish": "pinst --enable"
},
Expand All @@ -55,10 +54,10 @@
"pathe": "^1.0.0"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.1.1",
"@nuxt/module-builder": "0.2.1",
"@nuxt/schema": "3.3.2",
"@nuxt/test-utils": "3.3.2",
"@nuxtjs/eslint-config-typescript": "12.0.0",
"@types/node": "18.15.11",
"@vitest/coverage-c8": "0.29.8",
"bumpp": "^9.1.0",
Expand Down
6 changes: 3 additions & 3 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ export default defineNuxtConfig({
modules: ['@nuxtjs/turnstile'],
runtimeConfig: {
turnstile: {
secretKey: '1x0000000000000000000000000000000AA'
secretKey: '1x0000000000000000000000000000000AA',
},
},
turnstile: {
siteKey: '1x00000000000000000000AA'
}
siteKey: '1x00000000000000000000AA',
},
})
Loading

0 comments on commit 0510083

Please sign in to comment.