eslint-config-complete 1.2.1 → 1.2.3
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/dist/base/base-eslint.d.ts +12 -0
- package/dist/base/base-eslint.d.ts.map +1 -0
- package/dist/base/base-eslint.js +670 -0
- package/dist/base/base-import-x.d.ts +12 -0
- package/dist/base/base-import-x.d.ts.map +1 -0
- package/dist/base/base-import-x.js +262 -0
- package/dist/base/base-jsdoc.d.ts +6 -0
- package/dist/base/base-jsdoc.d.ts.map +1 -0
- package/dist/base/base-jsdoc.js +212 -0
- package/dist/base/base-n.d.ts +7 -0
- package/dist/base/base-n.d.ts.map +1 -0
- package/dist/base/base-n.js +108 -0
- package/dist/base/base-stylistic.d.ts +6 -0
- package/dist/base/base-stylistic.d.ts.map +1 -0
- package/dist/base/base-stylistic.js +35 -0
- package/dist/base/base-typescript-eslint.d.ts +6 -0
- package/dist/base/base-typescript-eslint.d.ts.map +1 -0
- package/dist/base/base-typescript-eslint.js +476 -0
- package/dist/base/base-unicorn.d.ts +10 -0
- package/dist/base/base-unicorn.d.ts.map +1 -0
- package/dist/base/base-unicorn.js +203 -0
- package/dist/base.d.ts +8 -0
- package/dist/base.d.ts.map +1 -0
- package/{src → dist}/base.js +17 -30
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/monorepo.d.ts +6 -0
- package/dist/monorepo.d.ts.map +1 -0
- package/dist/monorepo.js +16 -0
- package/package.json +5 -3
- package/src/base/base-eslint.js +0 -850
- package/src/base/base-import-x.js +0 -310
- package/src/base/base-jsdoc.js +0 -276
- package/src/base/base-n.js +0 -150
- package/src/base/base-stylistic.js +0 -38
- package/src/base/base-typescript-eslint.js +0 -554
- package/src/base/base-unicorn.js +0 -246
- package/src/monorepo.js +0 -18
- /package/{src → dist}/index.js +0 -0
package/src/base/base-n.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import ESLintPluginN from "eslint-plugin-n";
|
|
2
|
-
import tseslint from "typescript-eslint";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This ESLint config only contains rules from `eslint-plugin-n`:
|
|
6
|
-
* https://github.com/eslint-community/eslint-plugin-n
|
|
7
|
-
* (This is a forked version of `eslint-plugin-node`.)
|
|
8
|
-
*/
|
|
9
|
-
export const baseN = tseslint.config(
|
|
10
|
-
{
|
|
11
|
-
plugins: {
|
|
12
|
-
n: ESLintPluginN,
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
rules: {
|
|
16
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
17
|
-
"n/callback-return": "off",
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* This rule is helpful to automatically fix file extensions in import statements throughout
|
|
21
|
-
* an entire codebase.
|
|
22
|
-
*/
|
|
23
|
-
"n/file-extension-in-import": ["warn", "always"],
|
|
24
|
-
|
|
25
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
26
|
-
"n/exports-style": "off",
|
|
27
|
-
|
|
28
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
29
|
-
"n/global-require": "off",
|
|
30
|
-
|
|
31
|
-
"n/handle-callback-err": "warn",
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Disabled since it does not work very well with TypeScript. (It needs project-specific
|
|
35
|
-
* configuration depending on where the output directory is located.)
|
|
36
|
-
*/
|
|
37
|
-
"n/hashbang": "off", // cspell:disable-line
|
|
38
|
-
|
|
39
|
-
"n/no-callback-literal": "warn",
|
|
40
|
-
"n/no-deprecated-api": "warn",
|
|
41
|
-
"n/no-exports-assign": "warn",
|
|
42
|
-
|
|
43
|
-
/** Disabled since it is handled by the TypeScript compiler. */
|
|
44
|
-
"n/no-extraneous-import": "off",
|
|
45
|
-
|
|
46
|
-
/** Disabled since require statements are not used in TypeScript code. */
|
|
47
|
-
"n/no-extraneous-require": "off",
|
|
48
|
-
|
|
49
|
-
/** Disabled because this rule is deprecated. */
|
|
50
|
-
"n/no-hide-core-modules": "off",
|
|
51
|
-
|
|
52
|
-
/** Disabled since it is handled by the TypeScript compiler. */
|
|
53
|
-
"n/no-missing-import": "off",
|
|
54
|
-
|
|
55
|
-
"n/no-missing-require": "warn",
|
|
56
|
-
|
|
57
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
58
|
-
"n/no-mixed-requires": "off",
|
|
59
|
-
|
|
60
|
-
"n/no-new-require": "warn",
|
|
61
|
-
"n/no-path-concat": "warn",
|
|
62
|
-
|
|
63
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
64
|
-
"n/no-process-env": "off",
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Disabled because using `process.exit` is common to exit command-line applications without
|
|
68
|
-
* verbose output.
|
|
69
|
-
*/
|
|
70
|
-
"n/no-process-exit": "off",
|
|
71
|
-
|
|
72
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
73
|
-
"n/no-restricted-import": "off",
|
|
74
|
-
|
|
75
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
76
|
-
"n/no-restricted-require": "off",
|
|
77
|
-
|
|
78
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
79
|
-
"n/no-sync": "off",
|
|
80
|
-
|
|
81
|
-
"n/no-unpublished-bin": "warn",
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* An exception is made for files in a "scripts" directory, since those should be allowed to
|
|
85
|
-
* import from "devDependencies".
|
|
86
|
-
*/
|
|
87
|
-
"n/no-unpublished-import": "warn",
|
|
88
|
-
|
|
89
|
-
"n/no-unpublished-require": "warn",
|
|
90
|
-
|
|
91
|
-
/** Disabled because this rule is deprecated. */
|
|
92
|
-
"n/no-unsupported-features": "off",
|
|
93
|
-
|
|
94
|
-
/** Disabled because it is assumed that we are running on modern versions of Node.js. */
|
|
95
|
-
"n/no-unsupported-features/es-builtins": "off",
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Disabled because it is assumed that our transpiler or runtime has support for the latest
|
|
99
|
-
* version of ESM.
|
|
100
|
-
*/
|
|
101
|
-
"n/no-unsupported-features/es-syntax": "off",
|
|
102
|
-
|
|
103
|
-
/** Disabled since it is handled by the TypeScript compiler. */
|
|
104
|
-
"n/no-unsupported-features/node-builtins": "off",
|
|
105
|
-
|
|
106
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
107
|
-
"n/prefer-global/buffer": "off",
|
|
108
|
-
|
|
109
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
110
|
-
"n/prefer-global/console": "off",
|
|
111
|
-
|
|
112
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
113
|
-
"n/prefer-global/process": "off",
|
|
114
|
-
|
|
115
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
116
|
-
"n/prefer-global/text-decoder": "off",
|
|
117
|
-
|
|
118
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
119
|
-
"n/prefer-global/text-encoder": "off",
|
|
120
|
-
|
|
121
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
122
|
-
"n/prefer-global/url": "off",
|
|
123
|
-
|
|
124
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
125
|
-
"n/prefer-global/url-search-params": "off",
|
|
126
|
-
|
|
127
|
-
/** Superseded by the `unicorn/prefer-node-protocol` rule. */
|
|
128
|
-
"n/prefer-node-protocol": "off",
|
|
129
|
-
|
|
130
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
131
|
-
"n/prefer-promises/dns": "off",
|
|
132
|
-
|
|
133
|
-
/** Disabled since stylistic rules from this plugin are not used. */
|
|
134
|
-
"n/prefer-promises/fs": "off",
|
|
135
|
-
|
|
136
|
-
"n/process-exit-as-throw": "warn",
|
|
137
|
-
|
|
138
|
-
/** Superseded by the `n/hashbang` rule. */
|
|
139
|
-
"n/shebang": "off",
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
// Imports in a "scripts" directory can use "devDependencies".
|
|
144
|
-
{
|
|
145
|
-
files: ["**/scripts/*.{js,cjs,mjs,ts,cts,mts}"],
|
|
146
|
-
rules: {
|
|
147
|
-
"n/no-unpublished-import": "off",
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import ESLintPluginStylistic from "@stylistic/eslint-plugin";
|
|
2
|
-
import tseslint from "typescript-eslint";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This ESLint config only contains rules from `@stylistic/eslint-plugin`:
|
|
6
|
-
* https://eslint.style/
|
|
7
|
-
*/
|
|
8
|
-
export const baseStylistic = tseslint.config({
|
|
9
|
-
plugins: {
|
|
10
|
-
// @ts-expect-error https://github.com/eslint-stylistic/eslint-stylistic/issues/506
|
|
11
|
-
"@stylistic": ESLintPluginStylistic,
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
rules: {
|
|
15
|
-
/** This rule is not handled by Prettier, so we must use ESLint to enforce it. */
|
|
16
|
-
"@stylistic/lines-between-class-members": [
|
|
17
|
-
"warn",
|
|
18
|
-
"always",
|
|
19
|
-
{
|
|
20
|
-
exceptAfterSingleLine: true,
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* We forbid unnecessary backticks by using the options specified in [the
|
|
26
|
-
* `eslint-config-prettier`
|
|
27
|
-
* documentation](https://github.com/prettier/eslint-config-prettier#enforce-backticks).
|
|
28
|
-
*/
|
|
29
|
-
"@stylistic/quotes": [
|
|
30
|
-
"warn",
|
|
31
|
-
"double",
|
|
32
|
-
{
|
|
33
|
-
avoidEscape: true,
|
|
34
|
-
allowTemplateLiterals: false,
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
});
|