Skip to content

Commit

Permalink
Merge branch 'release/v0.23.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Aug 14, 2024
2 parents 5158fa2 + 75b239b commit 21ea985
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 42 deletions.
43 changes: 2 additions & 41 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,4 @@
import antfu from '@antfu/eslint-config'
import { eslintDefaults } from './src/common/eslint-defaults.js'

export default antfu(
{
vue: true,
typescript: true,
// typescript: {
// tsconfigPath: './tsconfig.json',
// },
ignores: [
'dist',
'node_modules',
'build',
'tmp',
// 'demos',
'docs',
'coverage',
'_archive',
// '*.md',
// '*.spec.*',
// 'vitest.config.ts',
],
rules: {
'unused-imports/no-unused-vars': 'off',
'ts/no-unsafe-assignment': 'off',
'ts/no-unsafe-return': 'off',
'ts/no-unsafe-member-access': 'off',
'ts/no-unsafe-argument': 'off',
'ts/no-unsafe-call': 'off',
'ts/restrict-template-expressions': 'off',
'ts/no-misused-promises': 'off',
// 'ts/no-floating-promises': 'error',
// 'ts/require-await': 'error',

// All import properties in one line
'object-curly-newline': ['error', {
ImportDeclaration: 'never',
// ExportDeclaration: 'always'
}],

},
},
)
export default antfu(eslintDefaults())
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed",
"type": "module",
"version": "0.23.2",
"version": "0.23.3",
"description": "🌱 Simple foundation library",
"author": {
"name": "Dirk Holtwick",
Expand Down
38 changes: 38 additions & 0 deletions src/common/eslint-defaults.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
export function eslintDefaults() {
return {
vue: true,
typescript: true,
ignores: [
'dist',
'node_modules',
'build',
'tmp',
// 'demos',
'docs',
'coverage',
'_archive',
// '*.md',
// '*.spec.*',
// 'vitest.config.ts',
],
rules: {
'unused-imports/no-unused-vars': 'off',
'ts/no-unsafe-assignment': 'off',
'ts/no-unsafe-return': 'off',
'ts/no-unsafe-member-access': 'off',
'ts/no-unsafe-argument': 'off',
'ts/no-unsafe-call': 'off',
'ts/restrict-template-expressions': 'off',
'ts/no-misused-promises': 'off',
// 'ts/no-floating-promises': 'error',
// 'ts/require-await': 'error',

// All import properties in one line
'object-curly-newline': ['error', {
ImportDeclaration: 'never',
// ExportDeclaration: 'always'
}],

},
}
}
1 change: 1 addition & 0 deletions src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './data'
export * from './dispose-defer'
export * from './dispose-types'
export * from './dispose-utils'
export * from './eslint-defaults'
export * from './exec'
export * from './global'
export * from './localhost'
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
"strict": true,
"strictNullChecks": true,
"declaration": true,
"outDir": "./dist",
"sourceMap": true,
"esModuleInterop": true,
"isolatedModules": true
},
"include": [
"src/**/*.ts",
"src/**/*.js",
"demos/**/*.ts",
"*.ts"
],
Expand Down

0 comments on commit 21ea985

Please sign in to comment.