@astrelion/eslint-config-astrel 1.4.0 → 1.5.0

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.
@@ -0,0 +1,6 @@
1
+ import js from "@eslint/js";
2
+ import { defineConfig } from "eslint/config";
3
+
4
+ export default defineConfig([
5
+ { files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"] },
6
+ ]);
package/index.js CHANGED
@@ -1,16 +1,35 @@
1
- import * as ts from "typescript-eslint";
2
1
  import stylistic from "@stylistic/eslint-plugin";
2
+ import { defineConfig } from "eslint/config";
3
3
 
4
- const config = ts.config(
4
+ export default defineConfig(
5
+ // https://eslint.org/docs/latest/rules
6
+ {
7
+ rules: {
8
+ "consistent-return": ["error"],
9
+ }
10
+ },
11
+ // https://eslint.style/rules
5
12
  {
6
13
  plugins: {
7
14
  "@stylistic": stylistic,
8
15
  },
9
16
  rules: {
10
- // https://eslint.org/docs/latest/rules
11
- "consistent-return": ["error"],
12
-
13
- // https://typescript-eslint.io/rules
17
+ "@stylistic/brace-style": ["warn", "allman", { "allowSingleLine": true }],
18
+ "@stylistic/comma-dangle": ["warn", "always-multiline"],
19
+ "@stylistic/comma-spacing": ["warn"],
20
+ "@stylistic/indent": ["warn", 4, { "VariableDeclarator": 1, "SwitchCase": 1, "assignmentOperator": 0 }],
21
+ "@stylistic/no-extra-semi": ["error"],
22
+ "@stylistic/no-tabs": ["warn"],
23
+ "@stylistic/no-trailing-spaces": ["warn"],
24
+ "@stylistic/object-curly-spacing": ["warn", "always"],
25
+ "@stylistic/quotes": ["warn", "double"],
26
+ "@stylistic/semi": ["error", "always"],
27
+ "@stylistic/space-before-blocks": ["warn", "always"],
28
+ },
29
+ },
30
+ // https://typescript-eslint.io/rules
31
+ {
32
+ rules: {
14
33
  "@typescript-eslint/explicit-function-return-type": ["warn", { allowExpressions: true }],
15
34
  "@typescript-eslint/no-explicit-any": ["warn"],
16
35
  "@typescript-eslint/no-unnecessary-condition": ["warn"],
@@ -22,21 +41,6 @@ const config = ts.config(
22
41
  },
23
42
  ],
24
43
  "@typescript-eslint/switch-exhaustiveness-check": ["error", { "considerDefaultExhaustiveForUnions": true }],
25
-
26
- // https://eslint.style/rules
27
- "@stylistic/brace-style": ["warn", "allman", { "allowSingleLine": true }],
28
- "@stylistic/comma-dangle": ["warn", "always-multiline"],
29
- "@stylistic/comma-spacing": ["warn"],
30
- "@stylistic/indent": ["warn", 4],
31
- "@stylistic/no-extra-semi": ["error"],
32
- "@stylistic/no-tabs": ["warn"],
33
- "@stylistic/no-trailing-spaces": ["warn"],
34
- "@stylistic/object-curly-spacing": ["warn", "always"],
35
- "@stylistic/quotes": ["warn", "double"],
36
- "@stylistic/semi": ["error", "always"],
37
- "@stylistic/space-before-blocks": ["warn", "always"],
38
44
  },
39
- }
45
+ },
40
46
  );
41
-
42
- export default config;
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@astrelion/eslint-config-astrel",
3
3
  "description": "Custom, general-purpose eslint rules by ASTRELION",
4
+ "repository": {
5
+ "url": "https://gitlab.com/ASTRELION/eslint-config-astrel"
6
+ },
4
7
  "author": {
5
- "name": "ASTRELION"
8
+ "name": "ASTRELION",
9
+ "url": "https://astrelion.com"
6
10
  },
7
- "version": "1.4.0",
11
+ "version": "1.5.0",
8
12
  "keywords": [
9
13
  "eslint",
10
14
  "eslintconfig"
@@ -19,16 +23,17 @@
19
23
  "release": "npx semantic-release"
20
24
  },
21
25
  "devDependencies": {
22
- "@semantic-release/gitlab": "^13.2.3",
23
- "@types/bun": "latest",
24
- "semantic-release": "^24.2.0"
26
+ "@eslint/js": "^9.39.2",
27
+ "@semantic-release/gitlab": "^13.2.9",
28
+ "@types/bun": "^1.3.6",
29
+ "semantic-release": "^25.0.2"
25
30
  },
26
31
  "peerDependencies": {
27
- "eslint": "^9.17.0"
32
+ "eslint": "^9.39.2"
28
33
  },
29
34
  "dependencies": {
30
- "@stylistic/eslint-plugin": "^2.12.1",
31
- "@stylistic/eslint-plugin-ts": "^2.12.1",
32
- "typescript-eslint": "^8.18.2"
35
+ "@stylistic/eslint-plugin": "^5.7.0",
36
+ "@stylistic/eslint-plugin-ts": "^4.4.1",
37
+ "@typescript-eslint/eslint-plugin": "^8.53.0"
33
38
  }
34
39
  }