Skip to content

Commit 21f0f1f

Browse files
committed
Initial commit
This is the first version released after forking the [customisation] of the [original project]. * Scan specific directories ([631], [647]) * Scan directories configured by `files.include` ([635], [645]) * Fix handling of the configuration `files.exclude` ([635], [646]) * Support disabling rules in souces using `eslint-disable` ([630], [642]) * Support including and excluding rules in the `lint` method ([631], [643]) * Execute the command-line tool `denolint` without loading the Node.js VM ([648]) * Allow specifying directories, files and patterns as input for checking [customisation]: https://github.com/prantlf/node-rs/commits/combined [original project]: https://github.com/napi-rs/node-rs/tree/main/packages/deno-lint [630]: napi-rs/node-rs#630 [631]: napi-rs/node-rs#631 [635]: napi-rs/node-rs#635 [642]: napi-rs/node-rs#642 [643]: napi-rs/node-rs#643 [645]: napi-rs/node-rs#645 [646]: napi-rs/node-rs#646 [647]: napi-rs/node-rs#647 [648]: napi-rs/node-rs#648
0 parents  commit 21f0f1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4495
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_size = 2
9+
indent_style = space

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
crates
2+
node_modules
3+
target

.eslintrc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
parser: '@typescript-eslint/parser'
2+
3+
parserOptions:
4+
ecmaVersion: 2020
5+
sourceType: module
6+
7+
env:
8+
browser: true
9+
es6: true
10+
node: true
11+
12+
plugins:
13+
- import
14+
15+
extends:
16+
- eslint:recommended
17+
- plugin:prettier/recommended

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
Cargo.lock
3+
*.log
4+
node_modules
5+
packages/*/npm
6+
packages/denolint/denolint
7+
packages/libdenolint/index.d.ts
8+
packages/libdenolint/libdenolint.node
9+
target

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpx lint-staged && cargo fmt --all

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.d.ts
2+
crates
3+
node_modules
4+
target

.vscode/launch.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "js tests",
9+
"type": "node",
10+
"request": "launch",
11+
"program": "${file}",
12+
"skipFiles": [
13+
"<node_internals>/**"
14+
]
15+
},
16+
{
17+
"name": "executable",
18+
"type": "lldb",
19+
"request": "launch",
20+
"cargo": {
21+
"args": ["build", "--bin=denolint", "--package=denolint"],
22+
"filter": {
23+
"name": "denolint",
24+
"kind": "bin"
25+
}
26+
},
27+
"args": ["crates/shared/test/fail/ultimate2.js"],
28+
"cwd": "${workspaceFolder}"
29+
},
30+
{
31+
"name": "rust tests",
32+
"type": "lldb",
33+
"request": "launch",
34+
"cargo": {
35+
"args": ["test", "--no-run", "--bin=denolint", "--package=denolint"],
36+
"filter": {
37+
"name": "denolint",
38+
"kind": "bin"
39+
}
40+
},
41+
"args": [],
42+
"cwd": "${workspaceFolder}"
43+
}
44+
]
45+
}

.vscode/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": true,
4+
"**/.DS_Store": true,
5+
"packages/denolint/denolint": true,
6+
"packages/**/*/*.node": true
7+
},
8+
"search.exclude": {
9+
"**/node_modules": true,
10+
"**/npm": true,
11+
"**/target": true,
12+
"packages/libdenolint/index.d.ts": true
13+
}
14+
}

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cargo-features = ["strip"]
2+
3+
[workspace]
4+
members = ["./packages/denolint", "./packages/libdenolint"]
5+
6+
[profile.release]
7+
codegen-units = 4
8+
lto = true
9+
overflow-checks = false
10+
strip = 'symbols'

0 commit comments

Comments
 (0)