@astrelion/eslint-config-astrel 1.0.0 → 1.1.1

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
@@ -9,7 +9,7 @@ Custom, general-purpose eslint rules by ASTRELION.
9
9
  - [Allman brace style](https://eslint.org/docs/latest/rules/brace-style#allman)
10
10
  - Require semicolons
11
11
  - Double quotes over single quotes
12
- - Spaces over tabs
12
+ - 4 spaces over tabs
13
13
  - No trailing spaces
14
14
  - [Require spaces before blocks](https://eslint.org/docs/latest/rules/space-before-blocks)
15
15
  - [Require consistent returns](https://eslint.org/docs/latest/rules/consistent-return)
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { Linter } from "eslint";
2
+
3
+ declare const config: Linter.Config;
4
+ export default config;
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as ts from "typescript-eslint";
2
2
  import stylistic from "@stylistic/eslint-plugin";
3
3
 
4
- export default ts.config(
4
+ const config = ts.config(
5
5
  {
6
6
  plugins: {
7
7
  "@stylistic": stylistic,
@@ -13,6 +13,7 @@ export default ts.config(
13
13
  // https://typescript-eslint.io/rules
14
14
  "@typescript-eslint/explicit-function-return-type": ["warn", { allowExpressions: true }],
15
15
  "@typescript-eslint/no-explicit-any": ["warn"],
16
+ // "@typescript-eslint/no-unnecessary-condition": ["warn"],
16
17
  "@typescript-eslint/no-unused-vars": [
17
18
  "warn",
18
19
  {
@@ -24,6 +25,7 @@ export default ts.config(
24
25
  // https://eslint.style/rules
25
26
  "@stylistic/brace-style": ["warn", "allman", { "allowSingleLine": true }],
26
27
  "@stylistic/comma-dangle": ["warn", "always-multiline"],
28
+ "@stylistic/indent": ["warn", 4],
27
29
  "@stylistic/no-tabs": ["warn"],
28
30
  "@stylistic/no-trailing-spaces": ["warn"],
29
31
  "@stylistic/object-curly-spacing": ["warn", "always"],
@@ -33,3 +35,5 @@ export default ts.config(
33
35
  },
34
36
  }
35
37
  );
38
+
39
+ export default config;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "ASTRELION"
6
6
  },
7
- "version": "1.0.0",
7
+ "version": "1.1.1",
8
8
  "keywords": [
9
9
  "eslint",
10
10
  "eslintconfig"
package/.releaserc.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "branches": ["main"],
3
- "plugins": [
4
- "@semantic-release/commit-analyzer",
5
- "@semantic-release/release-notes-generator",
6
- "@semantic-release/npm"
7
- ]
8
- }