@stacksjs/lint 0.38.3
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/LICENSE.md +21 -0
- package/README.md +73 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +56 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Open Web Foundation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Stacks Lint
|
|
2
|
+
|
|
3
|
+
Easily get your project linted. It "just works."
|
|
4
|
+
|
|
5
|
+
## โ๏ธ Features
|
|
6
|
+
|
|
7
|
+
- Single quotes, no semi
|
|
8
|
+
- Auto fix for formatting (aimed to be used as standalone without Prettier)
|
|
9
|
+
- Designed to work with TypeScript, Vue out-of-box (React opt-in)
|
|
10
|
+
- Lint also for json, yaml, markdown
|
|
11
|
+
- Sorted imports, dangling commas for cleaner commit diff
|
|
12
|
+
- Improved component library linting & formatting
|
|
13
|
+
- Stacks support
|
|
14
|
+
- Laravel support
|
|
15
|
+
- ESLint wrapper
|
|
16
|
+
- And various other minor additions, i.e. `no-constant-binary-expression` usage
|
|
17
|
+
|
|
18
|
+
> "Reasonable defaults, best practices, only one-line of config."
|
|
19
|
+
|
|
20
|
+
## ๐ค Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pnpm i -D @stacksjs/lint
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Now, you can easily access it in your project:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
import lint from '@stacksjs/lint'
|
|
30
|
+
|
|
31
|
+
// ...
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
To view the full documentation, please visit [https://stacksjs.dev/lint](https://stacksjs.dev/lint).
|
|
35
|
+
|
|
36
|
+
## ๐งช Testing
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pnpm test
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## ๐ Changelog
|
|
43
|
+
|
|
44
|
+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
45
|
+
|
|
46
|
+
## ๐ช๐ผ Contributing
|
|
47
|
+
|
|
48
|
+
Please see [CONTRIBUTING](../../.github/CONTRIBUTING.md) for details.
|
|
49
|
+
|
|
50
|
+
## ๐ Community
|
|
51
|
+
|
|
52
|
+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
|
|
53
|
+
|
|
54
|
+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
|
|
55
|
+
|
|
56
|
+
For casual chit-chat with others using this package:
|
|
57
|
+
|
|
58
|
+
[Join the Open Web Discord Server](https://discord.ow3.org)
|
|
59
|
+
|
|
60
|
+
## ๐๐ผ Credits
|
|
61
|
+
|
|
62
|
+
Many thanks to the following core technologies & people who have contributed to this package:
|
|
63
|
+
|
|
64
|
+
- [ESLint](https://github.com/eslint/eslint)
|
|
65
|
+
- [lint-staged](https://github.com/okonet/lint-staged)
|
|
66
|
+
- [Chris Breuer](https://github.com/chrisbbreuer)
|
|
67
|
+
- [All Contributors](../../contributors)
|
|
68
|
+
|
|
69
|
+
## ๐ License
|
|
70
|
+
|
|
71
|
+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
|
|
72
|
+
|
|
73
|
+
Made with โค๏ธ
|
package/dist/index.d.ts
ADDED
package/dist/index.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stacksjs/lint",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.38.3",
|
|
5
|
+
"packageManager": "pnpm@7.15.0",
|
|
6
|
+
"description": "The Stacks way to lint.",
|
|
7
|
+
"author": "Chris Breuer",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
10
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/lint#readme",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
14
|
+
"directory": "./.stacks/core/lint"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/stacksjs/stacks/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"linter",
|
|
21
|
+
"formatter",
|
|
22
|
+
"eslint",
|
|
23
|
+
"pre-configured",
|
|
24
|
+
"zero-config",
|
|
25
|
+
"stacks"
|
|
26
|
+
],
|
|
27
|
+
"main": "dist/index.mjs",
|
|
28
|
+
"module": "dist/index.mjs",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"contributors": [
|
|
31
|
+
"Chris Breuer <chris@ow3.org>"
|
|
32
|
+
],
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=v18.12.1",
|
|
39
|
+
"pnpm": ">=7.15.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@ow3/eslint-config": "^0.33.3",
|
|
43
|
+
"@types/eslint": "^8.4.10",
|
|
44
|
+
"eslint": "^8.27.0",
|
|
45
|
+
"lint-staged": "^13.0.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"mkdist": "^0.4.0",
|
|
49
|
+
"typescript": "^4.8.4"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "mkdist -d",
|
|
53
|
+
"dev": "mkdist -d",
|
|
54
|
+
"typecheck": "tsc --noEmit"
|
|
55
|
+
}
|
|
56
|
+
}
|