@layerzerolabs/eslint-config-next 1.5.50
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 +18 -0
- package/index.js +3 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## Requirements
|
|
2
|
+
|
|
3
|
+
[Load Extended Plugin From File Path](https://github.com/zouguangxian/eslintrc/tree/gx/v1.4.1-file-plugin)
|
|
4
|
+
|
|
5
|
+
WARNING: `normalizePackageName` in `@eslint/eslintrc` requires that the format of the package name should be `@layerzerolabs/eslint-config-next` or `eslint-config-layerzerolabs`.
|
|
6
|
+
|
|
7
|
+
## Configuration
|
|
8
|
+
|
|
9
|
+
- use [sort-imports](https://eslint.org/docs/latest/rules/sort-imports) and [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) to organize imports.
|
|
10
|
+
- apply prettier with `eslint-plugin-prettier` and `eslint-config-prettier`.
|
|
11
|
+
- mark `^@layerzerolabs/` as internal with `import/internal-regex`.
|
|
12
|
+
- use `pathGroups` to put `^@layerzerolabs/**` ahead of the internal group.
|
|
13
|
+
- treat `['node_modules', '.yarn']` as external with `import/external-module-folders`.
|
|
14
|
+
- list typescript projects under `import/resolver`.
|
|
15
|
+
|
|
16
|
+
## Debug
|
|
17
|
+
|
|
18
|
+
set environment `DEBUG=*`
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@layerzerolabs/eslint-config-next",
|
|
3
|
+
"version": "1.5.50",
|
|
4
|
+
"description": "LayerZero Eslint Config",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"config",
|
|
7
|
+
"eslint"
|
|
8
|
+
],
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"main": "index.js",
|
|
11
|
+
"files": [
|
|
12
|
+
"index.js"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"format": "$npm_execpath prettier --ignore-path $(git rev-parse --show-toplevel)/.prettierignore --write .",
|
|
16
|
+
"lint": "$npm_execpath eslint --no-error-on-unmatched-pattern . --ext .js,.ts --fix"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@layerzerolabs/detect-package-manager": "^0.0.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/eslint": "^8.4.10",
|
|
23
|
+
"@types/node": "^18.11.18",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^5.55.0",
|
|
25
|
+
"@typescript-eslint/parser": "^5.50.0",
|
|
26
|
+
"eslint": "^8.33.0",
|
|
27
|
+
"eslint-config-prettier": "^8.7.0",
|
|
28
|
+
"eslint-import-resolver-typescript": "^3.5.3",
|
|
29
|
+
"eslint-plugin-import": "^2.27.5",
|
|
30
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
31
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
32
|
+
"prettier": "^2.8.3",
|
|
33
|
+
"prettier-plugin-solidity": "^1.1.1"
|
|
34
|
+
},
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
}
|
|
38
|
+
}
|