Skip to content

Commit

Permalink
dev: create a package for eslint-plugin-cspell (#2379)
Browse files Browse the repository at this point in the history
* dev: fix package and build references
* dev: eslint-plugin with experimental code.
* dev: cleanup packages
* Have mocha tests working
  • Loading branch information
Jason3S committed Feb 1, 2022
1 parent 06d0d5d commit bb9baaa
Show file tree
Hide file tree
Showing 25 changed files with 10,371 additions and 228 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const config = {
'test-packages/yarn2/**',
],
parserOptions: {
ecmaVersion: 11,
ecmaVersion: 2020,
sourceType: 'module',
},
overrides: [
Expand Down
2 changes: 2 additions & 0 deletions cspell-dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Damerau
Dawg
DAWG
deserializers
estree
exonum
gimu
globstar
Expand All @@ -29,6 +30,7 @@ pycontribs
résumé
serializers
specberus
treeshake
tsbuildinfo
typedoc
webdeveric
Expand Down
3 changes: 3 additions & 0 deletions cspell.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
{
"path": "packages/cspell-dynamic-loader"
},
{
"path": "packages/cspell-eslint-plugin"
},
{
"path": "packages/cspell-gitignore"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/cspell-eslint-plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sample .gitignore

dist
temp
33 changes: 33 additions & 0 deletions packages/cspell-eslint-plugin/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Rollup",
"program": "${workspaceFolder}/node_modules/.bin/rollup",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"args": [
"--config",
"rollup.config.ts",
"--configPlugin",
"typescript"
],
"type": "pwa-node"
},
{
"name": "Launch Test",
"program": "${workspaceFolder}/dist/index.test.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"stopOnEntry": true,
"type": "pwa-node"
}
]
}
22 changes: 22 additions & 0 deletions packages/cspell-eslint-plugin/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$tsc"
},
{
"label": "Clean Build",
"type": "npm",
"script": "clean-build",
"problemMatcher": []
}
]
}
4 changes: 4 additions & 0 deletions packages/cspell-eslint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
21 changes: 21 additions & 0 deletions packages/cspell-eslint-plugin/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions packages/cspell-eslint-plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@cspell/eslint-plugin-cspell`

**[WIP]** A CSpell Plugin for ESLint.

0 comments on commit bb9baaa

Please sign in to comment.