@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 +1 -1
- package/index.d.ts +4 -0
- package/index.js +5 -1
- package/package.json +1 -1
- package/.releaserc.json +0 -8
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
|
-
-
|
|
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
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
|
-
|
|
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