-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: eslint-plugin-case-police (#153)
Co-authored-by: Anthony Fu <[email protected]>
- Loading branch information
Showing
41 changed files
with
2,441 additions
and
1,601 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fixture |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
ignore-workspace-root-check=true | ||
shamefully-hoist=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
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 |
---|---|---|
@@ -1,60 +1,30 @@ | ||
{ | ||
"name": "case-police", | ||
"type": "module", | ||
"version": "0.5.14", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"description": "Make the case correct, PLEASE!", | ||
"author": "Anthony Fu <[email protected]>", | ||
"license": "MIT", | ||
"funding": "https://github.com/sponsors/antfu", | ||
"homepage": "https://github.com/antfu/case-police#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/antfu/case-police.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/antfu/case-police/issues" | ||
}, | ||
"keywords": [], | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"main": "./dist/index.mjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"bin": { | ||
"case-police": "./bin/case-police.mjs" | ||
}, | ||
"files": [ | ||
"dist", | ||
"bin", | ||
"dict" | ||
], | ||
"scripts": { | ||
"build": "rimraf dist && unbuild", | ||
"dev": "unbuild --stub", | ||
"build": "pnpm -r run build", | ||
"dev": "pnpm -r run dev", | ||
"lint": "eslint .", | ||
"prepublishOnly": "nr build", | ||
"release": "bumpp && pnpm publish", | ||
"start": "esno src/index.ts", | ||
"release": "bumpp -r && pnpm -r publish", | ||
"start": "cd packages/case-police && esno src/index.ts", | ||
"test": "vitest", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.36.0", | ||
"@antfu/ni": "^0.20.0", | ||
"@babel/types": "^7.21.2", | ||
"@types/fs-extra": "^11.0.1", | ||
"@types/minimist": "^1.2.2", | ||
"@types/node": "^18.14.6", | ||
"bumpp": "^9.0.0", | ||
"eslint": "^8.35.0", | ||
"eslint-plugin-case-police": "workspace:*", | ||
"esno": "^0.16.3", | ||
"fast-glob": "^3.2.12", | ||
"fs-extra": "^11.1.0", | ||
"is-binary-path": "^2.1.0", | ||
"is-text-path": "^2.0.0", | ||
"minimist": "^1.2.8", | ||
|
2 changes: 1 addition & 1 deletion
2
bin/case-police.mjs → packages/case-police/bin/case-police.mjs
100644 → 100755
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
import('../dist/index.mjs') | ||
import('../dist/cli.mjs') |
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"name": "case-police", | ||
"type": "module", | ||
"version": "0.5.14", | ||
"packageManager": "[email protected]", | ||
"description": "Make the case correct, PLEASE!", | ||
"author": "Anthony Fu <[email protected]>", | ||
"license": "MIT", | ||
"funding": "https://github.com/sponsors/antfu", | ||
"homepage": "https://github.com/antfu/case-police#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/antfu/case-police.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/antfu/case-police/issues" | ||
}, | ||
"keywords": [], | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./cli": { | ||
"types": "./dist/cli.d.ts", | ||
"require": "./dist/cli.cjs", | ||
"import": "./dist/cli.mjs" | ||
}, | ||
"./*": "./*" | ||
}, | ||
"main": "./dist/index.mjs", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"bin": { | ||
"case-police": "./bin/case-police.mjs" | ||
}, | ||
"files": [ | ||
"dist", | ||
"bin", | ||
"dict" | ||
], | ||
"scripts": { | ||
"build": "rimraf dist && unbuild", | ||
"dev": "unbuild --stub", | ||
"prepublishOnly": "nr build", | ||
"start": "esno src/index.ts" | ||
} | ||
} |
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,5 @@ | ||
import { fileURLToPath } from 'node:url' | ||
import { resolve } from 'node:path' | ||
|
||
export const distDir = fileURLToPath(new URL('../dist', import.meta.url)) | ||
export const dictDir = resolve(distDir, '../dict') |
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 @@ | ||
export * from './utils' |
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
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { defineBuildConfig } from 'unbuild' | ||
|
||
export default defineBuildConfig({ | ||
entries: [ | ||
'src/index', | ||
'src/dirs', | ||
'src/worker-load', | ||
], | ||
declaration: true, | ||
clean: true, | ||
rollup: { | ||
emitCJS: true, | ||
inlineDependencies: 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 @@ | ||
node_modules |
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,6 @@ | ||
{ | ||
"extends": [ | ||
"@antfu", | ||
"plugin:case-police/recommended" | ||
] | ||
} |
Oops, something went wrong.