Skip to content

Commit

Permalink
Merge pull request #1 from thewlabs/develop
Browse files Browse the repository at this point in the history
Update project branding and author details
  • Loading branch information
wilfriedago authored Aug 28, 2024
2 parents 3d12511 + 0f250ed commit 1e077ee
Show file tree
Hide file tree
Showing 12 changed files with 1,597 additions and 1,378 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

16 changes: 1 addition & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
// Enable the flat config support
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": true,

// Disable the default formatter
"prettier.enable": false,
Expand All @@ -14,20 +14,6 @@

"eslint.runtime": "node",

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "@stylistic/*", "severity": "warn" },
{ "rule": "style*", "severity": "warn" },
{ "rule": "*-indent", "severity": "warn" },
{ "rule": "*-spacing", "severity": "warn" },
{ "rule": "*-spaces", "severity": "warn" },
{ "rule": "*-order", "severity": "warn" },
{ "rule": "*-dangle", "severity": "warn" },
{ "rule": "*-newline", "severity": "warn" },
{ "rule": "*quotes", "severity": "warn" },
{ "rule": "*semi", "severity": "warn" }
],

"eslint.validate": [
"javascript",
"javascriptreact",
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Please refer to https://github.com/antfu/contribute
Please refer to https://github.com/thewlabs/contribute
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021-PRESENT Anthony Fu <https://github.com/antfu>
Copyright (c) 2021-PRESENT thewlabs <https://github.com/thewlabs>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
# eslint-plugin-antfu
# eslint-plugin-thewlabs

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]

Anthony extended ESLint rules. For [antfu/eslint-config](https://github.com/antfu/eslint-config).
thewlabs extended eslint rules. For [thewlabs/eslint-config](https://github.com/thewlabs/eslint-config-thewlabs).

[Rules List](./src/rules)

## Sponsors

<p align="center">
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
</a>
</p>

## License

[MIT](./LICENSE) License © 2023-PRESENT [Anthony Fu](https://github.com/antfu)
[MIT](./LICENSE) License © 2023-PRESENT [Anthony Fu](https://github.com/thewlabs)

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/eslint-plugin-antfu?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/eslint-plugin-antfu
[npm-downloads-src]: https://img.shields.io/npm/dm/eslint-plugin-antfu?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/eslint-plugin-antfu
[npm-version-src]: https://img.shields.io/npm/v/eslint-plugin-thewlabs?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/eslint-plugin-thewlabs
[npm-downloads-src]: https://img.shields.io/npm/dm/eslint-plugin-thewlabs?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/eslint-plugin-thewlabs
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import antfu from '@antfu/eslint-config'
import thewlabs from 'eslint-config-thewlabs'
import { tsImport } from 'tsx/esm/api'

const local = await tsImport('./src/index.ts', import.meta.url).then(r => r.default)

export default antfu(
export default thewlabs(
{
type: 'lib',
},
Expand All @@ -14,14 +14,15 @@ export default antfu(
name: 'tests',
files: ['**/*.test.ts'],
rules: {
'antfu/indent-unindent': 'error',
// 'thewlabs/indent-unindent': 'error',
},
},
)
// replace local config
.onResolved((configs) => {
configs.forEach((config) => {
if (config?.plugins?.antfu)
config.plugins.antfu = local
if (config?.plugins?.thewlabs) {
config.plugins.thewlabs = local
}
})
})
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"name": "eslint-plugin-antfu",
"name": "eslint-plugin-thewlabs",
"type": "module",
"version": "2.3.6",
"packageManager": "pnpm@9.8.0",
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1",
"description": "Anthony extended ESLint rules",
"author": "Anthony Fu <[email protected]>",
"author": "Wilfried AGO <[email protected]> (https://github.com/wilfriedago)",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/antfu/eslint-plugin-antfu#readme",
"homepage": "https://github.com/thewlabs/eslint-plugin-thewlabs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/antfu/eslint-plugin-antfu.git"
"url": "git+https://github.com/thewlabs/eslint-plugin-thewlabs.git"
},
"bugs": "https://github.com/antfu/eslint-plugin-antfu/issues",
"bugs": "https://github.com/thewlabs/eslint-plugin-thewlabs/issues",
"keywords": [],
"sideEffects": false,
"exports": {
Expand All @@ -31,9 +30,9 @@
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "pnpm run dev && eslint .",
"lint": "pnpm dev && eslint .",
"prepublishOnly": "nr build",
"release": "bumpp && npm publish",
"release": "bumpp && pnpm publish",
"start": "esno src/index.ts",
"test": "vitest",
"typecheck": "tsc --noEmit",
Expand All @@ -46,8 +45,6 @@
"@antfu/utils": "^0.7.10"
},
"devDependencies": {
"@antfu/eslint-config": "^2.27.0",
"@antfu/ni": "^0.22.4",
"@types/eslint": "^9.6.0",
"@types/lodash.merge": "^4.6.9",
"@types/node": "^22.5.0",
Expand All @@ -56,7 +53,9 @@
"@typescript-eslint/utils": "^8.2.0",
"bumpp": "^9.5.1",
"eslint": "^9.9.0",
"eslint-config-thewlabs": "^2.27.5",
"eslint-define-config": "^2.1.0",
"eslint-plugin-thewlabs": "workspace:*",
"eslint-vitest-rule-tester": "^0.6.1",
"esno": "^4.7.0",
"jsonc-eslint-parser": "^2.4.0",
Expand All @@ -73,7 +72,7 @@
"vitest": "^2.0.5"
},
"resolutions": {
"eslint-plugin-antfu": "workspace:*"
"eslint-plugin-thewlabs": "workspace:*"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
Expand Down
Loading

0 comments on commit 1e077ee

Please sign in to comment.