Skip to content

Commit

Permalink
chore(deps): pkg exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tmg0 committed Mar 9, 2024
1 parent 3b9a1d5 commit 741120f
Show file tree
Hide file tree
Showing 14 changed files with 3,882 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
43 changes: 43 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

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

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml"
]
}
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
65 changes: 56 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "unplugin-oxlint",
"type": "module",
"version": "0.0.0",
"description": "A universal bundler plugin for integrating the Oxlint linter into your project.",
"main": "dist/indes.mjs",
"scripts": {
"test": "vitest"
},
"author": "tmg0",
"license": "MIT",
"homepage": "https://github.com/tmg0/unplugin-oxlint#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/tmg0/unplugin-oxlint.git"
},
"bugs": {
"url": "https://github.com/tmg0/unplugin-oxlint/issues"
},
"keywords": [
"eslint",
"oxlint",
Expand All @@ -20,10 +23,54 @@
"webpack",
"vite"
],
"author": "tmg0",
"license": "MIT",
"bugs": {
"url": "https://github.com/tmg0/unplugin-oxlint/issues"
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./vite": {
"import": "./dist/vite.js",
"require": "./dist/vite.cjs"
},
"./webpack": {
"import": "./dist/webpack.js",
"require": "./dist/webpack.cjs"
},
"./rollup": {
"import": "./dist/rollup.js",
"require": "./dist/rollup.cjs"
},
"./esbuild": {
"import": "./dist/esbuild.js",
"require": "./dist/esbuild.cjs"
},
"./*": [
"./*",
"./*.d.ts"
]
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"dev": "vitest dev",
"build": "tsup",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest"
},
"dependencies": {
"unplugin": "^1.9.0"
},
"homepage": "https://github.com/tmg0/unplugin-oxlint#readme"
"devDependencies": {
"@antfu/eslint-config": "^2.8.0",
"@types/node": "^20.11.25",
"eslint": "^8.57.0",
"tsup": "^8.0.2",
"typescript": "^5.4.2",
"vitest": "^1.3.1"
}
}
Loading

0 comments on commit 741120f

Please sign in to comment.