@omer-x/eslint-config 1.0.2 → 1.0.4

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/base.js CHANGED
@@ -3,7 +3,12 @@ module.exports = {
3
3
  "eslint:recommended",
4
4
  ],
5
5
  rules: {
6
+ "array-callback-return": "error",
7
+ "class-methods-use-this": "error",
6
8
  "curly": ["error", "multi-line", "consistent"],
9
+ "dot-notation": "error",
10
+ "eqeqeq": "error",
11
+ "line-comment-position": "off",
7
12
  "max-nested-callbacks": ["error", { max: 4 }],
8
13
  "max-statements-per-line": ["error", { max: 2 }],
9
14
  "no-console": "warn",
@@ -13,7 +18,9 @@ module.exports = {
13
18
  "no-shadow": ["error", { allow: ["err", "resolve", "reject"] }],
14
19
  "no-var": "error",
15
20
  "prefer-const": "error",
21
+ "require-await": "warn",
16
22
  "sort-imports": ["error", { ignoreDeclarationSort: true }],
23
+ "unicode-bom": ["error", "never"],
17
24
  "yoda": "error",
18
25
  },
19
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omer-x/eslint-config",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "My favorite eslint rules",
5
5
  "author": "Omer Mecitoglu",
6
6
  "license": "MIT",
package/stylistic.js CHANGED
@@ -48,12 +48,20 @@ module.exports = {
48
48
  "@stylistic/jsx-self-closing-comp": ["error", { component: true, html: true }],
49
49
  "@stylistic/jsx-sort-props": "off",
50
50
  "@stylistic/jsx-tag-spacing": "error",
51
- "@stylistic/jsx-wrap-multilines": "error",
51
+ "@stylistic/jsx-wrap-multilines": ["error", {
52
+ arrow: "parens-new-line",
53
+ assignment: "parens-new-line",
54
+ condition: "parens-new-line",
55
+ declaration: "parens-new-line",
56
+ logical: "parens-new-line",
57
+ prop: "parens-new-line",
58
+ return: "parens-new-line",
59
+ }],
52
60
  "@stylistic/key-spacing": "error",
53
61
  "@stylistic/keyword-spacing": "error",
54
62
  "@stylistic/linebreak-style": ["error", "unix"],
55
63
  "@stylistic/lines-around-comment": "off",
56
- "@stylistic/lines-between-class-members": ["error", "always"],
64
+ "@stylistic/lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
57
65
  "@stylistic/max-len": ["warn", { code: 128 }],
58
66
  "@stylistic/max-statements-per-line": ["error", { max: 1 }],
59
67
  "@stylistic/member-delimiter-style": ["error", {
@@ -63,9 +71,9 @@ module.exports = {
63
71
  }],
64
72
  "@stylistic/multiline-ternary": "off",
65
73
  "@stylistic/new-parens": ["error", "always"],
66
- "@stylistic/newline-per-chained-call": ["error", { ignoreChainWithDepth: 2 }],
74
+ "@stylistic/newline-per-chained-call": ["error", { ignoreChainWithDepth: 3 }],
67
75
  "@stylistic/no-confusing-arrow": "error",
68
- "@stylistic/no-extra-parens": "error",
76
+ "@stylistic/no-extra-parens": "off",
69
77
  "@stylistic/no-extra-semi": "error",
70
78
  "@stylistic/no-floating-decimal": "error",
71
79
  "@stylistic/no-mixed-operators": "error",
package/typescript.js CHANGED
@@ -6,8 +6,26 @@ module.exports = {
6
6
  "@typescript-eslint",
7
7
  ],
8
8
  rules: {
9
+ "@typescript-eslint/adjacent-overload-signatures": "error",
10
+ "@typescript-eslint/array-type": "error",
11
+ "@typescript-eslint/ban-ts-comment": "warn",
12
+ "@typescript-eslint/ban-tslint-comment": "warn",
13
+ "@typescript-eslint/class-methods-use-this": "error",
14
+ "@typescript-eslint/consistent-indexed-object-style": "error",
15
+ "@typescript-eslint/consistent-type-exports": "error",
16
+ "@typescript-eslint/consistent-type-imports": "error",
17
+ "@typescript-eslint/dot-notation": "error",
18
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
9
19
  "@typescript-eslint/no-unnecessary-condition": "error",
10
20
  "@typescript-eslint/no-unused-vars": "off",
11
- "@typescript-eslint/prefer-nullish-coalescing": "error",
21
+ "@typescript-eslint/prefer-includes": "error",
22
+ "@typescript-eslint/prefer-nullish-coalescing": ["error", {
23
+ ignorePrimitives: {
24
+ string: true,
25
+ },
26
+ }],
27
+ "@typescript-eslint/prefer-string-starts-ends-with": "error",
28
+ "class-methods-use-this": "off",
29
+ "dot-notation": "off",
12
30
  },
13
31
  };