@rebeccastevens/eslint-config 1.3.1 → 1.3.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/CHANGELOG.md +22 -0
- package/dist/modern.cjs +43 -34
- package/dist/modern.mjs +43 -34
- package/dist/script.cjs +3 -0
- package/dist/script.mjs +3 -0
- package/dist/typescript.cjs +15 -5
- package/dist/typescript.mjs +15 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
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.4](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.3...v1.3.4) (2022-03-22)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* import/internal-regex ([3bc0fa5](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/3bc0fa5b8e85ac3f4fc16407d27bca6035f19ded))
|
|
10
|
+
|
|
11
|
+
## [1.3.3](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.2...v1.3.3) (2022-03-22)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* upadte functional rules ([19ed80d](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/19ed80dfcd99fedf3de686dbc6e06b5ab3b63f5e))
|
|
17
|
+
* update import rules ([2382357](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/238235709d74a76c0ee1b53fc3c691f72074ea91))
|
|
18
|
+
|
|
19
|
+
## [1.3.2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.1...v1.3.2) (2022-03-22)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* update node rules ([81a5c93](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/81a5c931f79bee9314fea099d3fa532216c2104b))
|
|
25
|
+
|
|
4
26
|
## [1.3.1](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.3.0...v1.3.1) (2022-02-09)
|
|
5
27
|
|
|
6
28
|
|
package/dist/modern.cjs
CHANGED
|
@@ -5,14 +5,8 @@ var deepmergeTs = require('deepmerge-ts');
|
|
|
5
5
|
const useNumberIsFinite = "Please use Number.isFinite instead";
|
|
6
6
|
const useNumberIsNan = "Please use Number.isNaN instead";
|
|
7
7
|
const useObjectDefineProperty = "Please use Object.defineProperty instead.";
|
|
8
|
-
const rules$
|
|
8
|
+
const rules$7 = {
|
|
9
9
|
"accessor-pairs": "error",
|
|
10
|
-
"array-callback-return": [
|
|
11
|
-
"error",
|
|
12
|
-
{
|
|
13
|
-
allowImplicit: false,
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
10
|
"block-scoped-var": "error",
|
|
17
11
|
"class-methods-use-this": "error",
|
|
18
12
|
"complexity": "off",
|
|
@@ -157,6 +151,32 @@ const rules$6 = {
|
|
|
157
151
|
"yoda": ["error", "never"],
|
|
158
152
|
};
|
|
159
153
|
|
|
154
|
+
const rules$6 = {
|
|
155
|
+
"callback-return": "off",
|
|
156
|
+
"global-require": "off",
|
|
157
|
+
"handle-callback-err": "off",
|
|
158
|
+
"id-blacklist": "off",
|
|
159
|
+
"indent-legacy": "off",
|
|
160
|
+
"lines-around-directive": "off",
|
|
161
|
+
"newline-after-var": "off",
|
|
162
|
+
"newline-before-return": "off",
|
|
163
|
+
"no-buffer-constructor": "off",
|
|
164
|
+
"no-catch-shadow": "off",
|
|
165
|
+
"no-mixed-requires": "off",
|
|
166
|
+
"no-native-reassign": "off",
|
|
167
|
+
"no-negated-in-lhs": "off",
|
|
168
|
+
"no-new-require": "off",
|
|
169
|
+
"no-path-concat": "off",
|
|
170
|
+
"no-process-env": "off",
|
|
171
|
+
"no-process-exit": "off",
|
|
172
|
+
"no-restricted-modules": "off",
|
|
173
|
+
"no-spaced-func": "off",
|
|
174
|
+
"no-sync": "off",
|
|
175
|
+
"prefer-reflect": "off",
|
|
176
|
+
"require-jsdoc": "off",
|
|
177
|
+
"valid-jsdoc": "off",
|
|
178
|
+
};
|
|
179
|
+
|
|
160
180
|
const rules$5 = {
|
|
161
181
|
"arrow-body-style": ["error", "as-needed"],
|
|
162
182
|
"arrow-parens": ["error", "always"],
|
|
@@ -585,12 +605,13 @@ const rules$1 = {
|
|
|
585
605
|
};
|
|
586
606
|
|
|
587
607
|
const rules = {
|
|
588
|
-
...rules$
|
|
608
|
+
...rules$7,
|
|
589
609
|
...rules$5,
|
|
590
610
|
...rules$4,
|
|
591
611
|
...rules$3,
|
|
592
612
|
...rules$2,
|
|
593
613
|
...rules$1,
|
|
614
|
+
...rules$6,
|
|
594
615
|
};
|
|
595
616
|
|
|
596
617
|
const settings$9 = {
|
|
@@ -600,17 +621,8 @@ const settings$9 = {
|
|
|
600
621
|
|
|
601
622
|
const settings$8 = {
|
|
602
623
|
plugins: ["functional"],
|
|
603
|
-
extends: [
|
|
604
|
-
"plugin:functional/external-recommended",
|
|
605
|
-
"plugin:functional/recommended",
|
|
606
|
-
],
|
|
607
624
|
rules: {
|
|
608
|
-
"functional/no-
|
|
609
|
-
"error",
|
|
610
|
-
{
|
|
611
|
-
ignorePattern: "^mutable",
|
|
612
|
-
},
|
|
613
|
-
],
|
|
625
|
+
"functional/no-expression-statement": "error",
|
|
614
626
|
"functional/immutable-data": [
|
|
615
627
|
"error",
|
|
616
628
|
{
|
|
@@ -625,20 +637,21 @@ const settings$8 = {
|
|
|
625
637
|
allowReturningBranches: true,
|
|
626
638
|
},
|
|
627
639
|
],
|
|
628
|
-
"functional/no-
|
|
640
|
+
"functional/no-let": [
|
|
629
641
|
"error",
|
|
630
642
|
{
|
|
631
|
-
|
|
643
|
+
ignorePattern: "^mutable",
|
|
632
644
|
},
|
|
633
645
|
],
|
|
634
|
-
"functional/no-
|
|
635
|
-
"functional/
|
|
646
|
+
"functional/no-loop-statement": "error",
|
|
647
|
+
"functional/no-mixed-type": "error",
|
|
648
|
+
"functional/no-throw-statement": [
|
|
636
649
|
"error",
|
|
637
650
|
{
|
|
638
|
-
|
|
639
|
-
ignoreClass: true,
|
|
651
|
+
allowInAsyncFunctions: true,
|
|
640
652
|
},
|
|
641
653
|
],
|
|
654
|
+
"functional/no-return-void": "error",
|
|
642
655
|
},
|
|
643
656
|
overrides: [
|
|
644
657
|
{
|
|
@@ -787,21 +800,14 @@ const settings$7 = {
|
|
|
787
800
|
"index",
|
|
788
801
|
],
|
|
789
802
|
"newlines-between": "always",
|
|
790
|
-
"pathGroups": [
|
|
791
|
-
{
|
|
792
|
-
group: "internal",
|
|
793
|
-
pattern: "~/**",
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
group: "internal",
|
|
797
|
-
pattern: "@/**",
|
|
798
|
-
},
|
|
799
|
-
],
|
|
800
803
|
},
|
|
801
804
|
],
|
|
802
805
|
"import/prefer-default-export": "off",
|
|
803
806
|
"import/unambiguous": "off",
|
|
804
807
|
},
|
|
808
|
+
settings: {
|
|
809
|
+
"import/internal-regex": "^(?:@|~)\\/.+",
|
|
810
|
+
},
|
|
805
811
|
overrides: [
|
|
806
812
|
{
|
|
807
813
|
files: ["**/*.cjs"],
|
|
@@ -953,6 +959,7 @@ const settings$4 = {
|
|
|
953
959
|
"node/no-process-exit": "error",
|
|
954
960
|
"node/no-sync": "error",
|
|
955
961
|
"node/no-unpublished-import": "warn",
|
|
962
|
+
"node/no-unsupported-features/es-syntax": "off",
|
|
956
963
|
"node/prefer-global/buffer": ["error", "always"],
|
|
957
964
|
"node/prefer-global/console": ["error", "always"],
|
|
958
965
|
"node/prefer-global/process": ["error", "always"],
|
|
@@ -1008,6 +1015,8 @@ const settings = {
|
|
|
1008
1015
|
"unicorn/no-array-reduce": "off",
|
|
1009
1016
|
"unicorn/no-nested-ternary": "off",
|
|
1010
1017
|
"unicorn/no-null": "off",
|
|
1018
|
+
// "node/no-process-exit" covers this.
|
|
1019
|
+
"unicorn/no-process-exit": "off",
|
|
1011
1020
|
"unicorn/no-useless-undefined": "off",
|
|
1012
1021
|
"unicorn/prefer-at": [
|
|
1013
1022
|
"error",
|
package/dist/modern.mjs
CHANGED
|
@@ -3,14 +3,8 @@ import { deepmerge } from 'deepmerge-ts';
|
|
|
3
3
|
const useNumberIsFinite = "Please use Number.isFinite instead";
|
|
4
4
|
const useNumberIsNan = "Please use Number.isNaN instead";
|
|
5
5
|
const useObjectDefineProperty = "Please use Object.defineProperty instead.";
|
|
6
|
-
const rules$
|
|
6
|
+
const rules$7 = {
|
|
7
7
|
"accessor-pairs": "error",
|
|
8
|
-
"array-callback-return": [
|
|
9
|
-
"error",
|
|
10
|
-
{
|
|
11
|
-
allowImplicit: false,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
8
|
"block-scoped-var": "error",
|
|
15
9
|
"class-methods-use-this": "error",
|
|
16
10
|
"complexity": "off",
|
|
@@ -155,6 +149,32 @@ const rules$6 = {
|
|
|
155
149
|
"yoda": ["error", "never"],
|
|
156
150
|
};
|
|
157
151
|
|
|
152
|
+
const rules$6 = {
|
|
153
|
+
"callback-return": "off",
|
|
154
|
+
"global-require": "off",
|
|
155
|
+
"handle-callback-err": "off",
|
|
156
|
+
"id-blacklist": "off",
|
|
157
|
+
"indent-legacy": "off",
|
|
158
|
+
"lines-around-directive": "off",
|
|
159
|
+
"newline-after-var": "off",
|
|
160
|
+
"newline-before-return": "off",
|
|
161
|
+
"no-buffer-constructor": "off",
|
|
162
|
+
"no-catch-shadow": "off",
|
|
163
|
+
"no-mixed-requires": "off",
|
|
164
|
+
"no-native-reassign": "off",
|
|
165
|
+
"no-negated-in-lhs": "off",
|
|
166
|
+
"no-new-require": "off",
|
|
167
|
+
"no-path-concat": "off",
|
|
168
|
+
"no-process-env": "off",
|
|
169
|
+
"no-process-exit": "off",
|
|
170
|
+
"no-restricted-modules": "off",
|
|
171
|
+
"no-spaced-func": "off",
|
|
172
|
+
"no-sync": "off",
|
|
173
|
+
"prefer-reflect": "off",
|
|
174
|
+
"require-jsdoc": "off",
|
|
175
|
+
"valid-jsdoc": "off",
|
|
176
|
+
};
|
|
177
|
+
|
|
158
178
|
const rules$5 = {
|
|
159
179
|
"arrow-body-style": ["error", "as-needed"],
|
|
160
180
|
"arrow-parens": ["error", "always"],
|
|
@@ -583,12 +603,13 @@ const rules$1 = {
|
|
|
583
603
|
};
|
|
584
604
|
|
|
585
605
|
const rules = {
|
|
586
|
-
...rules$
|
|
606
|
+
...rules$7,
|
|
587
607
|
...rules$5,
|
|
588
608
|
...rules$4,
|
|
589
609
|
...rules$3,
|
|
590
610
|
...rules$2,
|
|
591
611
|
...rules$1,
|
|
612
|
+
...rules$6,
|
|
592
613
|
};
|
|
593
614
|
|
|
594
615
|
const settings$9 = {
|
|
@@ -598,17 +619,8 @@ const settings$9 = {
|
|
|
598
619
|
|
|
599
620
|
const settings$8 = {
|
|
600
621
|
plugins: ["functional"],
|
|
601
|
-
extends: [
|
|
602
|
-
"plugin:functional/external-recommended",
|
|
603
|
-
"plugin:functional/recommended",
|
|
604
|
-
],
|
|
605
622
|
rules: {
|
|
606
|
-
"functional/no-
|
|
607
|
-
"error",
|
|
608
|
-
{
|
|
609
|
-
ignorePattern: "^mutable",
|
|
610
|
-
},
|
|
611
|
-
],
|
|
623
|
+
"functional/no-expression-statement": "error",
|
|
612
624
|
"functional/immutable-data": [
|
|
613
625
|
"error",
|
|
614
626
|
{
|
|
@@ -623,20 +635,21 @@ const settings$8 = {
|
|
|
623
635
|
allowReturningBranches: true,
|
|
624
636
|
},
|
|
625
637
|
],
|
|
626
|
-
"functional/no-
|
|
638
|
+
"functional/no-let": [
|
|
627
639
|
"error",
|
|
628
640
|
{
|
|
629
|
-
|
|
641
|
+
ignorePattern: "^mutable",
|
|
630
642
|
},
|
|
631
643
|
],
|
|
632
|
-
"functional/no-
|
|
633
|
-
"functional/
|
|
644
|
+
"functional/no-loop-statement": "error",
|
|
645
|
+
"functional/no-mixed-type": "error",
|
|
646
|
+
"functional/no-throw-statement": [
|
|
634
647
|
"error",
|
|
635
648
|
{
|
|
636
|
-
|
|
637
|
-
ignoreClass: true,
|
|
649
|
+
allowInAsyncFunctions: true,
|
|
638
650
|
},
|
|
639
651
|
],
|
|
652
|
+
"functional/no-return-void": "error",
|
|
640
653
|
},
|
|
641
654
|
overrides: [
|
|
642
655
|
{
|
|
@@ -785,21 +798,14 @@ const settings$7 = {
|
|
|
785
798
|
"index",
|
|
786
799
|
],
|
|
787
800
|
"newlines-between": "always",
|
|
788
|
-
"pathGroups": [
|
|
789
|
-
{
|
|
790
|
-
group: "internal",
|
|
791
|
-
pattern: "~/**",
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
group: "internal",
|
|
795
|
-
pattern: "@/**",
|
|
796
|
-
},
|
|
797
|
-
],
|
|
798
801
|
},
|
|
799
802
|
],
|
|
800
803
|
"import/prefer-default-export": "off",
|
|
801
804
|
"import/unambiguous": "off",
|
|
802
805
|
},
|
|
806
|
+
settings: {
|
|
807
|
+
"import/internal-regex": "^(?:@|~)\\/.+",
|
|
808
|
+
},
|
|
803
809
|
overrides: [
|
|
804
810
|
{
|
|
805
811
|
files: ["**/*.cjs"],
|
|
@@ -951,6 +957,7 @@ const settings$4 = {
|
|
|
951
957
|
"node/no-process-exit": "error",
|
|
952
958
|
"node/no-sync": "error",
|
|
953
959
|
"node/no-unpublished-import": "warn",
|
|
960
|
+
"node/no-unsupported-features/es-syntax": "off",
|
|
954
961
|
"node/prefer-global/buffer": ["error", "always"],
|
|
955
962
|
"node/prefer-global/console": ["error", "always"],
|
|
956
963
|
"node/prefer-global/process": ["error", "always"],
|
|
@@ -1006,6 +1013,8 @@ const settings = {
|
|
|
1006
1013
|
"unicorn/no-array-reduce": "off",
|
|
1007
1014
|
"unicorn/no-nested-ternary": "off",
|
|
1008
1015
|
"unicorn/no-null": "off",
|
|
1016
|
+
// "node/no-process-exit" covers this.
|
|
1017
|
+
"unicorn/no-process-exit": "off",
|
|
1009
1018
|
"unicorn/no-useless-undefined": "off",
|
|
1010
1019
|
"unicorn/prefer-at": [
|
|
1011
1020
|
"error",
|
package/dist/script.cjs
CHANGED
|
@@ -6,6 +6,9 @@ const baseConfig = {
|
|
|
6
6
|
"functional/no-expression-statement": "off",
|
|
7
7
|
"functional/no-loop-statement": "off",
|
|
8
8
|
"functional/no-throw-statement": "off",
|
|
9
|
+
"node/no-process-exit": "off",
|
|
10
|
+
"node/no-sync": "off",
|
|
11
|
+
"node/no-unpublished-import": "off",
|
|
9
12
|
},
|
|
10
13
|
};
|
|
11
14
|
|
package/dist/script.mjs
CHANGED
package/dist/typescript.cjs
CHANGED
|
@@ -253,6 +253,21 @@ const baseConfig = {
|
|
|
253
253
|
"object-curly-spacing": "off",
|
|
254
254
|
"space-infix-ops": "off",
|
|
255
255
|
},
|
|
256
|
+
settings: {
|
|
257
|
+
"import/extensions": [
|
|
258
|
+
".js",
|
|
259
|
+
".ts",
|
|
260
|
+
".jsx",
|
|
261
|
+
".tsx",
|
|
262
|
+
".mjs",
|
|
263
|
+
".mts",
|
|
264
|
+
".cjs",
|
|
265
|
+
".cts",
|
|
266
|
+
],
|
|
267
|
+
"import/parsers": {
|
|
268
|
+
"@typescript-eslint/parser": [".ts", ".tsx", ".mts", ".cts"],
|
|
269
|
+
},
|
|
270
|
+
},
|
|
256
271
|
overrides: [
|
|
257
272
|
{
|
|
258
273
|
files: ["**/*.ts", "**/*.tsx"],
|
|
@@ -263,11 +278,6 @@ const baseConfig = {
|
|
|
263
278
|
"import/namespace": "off",
|
|
264
279
|
"node/no-unsupported-features/es-syntax": "off",
|
|
265
280
|
},
|
|
266
|
-
settings: {
|
|
267
|
-
"import/parsers": {
|
|
268
|
-
"@typescript-eslint/parser": [".ts", ".tsx"],
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
281
|
},
|
|
272
282
|
],
|
|
273
283
|
};
|
package/dist/typescript.mjs
CHANGED
|
@@ -251,6 +251,21 @@ const baseConfig = {
|
|
|
251
251
|
"object-curly-spacing": "off",
|
|
252
252
|
"space-infix-ops": "off",
|
|
253
253
|
},
|
|
254
|
+
settings: {
|
|
255
|
+
"import/extensions": [
|
|
256
|
+
".js",
|
|
257
|
+
".ts",
|
|
258
|
+
".jsx",
|
|
259
|
+
".tsx",
|
|
260
|
+
".mjs",
|
|
261
|
+
".mts",
|
|
262
|
+
".cjs",
|
|
263
|
+
".cts",
|
|
264
|
+
],
|
|
265
|
+
"import/parsers": {
|
|
266
|
+
"@typescript-eslint/parser": [".ts", ".tsx", ".mts", ".cts"],
|
|
267
|
+
},
|
|
268
|
+
},
|
|
254
269
|
overrides: [
|
|
255
270
|
{
|
|
256
271
|
files: ["**/*.ts", "**/*.tsx"],
|
|
@@ -261,11 +276,6 @@ const baseConfig = {
|
|
|
261
276
|
"import/namespace": "off",
|
|
262
277
|
"node/no-unsupported-features/es-syntax": "off",
|
|
263
278
|
},
|
|
264
|
-
settings: {
|
|
265
|
-
"import/parsers": {
|
|
266
|
-
"@typescript-eslint/parser": [".ts", ".tsx"],
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
279
|
},
|
|
270
280
|
],
|
|
271
281
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"test": "echo no tests"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"deepmerge-ts": "^
|
|
63
|
+
"deepmerge-ts": "^4.0.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@commitlint/cli": "^16.1.0",
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"eslint-plugin-optimize-regex": "^1.2.1",
|
|
94
94
|
"eslint-plugin-prettier": "^4.0.0",
|
|
95
95
|
"eslint-plugin-promise": "^6.0.0",
|
|
96
|
-
"eslint-plugin-sonarjs": "^0.
|
|
96
|
+
"eslint-plugin-sonarjs": "^0.12.0",
|
|
97
97
|
"eslint-plugin-tsdoc": "^0.2.14",
|
|
98
|
-
"eslint-plugin-unicorn": "^
|
|
98
|
+
"eslint-plugin-unicorn": "^41.0.0",
|
|
99
99
|
"husky": "^7.0.4",
|
|
100
100
|
"lint-staged": "^12.3.3",
|
|
101
101
|
"markdownlint-cli": "^0.31.0",
|