diff --git a/packages/cspell-oxlint-plugin/.gitignore b/packages/cspell-oxlint-plugin/.gitignore new file mode 100644 index 00000000000..d16580faf7a --- /dev/null +++ b/packages/cspell-oxlint-plugin/.gitignore @@ -0,0 +1,4 @@ +# Sample .gitignore + +dist +temp diff --git a/packages/cspell-oxlint-plugin/LICENSE b/packages/cspell-oxlint-plugin/LICENSE new file mode 100644 index 00000000000..04a247e2b41 --- /dev/null +++ b/packages/cspell-oxlint-plugin/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Jason Dent + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/cspell-oxlint-plugin/cspell.config.yaml b/packages/cspell-oxlint-plugin/cspell.config.yaml new file mode 100644 index 00000000000..c2e58fe9261 --- /dev/null +++ b/packages/cspell-oxlint-plugin/cspell.config.yaml @@ -0,0 +1,10 @@ +ignorePaths: + - cspell*.{yaml,json} + - assets/options.schema.json +ignoreWords: + - todos + - bluelist +words: + - oxlint + - bence + - markus diff --git a/packages/cspell-oxlint-plugin/package.json b/packages/cspell-oxlint-plugin/package.json new file mode 100644 index 00000000000..5a8bc0ef770 --- /dev/null +++ b/packages/cspell-oxlint-plugin/package.json @@ -0,0 +1,97 @@ +{ + "name": "@cspell/oxlint-plugin", + "publishConfig": { + "access": "public", + "provenance": true + }, + "version": "9.5.0", + "description": "CSpell Oxlint plugin", + "keywords": [ + "oxlint", + "plugin", + "spell", + "spell checker", + "spelling" + ], + "author": "Jason Dent ", + "contributors": [ + "Bence Markus " + ], + "homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-oxlint-plugin#readme", + "license": "MIT", + "exports": { + "./package.json": "./package.json", + ".": { + "types": "./dist/plugin/index.d.cts", + "require": "./dist/plugin/index.cjs", + "import": "./dist/plugin/index.cjs", + "default": "./dist/plugin/index.cjs" + }, + "./configs": { + "types": "./dist/plugin/configs.d.cts", + "require": "./dist/plugin/configs.cjs", + "import": "./dist/plugin/configs.cjs", + "default": "./dist/plugin/configs.cjs" + }, + "./recommended": { + "types": "./dist/plugin/recommended.d.cts", + "require": "./dist/plugin/recommended.cjs", + "import": "./dist/plugin/recommended.cjs", + "default": "./dist/plugin/recommended.cjs" + } + }, + "type": "module", + "sideEffects": false, + "main": "dist/plugin/index.cjs", + "types": "dist/plugin/index.d.cts", + "files": [ + "dist", + "!**/__mocks__", + "!**/*.spec.*", + "!**/*.test.*", + "!**/test*/**", + "!**/*.tsbuildInfo", + "!**/*.map" + ], + "scripts": { + "bt": "pnpm build && pnpm test", + "build": "pnpm build:schema && pnpm build:src", + "build:src": "tsc -b ./tsconfig.json -f", + "build:schema": "pnpm build-options-schema", + "watch": "tsc -b ./tsconfig.json --watch -f", + "clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"", + "clean-build": "pnpm run clean && pnpm run build", + "coverage": "echo coverage", + "test-watch": "pnpm run test -- --watch", + "test-yaml": "npx mocha --timeout 10000 \"dist/**/yaml.test.mjs\"", + "test-oxlint": "npx mocha --timeout 10000 \"dist/**/*.test.mjs\"", + "test-samples": "pnpm -r --filter @internal/oxlint-plugin-fixtures-simple test", + "test": "pnpm run test-oxlint && pnpm run test-samples" + }, + "repository": { + "type": "git", + "url": "https://github.com/streetsidesoftware/cspell.git", + "directory": "packages/cspell-oxlint-plugin" + }, + "bugs": { + "url": "https://github.com/streetsidesoftware/cspell" + }, + "engines": { + "node": ">=20" + }, + "devDependencies": { + "@internal/cspell-eslint-plugin-scripts": "workspace:*", + "@types/estree": "^1.0.8", + "@types/mocha": "^10.0.10", + "mocha": "^11.7.5", + "oxlint": "^1.36.0", + "ts-json-schema-generator": "^2.4.0", + "typescript": "~5.9.3" + }, + "dependencies": { + "@cspell/cspell-types": "workspace:*", + "@cspell/url": "workspace:*", + "cspell-lib": "workspace:*", + "synckit": "^0.11.11" + } +} diff --git a/packages/cspell-oxlint-plugin/src/plugin/index.ts b/packages/cspell-oxlint-plugin/src/plugin/index.ts new file mode 100644 index 00000000000..cb0ff5c3b54 --- /dev/null +++ b/packages/cspell-oxlint-plugin/src/plugin/index.ts @@ -0,0 +1 @@ +export {}; diff --git a/packages/cspell-oxlint-plugin/src/tsconfig.json b/packages/cspell-oxlint-plugin/src/tsconfig.json new file mode 100644 index 00000000000..0967ef424bc --- /dev/null +++ b/packages/cspell-oxlint-plugin/src/tsconfig.json @@ -0,0 +1 @@ +{}