@rslint/core 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -2
- package/bin/rslint-darwin-arm64 +0 -0
- package/bin/rslint-linux-x64 +0 -0
- package/package.json +1 -1
- package/bin/rslint.cjs +0 -28
package/README.md
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
# Rslint
|
|
2
2
|
|
|
3
|
-
Rocket Speed Linter.
|
|
3
|
+
🚀 Rocket Speed Linter - A high-performance TypeScript/JavaScript linter written in Go.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- ⚡ **Ultra-fast**: 10x faster than ESLint through Go-powered parallel processing
|
|
8
|
+
- 🎯 **Typed linting first**: Enables typed linting by default for advanced semantic analysis
|
|
9
|
+
- 🔧 **Easy migration**: Compatible with ESLint and TypeScript-ESLint configurations
|
|
10
|
+
- 🏗️ **Project-level analysis**: Performs cross-module analysis for better linting results
|
|
11
|
+
- 📦 **Monorepo support**: First-class support for large-scale TypeScript monorepos
|
|
12
|
+
- 🔋 **Batteries included**: Ships with all TypeScript-ESLint rules out of the box
|
|
4
13
|
|
|
5
14
|
## Installation
|
|
6
15
|
|
|
16
|
+
```bash
|
|
17
|
+
npm install -D @rslint/core
|
|
7
18
|
```
|
|
8
|
-
|
|
19
|
+
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
|
|
24
|
+
# Lint your project
|
|
25
|
+
npx rslint
|
|
26
|
+
|
|
27
|
+
# See available options
|
|
28
|
+
npx rslint --help
|
|
9
29
|
```
|
|
30
|
+
|
|
31
|
+
## Documentation
|
|
32
|
+
|
|
33
|
+
See the [main repository](https://github.com/web-infra-dev/rslint) for complete documentation and examples.
|
package/bin/rslint-darwin-arm64
CHANGED
|
Binary file
|
package/bin/rslint-linux-x64
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/bin/rslint.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const path = require('node:path');
|
|
3
|
-
const os = require('node:os');
|
|
4
|
-
const fs = require('node:fs');
|
|
5
|
-
function getBinPath() {
|
|
6
|
-
if (fs.existsSync(path.resolve(__dirname, './rslint'))) {
|
|
7
|
-
return path.resolve(__dirname, './rslint');
|
|
8
|
-
}
|
|
9
|
-
let platformKey = `${process.platform}-${os.arch()}`;
|
|
10
|
-
return path.resolve(__dirname, `./rslint-${platformKey}`);
|
|
11
|
-
}
|
|
12
|
-
function main() {
|
|
13
|
-
const binPath = getBinPath();
|
|
14
|
-
try {
|
|
15
|
-
require('child_process').execFileSync(binPath, process.argv.slice(2), {
|
|
16
|
-
stdio: 'inherit',
|
|
17
|
-
});
|
|
18
|
-
} catch (error) {
|
|
19
|
-
// Preserve the exit code from the child process
|
|
20
|
-
if (error.status !== undefined) {
|
|
21
|
-
process.exit(error.status);
|
|
22
|
-
} else {
|
|
23
|
-
console.error(`Failed to execute ${binPath}: ${error.message}`);
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
main();
|