@firefoxic/eslint-config 1.0.0 → 2.0.0
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 +10 -10
- package/lib/index.js +19 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# @firefoxic/eslint-config
|
|
2
2
|
|
|
3
|
-
[![Test Status][test-image]][test-url]
|
|
4
3
|
[![License: MIT][license-image]][license-url]
|
|
4
|
+
[![Changelog][changelog-image]][changelog-url]
|
|
5
5
|
[![NPM version][npm-image]][npm-url]
|
|
6
|
+
[![Test Status][test-image]][test-url]
|
|
6
7
|
|
|
7
8
|
Shared config for eslint by [firefoxic](https://firefoxic.dev).
|
|
8
9
|
|
|
@@ -11,7 +12,7 @@ To see the rules that this config uses, please read the [config itself](./lib
|
|
|
11
12
|
## Installation
|
|
12
13
|
|
|
13
14
|
```shell
|
|
14
|
-
pnpm add eslint @firefoxic/eslint-config
|
|
15
|
+
pnpm add -D eslint @firefoxic/eslint-config
|
|
15
16
|
```
|
|
16
17
|
|
|
17
18
|
## Usage
|
|
@@ -39,15 +40,14 @@ export default [
|
|
|
39
40
|
]
|
|
40
41
|
```
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
[license-url]: https://github.com/firefoxic/eslint-config/blob/main/LICENSE.md
|
|
44
|
+
[license-image]: https://img.shields.io/badge/License-MIT-limegreen.svg
|
|
43
45
|
|
|
44
|
-
-
|
|
46
|
+
[changelog-url]: https://github.com/firefoxic/eslint-config/blob/main/CHANGELOG.md
|
|
47
|
+
[changelog-image]: https://img.shields.io/badge/CHANGELOG-md-limegreen
|
|
45
48
|
|
|
46
|
-
[
|
|
47
|
-
[test-image]: https://github.com/firefoxic/eslint-config/actions/workflows/test.yml/badge.svg?branch=main
|
|
48
|
-
|
|
49
|
-
[npm-url]: https://npmjs.org/package/firefoxic/eslint-config
|
|
49
|
+
[npm-url]: https://npmjs.org/package/@firefoxic/eslint-config
|
|
50
50
|
[npm-image]: https://badge.fury.io/js/@firefoxic%2Feslint-config.svg
|
|
51
51
|
|
|
52
|
-
[
|
|
53
|
-
[
|
|
52
|
+
[test-url]: https://github.com/firefoxic/eslint-config/actions
|
|
53
|
+
[test-image]: https://github.com/firefoxic/eslint-config/actions/workflows/test.yml/badge.svg?branch=main
|
package/lib/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import stylisticJs from "@stylistic/eslint-plugin-js"
|
|
|
3
3
|
|
|
4
4
|
export { default as globals } from "globals"
|
|
5
5
|
|
|
6
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
6
7
|
export default [
|
|
7
8
|
js.configs.recommended,
|
|
8
9
|
{
|
|
@@ -27,6 +28,16 @@ export default [
|
|
|
27
28
|
],
|
|
28
29
|
"guard-for-in": `error`,
|
|
29
30
|
"no-alert": `error`,
|
|
31
|
+
"no-irregular-whitespace": [
|
|
32
|
+
`error`,
|
|
33
|
+
{
|
|
34
|
+
skipComments: true,
|
|
35
|
+
skipRegExps: true,
|
|
36
|
+
skipStrings: true,
|
|
37
|
+
skipTemplates: true,
|
|
38
|
+
skipJSXText: true,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
30
41
|
"no-lonely-if": `error`,
|
|
31
42
|
"no-multi-assign": `error`,
|
|
32
43
|
"no-proto": `error`,
|
|
@@ -213,6 +224,10 @@ export default [
|
|
|
213
224
|
`error`,
|
|
214
225
|
{ code: Infinity },
|
|
215
226
|
],
|
|
227
|
+
"@stylistic/js/multiline-comment-style": [
|
|
228
|
+
`error`,
|
|
229
|
+
`separate-lines`,
|
|
230
|
+
],
|
|
216
231
|
"@stylistic/js/multiline-ternary": [
|
|
217
232
|
`error`,
|
|
218
233
|
`always-multiline`,
|
|
@@ -243,7 +258,7 @@ export default [
|
|
|
243
258
|
max: 1,
|
|
244
259
|
},
|
|
245
260
|
],
|
|
246
|
-
|
|
261
|
+
'@stylistic/js/no-trailing-spaces': [`error`],
|
|
247
262
|
"@stylistic/js/no-whitespace-before-property": [`error`],
|
|
248
263
|
"@stylistic/js/nonblock-statement-body-position": [
|
|
249
264
|
`error`,
|
|
@@ -315,6 +330,9 @@ export default [
|
|
|
315
330
|
"@stylistic/js/semi": [
|
|
316
331
|
`error`,
|
|
317
332
|
`never`,
|
|
333
|
+
{
|
|
334
|
+
beforeStatementContinuationChars: `always`,
|
|
335
|
+
},
|
|
318
336
|
],
|
|
319
337
|
"@stylistic/js/semi-spacing": [
|
|
320
338
|
`error`,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firefoxic/eslint-config",
|
|
3
3
|
"description": "Shared config for eslint by firefoxic.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sergey Artemov",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@eslint/js": "^9.2.0",
|
|
31
|
-
"@stylistic/eslint-plugin-js": "^1.
|
|
32
|
-
"globals": "15.
|
|
31
|
+
"@stylistic/eslint-plugin-js": "^2.1.0",
|
|
32
|
+
"globals": "^15.2.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@firefoxic/
|
|
35
|
+
"@firefoxic/update-changelog": "^0.1.0",
|
|
36
36
|
"eslint": "^9.2.0",
|
|
37
37
|
"husky": "^9.0.11"
|
|
38
38
|
},
|