eslint-config-dolmios 1.4.2 → 1.4.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.
Files changed (2) hide show
  1. package/index.js +66 -48
  2. package/package.json +8 -8
package/index.js CHANGED
@@ -5,20 +5,32 @@ module.exports = {
5
5
  "plugin:@typescript-eslint/recommended",
6
6
  "prettier",
7
7
  ],
8
+ ignorePatterns: ["next-env.d.ts", "next.config.js"],
8
9
  parser: "@typescript-eslint/parser",
9
10
  plugins: ["typescript-sort-keys"],
10
11
  rules: {
11
12
  "@next/next/no-html-link-for-pages": ["off"],
12
- "typescript-sort-keys/interface": ["warn"],
13
- "typescript-sort-keys/string-enum": ["warn"],
14
13
  "@typescript-eslint/explicit-function-return-type": ["warn"],
15
14
  "@typescript-eslint/no-non-null-assertion": ["warn"],
15
+ "import/first": ["warn"],
16
+ "import/order": [
17
+ "warn",
18
+ {
19
+ alphabetize: {
20
+ caseInsensitive: true,
21
+ order: "asc",
22
+ },
23
+ groups: ["builtin", "external", "parent", "sibling", "index"],
24
+ "newlines-between": "always",
25
+ warnOnUnassignedImports: false,
26
+ },
27
+ ],
16
28
  "jsx-a11y/aria-role": ["warn"],
17
29
  "jsx-a11y/autocomplete-valid": ["warn"],
18
30
  "jsx-a11y/click-events-have-key-events": ["warn"],
19
31
  "jsx-a11y/heading-has-content": ["warn"],
20
- "jsx-a11y/iframe-has-title": ["warn"],
21
32
  "jsx-a11y/html-has-lang": ["warn"],
33
+ "jsx-a11y/iframe-has-title": ["warn"],
22
34
  "jsx-a11y/img-redundant-alt": ["warn"],
23
35
  "jsx-a11y/interactive-supports-focus": ["warn"],
24
36
  "jsx-a11y/label-has-associated-control": ["warn"],
@@ -31,7 +43,49 @@ module.exports = {
31
43
  "jsx-a11y/no-redundant-roles": ["warn"],
32
44
  "jsx-a11y/no-static-element-interactions": ["warn"],
33
45
  "jsx-a11y/scope": ["warn"],
34
- "import/first": ["warn"],
46
+ "no-alert": ["warn"],
47
+ "no-console": ["warn"],
48
+ "no-duplicate-imports": ["warn"],
49
+ "no-empty": ["warn"],
50
+ "no-eq-null": ["warn"],
51
+ "no-eval": ["warn"],
52
+ "no-extra-bind": ["warn"],
53
+ "no-extra-label": ["warn"],
54
+ "no-invalid-this": ["warn"],
55
+ "no-iterator": ["warn"],
56
+ "no-label-var": ["warn"],
57
+ "no-labels": ["warn"],
58
+ "no-lone-blocks": ["warn"],
59
+ "no-multi-str": ["warn"],
60
+ "no-new": ["warn"],
61
+ "no-octal-escape": ["warn"],
62
+ "no-proto": ["warn"],
63
+ "no-template-curly-in-string": ["warn"],
64
+ "no-unreachable-loop": ["warn"],
65
+ "no-unused-expressions": ["warn"],
66
+ "no-use-before-define": ["warn"],
67
+ "no-useless-call": ["warn"],
68
+ "no-useless-concat": ["warn"],
69
+ "no-useless-escape": ["warn"],
70
+ "no-useless-return": ["warn"],
71
+ "padding-line-between-statements": [
72
+ "warn",
73
+ {
74
+ blankLine: "always",
75
+ next: "return",
76
+ prev: "*",
77
+ },
78
+ {
79
+ blankLine: "always",
80
+ next: "*",
81
+ prev: ["const", "let", "var"],
82
+ },
83
+ {
84
+ blankLine: "any",
85
+ next: ["const", "let", "var"],
86
+ prev: ["const", "let", "var"],
87
+ },
88
+ ],
35
89
  "react/button-has-type": ["warn"],
36
90
  "react/destructuring-assignment": ["warn"],
37
91
  "react/jsx-boolean-value": ["warn"],
@@ -39,8 +93,8 @@ module.exports = {
39
93
  "react/jsx-no-bind": [
40
94
  "warn",
41
95
  {
42
- ignoreRefs: true,
43
96
  allowArrowFunctions: true,
97
+ ignoreRefs: true,
44
98
  },
45
99
  ],
46
100
  "react/jsx-no-useless-fragment": ["warn"],
@@ -48,14 +102,14 @@ module.exports = {
48
102
  "react/jsx-sort-props": [
49
103
  "warn",
50
104
  {
51
- ignoreCase: true,
52
105
  callbacksLast: true,
53
- shorthandFirst: false,
54
- shorthandLast: false,
106
+ ignoreCase: true,
107
+ locale: "auto",
108
+ multiline: "ignore",
55
109
  noSortAlphabetically: false,
56
110
  reservedFirst: true,
57
- multiline: "ignore",
58
- locale: "auto",
111
+ shorthandFirst: false,
112
+ shorthandLast: false,
59
113
  },
60
114
  ],
61
115
  "react/no-access-state-in-setstate": ["warn"],
@@ -70,43 +124,8 @@ module.exports = {
70
124
  "react/sort-comp": ["warn"],
71
125
  "react/style-prop-object": ["warn"],
72
126
  "react/void-dom-elements-no-children": ["warn"],
73
- "import/order": [
74
- "warn",
75
- {
76
- alphabetize: {
77
- caseInsensitive: true,
78
- order: "asc",
79
- },
80
- groups: ["builtin", "external", "parent", "sibling", "index"],
81
- "newlines-between": "always",
82
- warnOnUnassignedImports: false,
83
- },
84
- ],
85
- "no-alert": ["warn"],
86
- "no-console": ["warn"],
87
- "no-empty": ["warn"],
88
- "no-duplicate-imports": ["warn"],
89
- "no-eq-null": ["warn"],
90
- "no-eval": ["warn"],
91
- "no-extra-bind": ["warn"],
92
- "no-extra-label": ["warn"],
93
- "no-invalid-this": ["warn"],
94
- "no-iterator": ["warn"],
95
- "no-label-var": ["warn"],
96
- "no-labels": ["warn"],
97
- "no-lone-blocks": ["warn"],
98
- "no-multi-str": ["warn"],
99
- "no-new": ["warn"],
100
- "no-octal-escape": ["warn"],
101
- "no-proto": ["warn"],
102
- "no-template-curly-in-string": ["warn"],
103
- "no-unreachable-loop": ["warn"],
104
- "no-unused-expressions": ["warn"],
105
- "no-useless-call": ["warn"],
106
- "no-useless-concat": ["warn"],
107
- "no-useless-escape": ["warn"],
108
- "no-useless-return": ["warn"],
109
- "no-use-before-define": ["warn"],
127
+ "typescript-sort-keys/interface": ["warn"],
128
+ "typescript-sort-keys/string-enum": ["warn"],
110
129
  yoda: ["warn"],
111
130
  },
112
131
  settings: {
@@ -117,5 +136,4 @@ module.exports = {
117
136
  version: "detect",
118
137
  },
119
138
  },
120
- ignorePatterns: ["next-env.d.ts", "next.config.js"],
121
139
  };
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "eslint-config-dolmios",
3
3
  "description": "A simple ESLint config with Prettier and a couple TSConfig setups",
4
- "version": "1.4.2",
4
+ "version": "1.4.3",
5
5
  "author": "Jackson Dolman <mail@dolmios.com>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/dolmios/eslint-config-dolmios/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@typescript-eslint/eslint-plugin": "^5.54.1",
11
- "@typescript-eslint/parser": "^5.54.1",
12
- "eslint": "^8.35.0",
13
- "eslint-config-next": "^13.2.3",
14
- "eslint-config-prettier": "^8.7.0",
15
- "eslint-plugin-typescript-sort-keys": "^2.1.0",
16
- "prettier": "^2.8.4",
10
+ "@typescript-eslint/eslint-plugin": "^5.57.0",
11
+ "@typescript-eslint/parser": "^5.57.0",
12
+ "eslint": "^8.37.0",
13
+ "eslint-config-next": "^13.2.4",
14
+ "eslint-config-prettier": "^8.8.0",
15
+ "eslint-plugin-typescript-sort-keys": "^2.3.0",
16
+ "prettier": "^2.8.7",
17
17
  "typescript": "^4.9.5"
18
18
  },
19
19
  "homepage": "https://github.com/dolmios/eslint-config-dolmios#readme",