@firefoxic/eslint-config 1.0.0 → 2.1.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 +9 -1
- package/package.json +10 -10
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
|
{
|
|
@@ -213,6 +214,10 @@ export default [
|
|
|
213
214
|
`error`,
|
|
214
215
|
{ code: Infinity },
|
|
215
216
|
],
|
|
217
|
+
"@stylistic/js/multiline-comment-style": [
|
|
218
|
+
`error`,
|
|
219
|
+
`separate-lines`,
|
|
220
|
+
],
|
|
216
221
|
"@stylistic/js/multiline-ternary": [
|
|
217
222
|
`error`,
|
|
218
223
|
`always-multiline`,
|
|
@@ -243,7 +248,7 @@ export default [
|
|
|
243
248
|
max: 1,
|
|
244
249
|
},
|
|
245
250
|
],
|
|
246
|
-
|
|
251
|
+
'@stylistic/js/no-trailing-spaces': [`error`],
|
|
247
252
|
"@stylistic/js/no-whitespace-before-property": [`error`],
|
|
248
253
|
"@stylistic/js/nonblock-statement-body-position": [
|
|
249
254
|
`error`,
|
|
@@ -315,6 +320,9 @@ export default [
|
|
|
315
320
|
"@stylistic/js/semi": [
|
|
316
321
|
`error`,
|
|
317
322
|
`never`,
|
|
323
|
+
{
|
|
324
|
+
beforeStatementContinuationChars: `always`,
|
|
325
|
+
},
|
|
318
326
|
],
|
|
319
327
|
"@stylistic/js/semi-spacing": [
|
|
320
328
|
`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": "1.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sergey Artemov",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"./lib/index.js"
|
|
25
25
|
],
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"eslint": "^9.
|
|
27
|
+
"eslint": "^9.9.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@eslint/js": "^9.
|
|
31
|
-
"@stylistic/eslint-plugin-js": "^
|
|
32
|
-
"globals": "15.
|
|
30
|
+
"@eslint/js": "^9.9.0",
|
|
31
|
+
"@stylistic/eslint-plugin-js": "^2.6.2",
|
|
32
|
+
"globals": "^15.9.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@firefoxic/
|
|
36
|
-
"eslint": "^9.
|
|
37
|
-
"husky": "^9.
|
|
35
|
+
"@firefoxic/update-changelog": "^0.2.0",
|
|
36
|
+
"eslint": "^9.9.0",
|
|
37
|
+
"husky": "^9.1.4"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"config",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"pretest": "pnpm lint",
|
|
51
51
|
"test": "node --test",
|
|
52
52
|
"preversion": "pnpm test",
|
|
53
|
-
"version": "update-changelog
|
|
54
|
-
"postversion": "pnpm publish --access
|
|
53
|
+
"version": "update-changelog",
|
|
54
|
+
"postversion": "pnpm publish --provenance --access public --no-git-checks"
|
|
55
55
|
}
|
|
56
56
|
}
|