eslint-config-arklint 1.9.0 → 1.10.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.
Files changed (2) hide show
  1. package/index.js +77 -22
  2. package/package.json +4 -3
package/index.js CHANGED
@@ -13,26 +13,20 @@ module.exports = {
13
13
  ecmaVersion: 2023
14
14
  },
15
15
  ignorePatterns: ["node_modules/"],
16
+ plugins: ["@stylistic/js"],
16
17
  extends: [
17
18
  "eslint:recommended",
18
19
  "./extensions/import.js",
19
20
  "./extensions/jsdoc.js"
20
21
  ],
21
22
  rules: {
22
- "array-bracket-spacing": "warn",
23
23
  "array-callback-return": "warn",
24
24
  "arrow-body-style": "warn",
25
25
  "camelcase": "warn",
26
- "comma-dangle": ["warn", "never"],
27
- "comma-spacing": "warn",
28
26
  "default-case": ["warn", { commentPattern: "^no default$" }],
29
- "dot-location": ["warn", "property"],
30
27
  "dot-notation": "warn",
31
- "eol-last": ["warn", "never"],
32
28
  "eqeqeq": ["warn", "smart"],
33
29
  "getter-return": "warn",
34
- "indent": ["warn", "tab", { SwitchCase: 1, ignoreComments: true }],
35
- "new-parens": "warn",
36
30
  "no-array-constructor": "warn",
37
31
  "no-async-promise-executor": "off",
38
32
  "no-caller": "warn",
@@ -61,13 +55,13 @@ module.exports = {
61
55
  "no-invalid-regexp": "warn",
62
56
  "no-iterator": "warn",
63
57
  "no-label-var": "warn",
64
- "no-labels": ["warn", { allowLoop: true, allowSwitch: false }],
58
+ "no-labels": ["warn", {
59
+ allowLoop: true,
60
+ allowSwitch: false
61
+ }],
65
62
  "no-lone-blocks": "warn",
66
63
  "no-loop-func": "warn",
67
- "no-mixed-operators": "warn",
68
- "no-multi-spaces": "warn",
69
64
  "no-multi-str": "warn",
70
- "no-multiple-empty-lines": ["warn", { max: 2, maxBOF: 0, maxEOF: 0 }],
71
65
  "no-new-func": "warn",
72
66
  "no-new-object": "warn",
73
67
  "no-new-symbol": "warn",
@@ -108,24 +102,85 @@ module.exports = {
108
102
  "no-useless-constructor": "warn",
109
103
  "no-useless-rename": "warn",
110
104
  "no-var": "warn",
111
- "no-whitespace-before-property": "warn",
112
105
  "no-with": "warn",
113
- "nonblock-statement-body-position": "warn",
114
- "object-curly-spacing": ["warn", "always"],
115
106
  "object-shorthand": ["warn", "always"],
116
107
  "prefer-arrow-callback": "warn",
117
- "quote-props": ["warn", "consistent-as-needed"],
118
- "quotes": ["warn", "double"],
119
108
  "require-await": "warn",
120
109
  "require-yield": "warn",
121
- "rest-spread-spacing": ["warn", "never"],
122
- "semi": "warn",
123
- "space-in-parens": "warn",
124
- "space-infix-ops": "warn",
125
- "spaced-comment": ["warn", "always"],
126
110
  "strict": ["warn", "never"],
127
111
  "unicode-bom": ["warn", "never"],
128
112
  "use-isnan": "warn",
129
- "valid-typeof": "warn"
113
+ "valid-typeof": "warn",
114
+ "@stylistic/js/array-bracket-newline": ["warn", "consistent"],
115
+ "@stylistic/js/array-bracket-spacing": "warn",
116
+ "@stylistic/js/array-element-newline": ["warn", "consistent"],
117
+ "@stylistic/js/arrow-parens": "warn",
118
+ "@stylistic/js/arrow-spacing": "warn",
119
+ "@stylistic/js/block-spacing": "warn",
120
+ "@stylistic/js/brace-style": ["warn", "1tbs", {
121
+ allowSingleLine: true
122
+ }],
123
+ "@stylistic/js/comma-dangle": ["warn", "never"],
124
+ "@stylistic/js/comma-spacing": "warn",
125
+ "@stylistic/js/comma-style": "warn",
126
+ "@stylistic/js/computed-property-spacing": "warn",
127
+ "@stylistic/js/dot-location": ["warn", "property"],
128
+ "@stylistic/js/eol-last": ["warn", "never"],
129
+ "@stylistic/js/function-call-spacing": "warn",
130
+ "@stylistic/js/function-call-argument-newline": ["warn", "consistent"],
131
+ "@stylistic/js/function-paren-newline": ["warn", "consistent"],
132
+ "@stylistic/js/implicit-arrow-linebreak": "warn",
133
+ "@stylistic/js/indent": ["warn", "tab", {
134
+ SwitchCase: 1,
135
+ ignoreComments: true
136
+ }],
137
+ "@stylistic/js/key-spacing": "warn",
138
+ "@stylistic/js/keyword-spacing": "warn",
139
+ "@stylistic/js/new-parens": "warn",
140
+ "@stylistic/js/no-confusing-arrow": "warn",
141
+ "@stylistic/js/no-extra-semi": "warn",
142
+ "@stylistic/js/no-floating-decimal": "warn",
143
+ "@stylistic/js/no-mixed-operators": "warn",
144
+ "@stylistic/js/no-multi-spaces": "warn",
145
+ "@stylistic/js/no-multiple-empty-lines": ["warn", {
146
+ max: 2,
147
+ maxBOF: 0,
148
+ maxEOF: 0
149
+ }],
150
+ "@stylistic/js/no-trailing-spaces": "warn",
151
+ "@stylistic/js/no-whitespace-before-property": "warn",
152
+ "@stylistic/js/nonblock-statement-body-position": "warn",
153
+ "@stylistic/js/object-curly-newline": "warn",
154
+ "@stylistic/js/object-curly-spacing": ["warn", "always"],
155
+ "@stylistic/js/operator-linebreak": ["warn", "after", {
156
+ overrides: {
157
+ "?": "ignore",
158
+ ":": "ignore",
159
+ "||": "ignore",
160
+ "&&": "ignore"
161
+ }
162
+ }],
163
+ "@stylistic/js/padding-line-between-statements": [
164
+ "warn",
165
+ { blankLine: "always", prev: ["case", "default"], next: "*" },
166
+ { blankLine: "always", prev: "*", next: "switch" }
167
+ ],
168
+ "@stylistic/js/quote-props": ["warn", "consistent-as-needed"],
169
+ "@stylistic/js/quotes": ["warn", "double"],
170
+ "@stylistic/js/rest-spread-spacing": "warn",
171
+ "@stylistic/js/semi": "warn",
172
+ "@stylistic/js/semi-spacing": "warn",
173
+ "@stylistic/js/semi-style": "warn",
174
+ "@stylistic/js/space-before-blocks": "warn",
175
+ "@stylistic/js/space-before-function-paren": ["warn", {
176
+ anonymous: "always",
177
+ named: "never",
178
+ asyncArrow: "always"
179
+ }],
180
+ "@stylistic/js/space-in-parens": "warn",
181
+ "@stylistic/js/space-infix-ops": "warn",
182
+ "@stylistic/js/space-unary-ops": "warn",
183
+ "@stylistic/js/spaced-comment": "warn",
184
+ "@stylistic/js/template-curly-spacing": "warn"
130
185
  }
131
186
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-arklint",
3
- "version": "1.9.0",
3
+ "version": "1.10.1",
4
4
  "author": "Arkellys",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -13,10 +13,11 @@
13
13
  "lint": "eslint ."
14
14
  },
15
15
  "dependencies": {
16
- "@rushstack/eslint-patch": "^1.10.3",
16
+ "@rushstack/eslint-patch": "^1.10.4",
17
+ "@stylistic/eslint-plugin-js": "^2.6.1",
17
18
  "confusing-browser-globals": "^1.0.11",
18
19
  "eslint-plugin-import": "^2.29.1",
19
- "eslint-plugin-jsdoc": "^48.8.1",
20
+ "eslint-plugin-jsdoc": "^48.10.2",
20
21
  "eslint-plugin-jsx-a11y": "^6.9.0",
21
22
  "eslint-plugin-react": "^7.35.0",
22
23
  "eslint-plugin-react-hooks": "^4.6.2",