eslint-config-aether 3.2.1 → 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 CHANGED
@@ -2,7 +2,21 @@
2
2
 
3
3
  [![npm version](https://badgen.net/npm/v/eslint-config-aether?color=green)](https://www.npmjs.com/package/eslint-config-aether)
4
4
 
5
- A custom code style for [ESLint](https://eslint.org/).
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
- ## Installation
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
  }],
@@ -118,6 +116,7 @@ var base_default = {
118
116
  "@stylistic/space-infix-ops": "warn",
119
117
  "@stylistic/space-unary-ops": "warn",
120
118
  "@stylistic/spaced-comment": ["warn", "always"],
119
+ "@stylistic/type-generic-spacing": "warn",
121
120
  "@stylistic/wrap-iife": "warn"
122
121
  }
123
122
  };
@@ -134,7 +133,7 @@ var typechecked_default = {
134
133
  languageOptions: {
135
134
  parser: ts.parser,
136
135
  parserOptions: {
137
- project: ["tsconfig.json"]
136
+ projectService: true
138
137
  }
139
138
  },
140
139
  extends: [
@@ -158,6 +157,10 @@ var typechecked_default = {
158
157
  "selector": ["import"],
159
158
  "format": ["camelCase", "PascalCase"]
160
159
  },
160
+ {
161
+ "selector": "typeLike",
162
+ "format": ["PascalCase"]
163
+ },
161
164
  {
162
165
  "selector": ["variable", "accessor"],
163
166
  "format": ["camelCase", "UPPER_CASE"]
@@ -173,10 +176,6 @@ var typechecked_default = {
173
176
  "format": ["camelCase", "PascalCase", "UPPER_CASE"],
174
177
  "leadingUnderscore": "forbid"
175
178
  },
176
- {
177
- "selector": "typeLike",
178
- "format": ["PascalCase"]
179
- },
180
179
  {
181
180
  "selector": "enumMember",
182
181
  "format": ["UPPER_CASE"]
@@ -184,14 +183,6 @@ var typechecked_default = {
184
183
  {
185
184
  "selector": ["objectLiteralProperty", "objectLiteralMethod"],
186
185
  "format": null
187
- },
188
- {
189
- "selector": "interface",
190
- "format": ["PascalCase"],
191
- "custom": {
192
- "regex": "^I[A-Z]",
193
- "match": false
194
- }
195
186
  }
196
187
  ],
197
188
  "@typescript-eslint/no-empty-function": "off",
@@ -210,9 +201,12 @@ var typechecked_default = {
210
201
  "args": "none",
211
202
  "caughtErrors": "none"
212
203
  }],
204
+ "@typescript-eslint/prefer-for-of": "off",
213
205
  "@typescript-eslint/prefer-nullish-coalescing": "warn",
214
206
  "@typescript-eslint/prefer-optional-chain": "off",
215
- "@typescript-eslint/strict-boolean-expressions": "error"
207
+ "@typescript-eslint/strict-boolean-expressions": ["error", {
208
+ "allowNullableObject": false
209
+ }]
216
210
  }
217
211
  };
218
212
 
@@ -220,10 +214,7 @@ var typechecked_default = {
220
214
  var eslintignore = {
221
215
  ignores: [
222
216
  "**/build/**",
223
- "**/dist/**",
224
- "**/vendor/**",
225
- "**/lib/**",
226
- "**/libs/**"
217
+ "**/dist/**"
227
218
  ]
228
219
  };
229
220
  var index_default = defineConfig([
@@ -1,2 +1,2 @@
1
- declare const _default: import("eslint/config").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
- "name": "eslint-config-aether",
3
- "version": "3.2.1",
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
- "scripts": {
40
- "build": "node esbuild",
41
- "clean": "del-cli dist test/generated",
42
- "dts": "tsc -p tsconfig.d.json",
43
- "copy": "copyfiles \"test/src/**\" test/generated -u 2",
44
- "predebug": "run-s clean dts build",
45
- "debug": "eslint --debug src",
46
- "fix": "eslint --fix test/generated",
47
- "report": "eslint src --format html --output-file eslintreport.html",
48
- "pretest": "run-s clean dts build copy fix",
49
- "test": "node --import tsx test/test.ts",
50
- "prepublishOnly": "run-s test"
51
- },
52
- "peerDependencies": {
53
- "eslint": "10.x.x"
54
- },
55
- "dependencies": {
56
- "@eslint/core": "1.x.x",
57
- "@eslint/js": "10.x.x",
58
- "@stylistic/eslint-plugin": "5.x.x",
59
- "globals": "17.x.x",
60
- "typescript-eslint": "8.x.x"
61
- },
62
- "devDependencies": {
63
- "@types/node": "26.x.x",
64
- "del-cli": "7.x.x",
65
- "esbuild": "0.28.x",
66
- "native-copyfiles": "2.x.x",
67
- "npm-run-all": "4.x.x",
68
- "tslib": "2.x.x",
69
- "tsx": "4.x.x",
70
- "typescript": "6.0.x"
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
+ }