eslint-config-dolmios 1.4.2 → 1.4.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/index.js +75 -48
- package/package.json +9 -9
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,58 @@ 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
|
-
"
|
|
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
|
+
"no-multi-spaces": ["warn"],
|
|
72
|
+
"no-multiple-empty-lines": [
|
|
73
|
+
"warn",
|
|
74
|
+
{
|
|
75
|
+
max: 1,
|
|
76
|
+
maxBOF: 0,
|
|
77
|
+
maxEOF: 0,
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
"padding-line-between-statements": [
|
|
81
|
+
"warn",
|
|
82
|
+
{
|
|
83
|
+
blankLine: "always",
|
|
84
|
+
next: "return",
|
|
85
|
+
prev: "*",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
blankLine: "always",
|
|
89
|
+
next: "*",
|
|
90
|
+
prev: ["const", "let", "var"],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
blankLine: "any",
|
|
94
|
+
next: ["const", "let", "var"],
|
|
95
|
+
prev: ["const", "let", "var"],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
35
98
|
"react/button-has-type": ["warn"],
|
|
36
99
|
"react/destructuring-assignment": ["warn"],
|
|
37
100
|
"react/jsx-boolean-value": ["warn"],
|
|
@@ -39,8 +102,8 @@ module.exports = {
|
|
|
39
102
|
"react/jsx-no-bind": [
|
|
40
103
|
"warn",
|
|
41
104
|
{
|
|
42
|
-
ignoreRefs: true,
|
|
43
105
|
allowArrowFunctions: true,
|
|
106
|
+
ignoreRefs: true,
|
|
44
107
|
},
|
|
45
108
|
],
|
|
46
109
|
"react/jsx-no-useless-fragment": ["warn"],
|
|
@@ -48,14 +111,14 @@ module.exports = {
|
|
|
48
111
|
"react/jsx-sort-props": [
|
|
49
112
|
"warn",
|
|
50
113
|
{
|
|
51
|
-
ignoreCase: true,
|
|
52
114
|
callbacksLast: true,
|
|
53
|
-
|
|
54
|
-
|
|
115
|
+
ignoreCase: true,
|
|
116
|
+
locale: "auto",
|
|
117
|
+
multiline: "ignore",
|
|
55
118
|
noSortAlphabetically: false,
|
|
56
119
|
reservedFirst: true,
|
|
57
|
-
|
|
58
|
-
|
|
120
|
+
shorthandFirst: false,
|
|
121
|
+
shorthandLast: false,
|
|
59
122
|
},
|
|
60
123
|
],
|
|
61
124
|
"react/no-access-state-in-setstate": ["warn"],
|
|
@@ -70,43 +133,8 @@ module.exports = {
|
|
|
70
133
|
"react/sort-comp": ["warn"],
|
|
71
134
|
"react/style-prop-object": ["warn"],
|
|
72
135
|
"react/void-dom-elements-no-children": ["warn"],
|
|
73
|
-
"
|
|
74
|
-
|
|
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"],
|
|
136
|
+
"typescript-sort-keys/interface": ["warn"],
|
|
137
|
+
"typescript-sort-keys/string-enum": ["warn"],
|
|
110
138
|
yoda: ["warn"],
|
|
111
139
|
},
|
|
112
140
|
settings: {
|
|
@@ -117,5 +145,4 @@ module.exports = {
|
|
|
117
145
|
version: "detect",
|
|
118
146
|
},
|
|
119
147
|
},
|
|
120
|
-
ignorePatterns: ["next-env.d.ts", "next.config.js"],
|
|
121
148
|
};
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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.
|
|
4
|
+
"version": "1.4.4",
|
|
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.
|
|
11
|
-
"@typescript-eslint/parser": "^5.
|
|
12
|
-
"eslint": "^8.
|
|
13
|
-
"eslint-config-next": "^13.2.
|
|
14
|
-
"eslint-config-prettier": "^8.
|
|
15
|
-
"eslint-plugin-typescript-sort-keys": "^2.
|
|
16
|
-
"prettier": "^2.8.
|
|
17
|
-
"typescript": "^
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
11
|
+
"@typescript-eslint/parser": "^5.57.1",
|
|
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
|
+
"typescript": "^5.0.3"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://github.com/dolmios/eslint-config-dolmios#readme",
|
|
20
20
|
"keywords": [
|