@rebeccastevens/eslint-config 1.2.2 → 1.3.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/CHANGELOG.md +13 -0
- package/README.md +5 -0
- package/dist/common-overrides.cjs +4 -11
- package/dist/common-overrides.mjs +4 -11
- package/dist/modern.cjs +6 -0
- package/dist/modern.mjs +6 -0
- package/dist/script.cjs +1 -0
- package/dist/script.mjs +1 -0
- package/dist/test.cjs +16 -0
- package/dist/test.mjs +14 -0
- package/dist/typescript.cjs +8 -1
- package/dist/typescript.mjs +8 -1
- package/package.json +41 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
3
3
|
|
|
4
|
+
# [1.3.0](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.2.2...v1.3.0) (2022-02-07)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* allow throw statements inside async functions ([4bc76bf](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/4bc76bf167517fd3ab1643a896834238d982ebb5))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* check tsdocs when using typescript ([3b3d586](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/3b3d586ee6d01754c6db6faf2f302e866b1fd7f8))
|
|
15
|
+
* update script config and add test config ([88196bc](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/88196bc1fd5983fa1ff5d610f42c5e7f1a041daf))
|
|
16
|
+
|
|
4
17
|
## [1.2.2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.2.1...v1.2.2) (2022-01-29)
|
|
5
18
|
|
|
6
19
|
|
package/README.md
CHANGED
|
@@ -22,6 +22,10 @@ yarn add -D \
|
|
|
22
22
|
@rebeccastevens/eslint-config
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
```sh
|
|
26
|
+
npx install-peerdeps @rebeccastevens/eslint-config --dev -o -Y
|
|
27
|
+
```
|
|
28
|
+
|
|
25
29
|
## Usage
|
|
26
30
|
|
|
27
31
|
### Language
|
|
@@ -86,6 +90,7 @@ yarn add -D \
|
|
|
86
90
|
eslint-plugin-optimize-regex \
|
|
87
91
|
eslint-plugin-promise \
|
|
88
92
|
eslint-plugin-sonarjs \
|
|
93
|
+
eslint-plugin-tsdoc \
|
|
89
94
|
eslint-plugin-unicorn
|
|
90
95
|
```
|
|
91
96
|
|
|
@@ -4,27 +4,20 @@ var commonOverrides = {
|
|
|
4
4
|
overrides: [
|
|
5
5
|
{
|
|
6
6
|
files: ["*"],
|
|
7
|
+
extends: ["@rebeccastevens/eslint-config/script"],
|
|
7
8
|
rules: {
|
|
8
|
-
"functional/immutable-data": "off",
|
|
9
9
|
"functional/functional-parameters": "off",
|
|
10
|
-
"functional/
|
|
10
|
+
"functional/immutable-data": "off",
|
|
11
11
|
"node/no-sync": "off",
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
files: ["scripts/**/*"],
|
|
16
|
-
|
|
17
|
-
"functional/no-expression-statement": "off",
|
|
18
|
-
"functional/no-throw-statement": "off",
|
|
19
|
-
},
|
|
16
|
+
extends: ["@rebeccastevens/eslint-config/script"],
|
|
20
17
|
},
|
|
21
18
|
{
|
|
22
19
|
files: ["{test,tests}/**/*", "**/*.test.*"],
|
|
23
|
-
|
|
24
|
-
"functional/functional-parameters": "off",
|
|
25
|
-
"functional/no-expression-statement": "off",
|
|
26
|
-
"node/no-sync": "off",
|
|
27
|
-
},
|
|
20
|
+
extends: ["@rebeccastevens/eslint-config/test"],
|
|
28
21
|
},
|
|
29
22
|
],
|
|
30
23
|
};
|
|
@@ -2,27 +2,20 @@ var commonOverrides = {
|
|
|
2
2
|
overrides: [
|
|
3
3
|
{
|
|
4
4
|
files: ["*"],
|
|
5
|
+
extends: ["@rebeccastevens/eslint-config/script"],
|
|
5
6
|
rules: {
|
|
6
|
-
"functional/immutable-data": "off",
|
|
7
7
|
"functional/functional-parameters": "off",
|
|
8
|
-
"functional/
|
|
8
|
+
"functional/immutable-data": "off",
|
|
9
9
|
"node/no-sync": "off",
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
files: ["scripts/**/*"],
|
|
14
|
-
|
|
15
|
-
"functional/no-expression-statement": "off",
|
|
16
|
-
"functional/no-throw-statement": "off",
|
|
17
|
-
},
|
|
14
|
+
extends: ["@rebeccastevens/eslint-config/script"],
|
|
18
15
|
},
|
|
19
16
|
{
|
|
20
17
|
files: ["{test,tests}/**/*", "**/*.test.*"],
|
|
21
|
-
|
|
22
|
-
"functional/functional-parameters": "off",
|
|
23
|
-
"functional/no-expression-statement": "off",
|
|
24
|
-
"node/no-sync": "off",
|
|
25
|
-
},
|
|
18
|
+
extends: ["@rebeccastevens/eslint-config/test"],
|
|
26
19
|
},
|
|
27
20
|
],
|
|
28
21
|
};
|
package/dist/modern.cjs
CHANGED
|
@@ -625,6 +625,12 @@ const settings$8 = {
|
|
|
625
625
|
allowReturningBranches: true,
|
|
626
626
|
},
|
|
627
627
|
],
|
|
628
|
+
"functional/no-throw-statement": [
|
|
629
|
+
"error",
|
|
630
|
+
{
|
|
631
|
+
allowInAsyncFunctions: true,
|
|
632
|
+
},
|
|
633
|
+
],
|
|
628
634
|
"functional/no-try-statement": "off",
|
|
629
635
|
"functional/prefer-readonly-type": [
|
|
630
636
|
"error",
|
package/dist/modern.mjs
CHANGED
|
@@ -623,6 +623,12 @@ const settings$8 = {
|
|
|
623
623
|
allowReturningBranches: true,
|
|
624
624
|
},
|
|
625
625
|
],
|
|
626
|
+
"functional/no-throw-statement": [
|
|
627
|
+
"error",
|
|
628
|
+
{
|
|
629
|
+
allowInAsyncFunctions: true,
|
|
630
|
+
},
|
|
631
|
+
],
|
|
626
632
|
"functional/no-try-statement": "off",
|
|
627
633
|
"functional/prefer-readonly-type": [
|
|
628
634
|
"error",
|
package/dist/script.cjs
CHANGED
package/dist/script.mjs
CHANGED
package/dist/test.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const baseConfig = {
|
|
4
|
+
extends: ["@rebeccastevens/eslint-config/script"],
|
|
5
|
+
rules: {
|
|
6
|
+
"functional/functional-parameters": "off",
|
|
7
|
+
"functional/immutable-data": "warn",
|
|
8
|
+
"functional/no-conditional-statement": "warn",
|
|
9
|
+
"functional/no-expression-statement": "off",
|
|
10
|
+
"functional/no-loop-statement": "warn",
|
|
11
|
+
"functional/no-throw-statement": "off",
|
|
12
|
+
"node/no-sync": "off",
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = baseConfig;
|
package/dist/test.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const baseConfig = {
|
|
2
|
+
extends: ["@rebeccastevens/eslint-config/script"],
|
|
3
|
+
rules: {
|
|
4
|
+
"functional/functional-parameters": "off",
|
|
5
|
+
"functional/immutable-data": "warn",
|
|
6
|
+
"functional/no-conditional-statement": "warn",
|
|
7
|
+
"functional/no-expression-statement": "off",
|
|
8
|
+
"functional/no-loop-statement": "warn",
|
|
9
|
+
"functional/no-throw-statement": "off",
|
|
10
|
+
"node/no-sync": "off",
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { baseConfig as default };
|
package/dist/typescript.cjs
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var deepmergeTs = require('deepmerge-ts');
|
|
4
4
|
|
|
5
|
+
const settings$1 = {
|
|
6
|
+
plugins: ["tsdoc"],
|
|
7
|
+
rules: {
|
|
8
|
+
"tsdoc/syntax": "warn",
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
|
|
5
12
|
const settings = {
|
|
6
13
|
plugins: ["@typescript-eslint"],
|
|
7
14
|
extends: [
|
|
@@ -264,6 +271,6 @@ const baseConfig = {
|
|
|
264
271
|
},
|
|
265
272
|
],
|
|
266
273
|
};
|
|
267
|
-
var typescript = deepmergeTs.deepmerge(baseConfig, settings);
|
|
274
|
+
var typescript = deepmergeTs.deepmerge(baseConfig, settings, settings$1);
|
|
268
275
|
|
|
269
276
|
module.exports = typescript;
|
package/dist/typescript.mjs
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { deepmerge } from 'deepmerge-ts';
|
|
2
2
|
|
|
3
|
+
const settings$1 = {
|
|
4
|
+
plugins: ["tsdoc"],
|
|
5
|
+
rules: {
|
|
6
|
+
"tsdoc/syntax": "warn",
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
|
|
3
10
|
const settings = {
|
|
4
11
|
plugins: ["@typescript-eslint"],
|
|
5
12
|
extends: [
|
|
@@ -262,6 +269,6 @@ const baseConfig = {
|
|
|
262
269
|
},
|
|
263
270
|
],
|
|
264
271
|
};
|
|
265
|
-
var typescript = deepmerge(baseConfig, settings);
|
|
272
|
+
var typescript = deepmerge(baseConfig, settings, settings$1);
|
|
266
273
|
|
|
267
274
|
export { typescript as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
"import": "./dist/script.mjs",
|
|
29
29
|
"require": "./dist/script.cjs"
|
|
30
30
|
},
|
|
31
|
+
"./test": {
|
|
32
|
+
"import": "./dist/test.mjs",
|
|
33
|
+
"require": "./dist/test.cjs"
|
|
34
|
+
},
|
|
31
35
|
"./typescript": {
|
|
32
36
|
"import": "./dist/typescript.mjs",
|
|
33
37
|
"require": "./dist/typescript.cjs"
|
|
@@ -59,66 +63,69 @@
|
|
|
59
63
|
"deepmerge-ts": "^2.0.1"
|
|
60
64
|
},
|
|
61
65
|
"devDependencies": {
|
|
62
|
-
"@commitlint/cli": "^16.0
|
|
66
|
+
"@commitlint/cli": "^16.1.0",
|
|
63
67
|
"@commitlint/config-conventional": "^16.0.0",
|
|
64
|
-
"@rollup/plugin-commonjs": "^21.0.
|
|
65
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
68
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
69
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
66
70
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
67
|
-
"@semantic-release/changelog": "^6.0.
|
|
68
|
-
"@semantic-release/commit-analyzer": "^9.0.
|
|
69
|
-
"@semantic-release/git": "^10.0.
|
|
70
|
-
"@semantic-release/github": "^8.0.
|
|
71
|
-
"@semantic-release/npm": "^
|
|
72
|
-
"@semantic-release/release-notes-generator": "^10.0.
|
|
73
|
-
"@types/eslint": "^8.
|
|
74
|
-
"@types/node": "^
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
76
|
-
"@typescript-eslint/parser": "^5.
|
|
71
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
72
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
73
|
+
"@semantic-release/git": "^10.0.1",
|
|
74
|
+
"@semantic-release/github": "^8.0.2",
|
|
75
|
+
"@semantic-release/npm": "^9.0.0",
|
|
76
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
77
|
+
"@types/eslint": "^8.4.1",
|
|
78
|
+
"@types/node": "^17.0.15",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
|
80
|
+
"@typescript-eslint/parser": "^5.10.2",
|
|
77
81
|
"commitizen": "^4.2.4",
|
|
78
|
-
"cspell": "^5.
|
|
82
|
+
"cspell": "^5.18.3",
|
|
79
83
|
"cz-conventional-changelog": "^3.3.0",
|
|
80
|
-
"eslint": "^8.
|
|
84
|
+
"eslint": "^8.8.0",
|
|
81
85
|
"eslint-config-prettier": "^8.3.0",
|
|
82
|
-
"eslint-import-resolver-typescript": "^2.
|
|
86
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
|
83
87
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
84
|
-
"eslint-plugin-functional": "^4.
|
|
85
|
-
"eslint-plugin-import": "^2.25.
|
|
86
|
-
"eslint-plugin-jsdoc": "^37.
|
|
87
|
-
"eslint-plugin-markdown": "^2.2.
|
|
88
|
+
"eslint-plugin-functional": "^4.2.0",
|
|
89
|
+
"eslint-plugin-import": "^2.25.4",
|
|
90
|
+
"eslint-plugin-jsdoc": "^37.7.1",
|
|
91
|
+
"eslint-plugin-markdown": "^2.2.1",
|
|
88
92
|
"eslint-plugin-node": "^11.1.0",
|
|
89
|
-
"eslint-plugin-optimize-regex": "^1.2.
|
|
93
|
+
"eslint-plugin-optimize-regex": "^1.2.1",
|
|
90
94
|
"eslint-plugin-prettier": "^4.0.0",
|
|
91
95
|
"eslint-plugin-promise": "^6.0.0",
|
|
92
96
|
"eslint-plugin-sonarjs": "^0.11.0",
|
|
93
|
-
"eslint-plugin-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
+
"eslint-plugin-tsdoc": "^0.2.14",
|
|
98
|
+
"eslint-plugin-unicorn": "^40.1.0",
|
|
99
|
+
"husky": "^7.0.4",
|
|
100
|
+
"lint-staged": "^12.3.3",
|
|
101
|
+
"markdownlint-cli": "^0.31.0",
|
|
97
102
|
"nyc": "^15.1.0",
|
|
98
|
-
"prettier": "^2.
|
|
103
|
+
"prettier": "^2.5.1",
|
|
99
104
|
"rimraf": "^3.0.2",
|
|
100
|
-
"rollup": "^2.
|
|
105
|
+
"rollup": "^2.67.0",
|
|
101
106
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
102
|
-
"semantic-release": "^
|
|
103
|
-
"ts-node": "^10.
|
|
104
|
-
"tsconfig-paths": "^3.
|
|
107
|
+
"semantic-release": "^19.0.2",
|
|
108
|
+
"ts-node": "^10.4.0",
|
|
109
|
+
"tsconfig-paths": "^3.12.0",
|
|
105
110
|
"tslib": "^2.3.1",
|
|
106
|
-
"typescript": "^4.
|
|
111
|
+
"typescript": "^4.5.5"
|
|
107
112
|
},
|
|
108
113
|
"peerDependencies": {
|
|
109
114
|
"@typescript-eslint/eslint-plugin": "*",
|
|
110
115
|
"@typescript-eslint/parser": "*",
|
|
111
|
-
"eslint": ">=8.0.0",
|
|
112
116
|
"eslint-import-resolver-typescript": "*",
|
|
113
117
|
"eslint-plugin-eslint-comments": "*",
|
|
114
118
|
"eslint-plugin-functional": "*",
|
|
115
119
|
"eslint-plugin-import": "*",
|
|
116
120
|
"eslint-plugin-jsdoc": "*",
|
|
117
121
|
"eslint-plugin-markdown": "*",
|
|
122
|
+
"eslint-plugin-node": "*",
|
|
118
123
|
"eslint-plugin-optimize-regex": "*",
|
|
119
124
|
"eslint-plugin-promise": "*",
|
|
120
125
|
"eslint-plugin-sonarjs": "*",
|
|
121
|
-
"eslint-plugin-
|
|
126
|
+
"eslint-plugin-tsdoc": "*",
|
|
127
|
+
"eslint-plugin-unicorn": "*",
|
|
128
|
+
"eslint": ">=8.0.0"
|
|
122
129
|
},
|
|
123
130
|
"engines": {
|
|
124
131
|
"node": "^14.17.0 || >=16.0.0"
|