eslint-config-aether 3.2.2 → 3.2.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/README.md +16 -16
- package/dist/index.js +9 -21
- package/dist/types/index.d.ts +1 -1
- package/package.json +70 -71
package/README.md
CHANGED
|
@@ -2,7 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/eslint-config-aether)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
An opinionated code style for [ESLint](https://eslint.org/) that provides type-aware linting, formatting, common runtime globals, and sensible defaults out of the box.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install eslint-config-aether
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
#### eslint.config.js
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import { default } from "eslint-config-aether";
|
|
19
|
+
```
|
|
6
20
|
|
|
7
21
|
## Preview
|
|
8
22
|
|
|
@@ -29,23 +43,9 @@ btn.addEventListener("click", () => {
|
|
|
29
43
|
});
|
|
30
44
|
```
|
|
31
45
|
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
npm install eslint-config-aether
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Usage
|
|
39
|
-
|
|
40
|
-
#### eslint.config.js
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
// Minimal config
|
|
44
|
-
import { default } from "eslint-config-aether";
|
|
45
|
-
```
|
|
46
|
+
## Customization
|
|
46
47
|
|
|
47
48
|
```js
|
|
48
|
-
// Custom config
|
|
49
49
|
import { defineConfig } from "eslint/config";
|
|
50
50
|
import aether from "eslint-config-aether";
|
|
51
51
|
|
package/dist/index.js
CHANGED
|
@@ -17,10 +17,8 @@ var base_default = {
|
|
|
17
17
|
languageOptions: {
|
|
18
18
|
globals: {
|
|
19
19
|
...globals.browser,
|
|
20
|
-
...globals.es2026,
|
|
21
20
|
...globals.jquery,
|
|
22
|
-
...globals.node
|
|
23
|
-
...globals.worker
|
|
21
|
+
...globals.node
|
|
24
22
|
}
|
|
25
23
|
},
|
|
26
24
|
extends: [
|
|
@@ -90,7 +88,6 @@ var base_default = {
|
|
|
90
88
|
"@stylistic/lines-between-class-members": ["warn", "always", {
|
|
91
89
|
"exceptAfterSingleLine": true
|
|
92
90
|
}],
|
|
93
|
-
"@stylistic/object-curly-spacing": ["warn", "always"],
|
|
94
91
|
"@stylistic/max-len": ["warn", {
|
|
95
92
|
"code": 120,
|
|
96
93
|
"tabWidth": 2,
|
|
@@ -106,6 +103,7 @@ var base_default = {
|
|
|
106
103
|
"@stylistic/no-multi-spaces": "warn",
|
|
107
104
|
"@stylistic/no-trailing-spaces": "warn",
|
|
108
105
|
"@stylistic/no-whitespace-before-property": "warn",
|
|
106
|
+
"@stylistic/object-curly-spacing": ["warn", "always"],
|
|
109
107
|
"@stylistic/padded-blocks": ["warn", "always", {
|
|
110
108
|
"allowSingleLineBlocks": true
|
|
111
109
|
}],
|
|
@@ -135,7 +133,7 @@ var typechecked_default = {
|
|
|
135
133
|
languageOptions: {
|
|
136
134
|
parser: ts.parser,
|
|
137
135
|
parserOptions: {
|
|
138
|
-
|
|
136
|
+
projectService: true
|
|
139
137
|
}
|
|
140
138
|
},
|
|
141
139
|
extends: [
|
|
@@ -159,6 +157,10 @@ var typechecked_default = {
|
|
|
159
157
|
"selector": ["import"],
|
|
160
158
|
"format": ["camelCase", "PascalCase"]
|
|
161
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"selector": "typeLike",
|
|
162
|
+
"format": ["PascalCase"]
|
|
163
|
+
},
|
|
162
164
|
{
|
|
163
165
|
"selector": ["variable", "accessor"],
|
|
164
166
|
"format": ["camelCase", "UPPER_CASE"]
|
|
@@ -174,10 +176,6 @@ var typechecked_default = {
|
|
|
174
176
|
"format": ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
175
177
|
"leadingUnderscore": "forbid"
|
|
176
178
|
},
|
|
177
|
-
{
|
|
178
|
-
"selector": "typeLike",
|
|
179
|
-
"format": ["PascalCase"]
|
|
180
|
-
},
|
|
181
179
|
{
|
|
182
180
|
"selector": "enumMember",
|
|
183
181
|
"format": ["UPPER_CASE"]
|
|
@@ -185,14 +183,6 @@ var typechecked_default = {
|
|
|
185
183
|
{
|
|
186
184
|
"selector": ["objectLiteralProperty", "objectLiteralMethod"],
|
|
187
185
|
"format": null
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"selector": "interface",
|
|
191
|
-
"format": ["PascalCase"],
|
|
192
|
-
"custom": {
|
|
193
|
-
"regex": "^I[A-Z]",
|
|
194
|
-
"match": false
|
|
195
|
-
}
|
|
196
186
|
}
|
|
197
187
|
],
|
|
198
188
|
"@typescript-eslint/no-empty-function": "off",
|
|
@@ -211,6 +201,7 @@ var typechecked_default = {
|
|
|
211
201
|
"args": "none",
|
|
212
202
|
"caughtErrors": "none"
|
|
213
203
|
}],
|
|
204
|
+
"@typescript-eslint/prefer-for-of": "off",
|
|
214
205
|
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
215
206
|
"@typescript-eslint/prefer-optional-chain": "off",
|
|
216
207
|
"@typescript-eslint/strict-boolean-expressions": ["error", {
|
|
@@ -223,10 +214,7 @@ var typechecked_default = {
|
|
|
223
214
|
var eslintignore = {
|
|
224
215
|
ignores: [
|
|
225
216
|
"**/build/**",
|
|
226
|
-
"**/dist/**"
|
|
227
|
-
"**/vendor/**",
|
|
228
|
-
"**/lib/**",
|
|
229
|
-
"**/libs/**"
|
|
217
|
+
"**/dist/**"
|
|
230
218
|
]
|
|
231
219
|
};
|
|
232
220
|
var index_default = defineConfig([
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("eslint/config").
|
|
1
|
+
declare const _default: import("eslint/config").ConfigObject[];
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,72 +1,71 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
2
|
+
"name": "eslint-config-aether",
|
|
3
|
+
"version": "3.2.3",
|
|
4
|
+
"description": "A custom code style for ESLint.",
|
|
5
|
+
"homepage": "https://github.com/vanruesc/eslint-config-aether",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"license": "Zlib",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"eslint",
|
|
17
|
+
"eslintconfig",
|
|
18
|
+
"lint",
|
|
19
|
+
"hint",
|
|
20
|
+
"style",
|
|
21
|
+
"syntax",
|
|
22
|
+
"check",
|
|
23
|
+
"typescript",
|
|
24
|
+
"ts"
|
|
25
|
+
],
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "Raoul van Rüschen",
|
|
28
|
+
"email": "vanruesc@outlook.de"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"url": "git+https://github.com/vanruesc/eslint-config-aether.git"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/vanruesc/eslint-config-aether/issues"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"eslint": "10.x.x"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@eslint/core": "1.x.x",
|
|
44
|
+
"@eslint/js": "10.x.x",
|
|
45
|
+
"@stylistic/eslint-plugin": "5.x.x",
|
|
46
|
+
"globals": "17.x.x",
|
|
47
|
+
"typescript-eslint": "8.x.x"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "26.x.x",
|
|
51
|
+
"del-cli": "7.x.x",
|
|
52
|
+
"esbuild": "0.28.x",
|
|
53
|
+
"native-copyfiles": "2.x.x",
|
|
54
|
+
"npm-run-all": "4.x.x",
|
|
55
|
+
"tslib": "2.x.x",
|
|
56
|
+
"tsx": "4.x.x",
|
|
57
|
+
"typescript": "6.0.x"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "node esbuild",
|
|
61
|
+
"clean": "del-cli dist test/generated",
|
|
62
|
+
"tsc": "tsc -p tsconfig.d.json",
|
|
63
|
+
"copy": "copyfiles \"test/src/**\" test/generated -u 2",
|
|
64
|
+
"predebug": "run-s clean tsc build",
|
|
65
|
+
"debug": "eslint --debug src",
|
|
66
|
+
"fix": "eslint --fix test/generated",
|
|
67
|
+
"report": "eslint src --format html --output-file eslintreport.html",
|
|
68
|
+
"pretest": "run-s clean tsc build copy fix",
|
|
69
|
+
"test": "node --import tsx test/test.ts"
|
|
70
|
+
}
|
|
71
|
+
}
|