eslint-config-terrax 0.1.0-next.40518a9
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 +0 -0
- package/LICENSE +21 -0
- package/README.md +47 -0
- package/dist/cjs/common.cjs +223 -0
- package/dist/cjs/common.cjs.map +1 -0
- package/dist/cjs/common.d.cts +5 -0
- package/dist/cjs/index.cjs +40 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +6 -0
- package/dist/cjs/node.cjs +68 -0
- package/dist/cjs/node.cjs.map +1 -0
- package/dist/cjs/node.d.cts +5 -0
- package/dist/cjs/prettier.cjs +24 -0
- package/dist/cjs/prettier.cjs.map +1 -0
- package/dist/cjs/prettier.d.cts +5 -0
- package/dist/cjs/stylistic.cjs +124 -0
- package/dist/cjs/stylistic.cjs.map +1 -0
- package/dist/cjs/stylistic.d.cts +5 -0
- package/dist/cjs/typescript.cjs +155 -0
- package/dist/cjs/typescript.cjs.map +1 -0
- package/dist/cjs/typescript.d.cts +5 -0
- package/dist/esm/common.d.mts +5 -0
- package/dist/esm/common.mjs +217 -0
- package/dist/esm/common.mjs.map +1 -0
- package/dist/esm/index.d.mts +6 -0
- package/dist/esm/index.mjs +7 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/node.d.mts +5 -0
- package/dist/esm/node.mjs +62 -0
- package/dist/esm/node.mjs.map +1 -0
- package/dist/esm/prettier.d.mts +5 -0
- package/dist/esm/prettier.mjs +18 -0
- package/dist/esm/prettier.mjs.map +1 -0
- package/dist/esm/stylistic.d.mts +5 -0
- package/dist/esm/stylistic.mjs +117 -0
- package/dist/esm/stylistic.mjs.map +1 -0
- package/dist/esm/typescript.d.mts +5 -0
- package/dist/esm/typescript.mjs +149 -0
- package/dist/esm/typescript.mjs.map +1 -0
- package/package.json +127 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tseslint = require('typescript-eslint');
|
|
4
|
+
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var tseslint__default = /*#__PURE__*/_interopDefault(tseslint);
|
|
8
|
+
|
|
9
|
+
// src/typescript.ts
|
|
10
|
+
var rules = {
|
|
11
|
+
"@typescript-eslint/array-type": "off",
|
|
12
|
+
"@typescript-eslint/await-thenable": "off",
|
|
13
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
14
|
+
"error",
|
|
15
|
+
{
|
|
16
|
+
minimumDescriptionLength: 3,
|
|
17
|
+
"ts-check": true,
|
|
18
|
+
"ts-expect-error": false,
|
|
19
|
+
"ts-ignore": "allow-with-description",
|
|
20
|
+
"ts-nocheck": true
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"@typescript-eslint/ban-ts-ignore": "off",
|
|
24
|
+
"@typescript-eslint/class-literal-property-style": "error",
|
|
25
|
+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
26
|
+
"@typescript-eslint/default-param-last": "error",
|
|
27
|
+
"@typescript-eslint/dot-notation": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
allowKeywords: true,
|
|
31
|
+
allowPattern: "(^[A-Z])|(^[a-z]+(_[a-z]+)+$)",
|
|
32
|
+
allowPrivateClassPropertyAccess: true
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
36
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
37
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
38
|
+
"@typescript-eslint/init-declarations": "off",
|
|
39
|
+
"@typescript-eslint/interface-name-prefix": "off",
|
|
40
|
+
"@typescript-eslint/method-signature-style": "error",
|
|
41
|
+
"@typescript-eslint/no-array-constructor": "error",
|
|
42
|
+
"@typescript-eslint/no-base-to-string": "error",
|
|
43
|
+
"@typescript-eslint/no-confusing-non-null-assertion": "error",
|
|
44
|
+
"@typescript-eslint/no-dupe-class-members": "error",
|
|
45
|
+
"@typescript-eslint/no-dynamic-delete": "error",
|
|
46
|
+
"@typescript-eslint/no-empty-function": ["error", { allow: ["arrowFunctions"] }],
|
|
47
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
48
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
49
|
+
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
50
|
+
"@typescript-eslint/no-extraneous-class": "error",
|
|
51
|
+
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true, ignoreIIFE: true }],
|
|
52
|
+
"@typescript-eslint/no-for-in-array": "error",
|
|
53
|
+
"@typescript-eslint/no-implied-eval": "error",
|
|
54
|
+
"@typescript-eslint/no-invalid-this": "error",
|
|
55
|
+
"@typescript-eslint/no-invalid-void-type": "error",
|
|
56
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
57
|
+
"@typescript-eslint/no-misused-promises": "off",
|
|
58
|
+
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
|
|
59
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
60
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
61
|
+
"@typescript-eslint/no-redeclare": "error",
|
|
62
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
63
|
+
"@typescript-eslint/no-shadow": "warn",
|
|
64
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
65
|
+
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
|
66
|
+
"@typescript-eslint/no-unnecessary-type-arguments": "error",
|
|
67
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
68
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
69
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
70
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
71
|
+
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
72
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
73
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
74
|
+
"@typescript-eslint/no-unused-expressions": "error",
|
|
75
|
+
"@typescript-eslint/no-unused-vars": [
|
|
76
|
+
"warn",
|
|
77
|
+
{
|
|
78
|
+
vars: "all",
|
|
79
|
+
args: "none",
|
|
80
|
+
ignoreRestSiblings: true
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"@typescript-eslint/no-use-before-define": [
|
|
84
|
+
"warn",
|
|
85
|
+
{
|
|
86
|
+
functions: false,
|
|
87
|
+
typedefs: false
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
91
|
+
"@typescript-eslint/only-throw-error": "error",
|
|
92
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
93
|
+
"@typescript-eslint/prefer-for-of": "error",
|
|
94
|
+
"@typescript-eslint/prefer-function-type": "error",
|
|
95
|
+
"@typescript-eslint/prefer-includes": "error",
|
|
96
|
+
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
|
97
|
+
"@typescript-eslint/prefer-optional-chain": "error",
|
|
98
|
+
"@typescript-eslint/prefer-readonly": "error",
|
|
99
|
+
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
100
|
+
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
101
|
+
"@typescript-eslint/prefer-regexp-exec": "error",
|
|
102
|
+
"@typescript-eslint/prefer-return-this-type": "error",
|
|
103
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
104
|
+
"@typescript-eslint/require-array-sort-compare": "error",
|
|
105
|
+
"@typescript-eslint/require-await": "warn",
|
|
106
|
+
"@typescript-eslint/return-await": "warn",
|
|
107
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
108
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
|
109
|
+
"@typescript-eslint/switch-exhaustiveness-check": "warn",
|
|
110
|
+
"@typescript-eslint/triple-slash-reference": "off",
|
|
111
|
+
"@typescript-eslint/unbound-method": "error",
|
|
112
|
+
"@typescript-eslint/unified-signatures": "error",
|
|
113
|
+
"default-param-last": "off",
|
|
114
|
+
"dot-notation": "off",
|
|
115
|
+
"no-array-constructor": "off",
|
|
116
|
+
"no-dupe-class-members": "off",
|
|
117
|
+
"no-empty-function": "off",
|
|
118
|
+
"no-implied-eval": "off",
|
|
119
|
+
"no-redeclare": "off",
|
|
120
|
+
"no-shadow": "off",
|
|
121
|
+
"no-throw-literal": "off",
|
|
122
|
+
"no-unused-expressions": "off",
|
|
123
|
+
"no-unused-vars": "off",
|
|
124
|
+
"no-useless-constructor": "off",
|
|
125
|
+
"require-await": "off"
|
|
126
|
+
};
|
|
127
|
+
var settings = {
|
|
128
|
+
"import-x/parsers": {
|
|
129
|
+
"@typescript-eslint/parser": [".ts", ".tsx", ".cts", ".mts"]
|
|
130
|
+
},
|
|
131
|
+
"import-x/external-module-folders": ["node_modules", "node_modules/@types"],
|
|
132
|
+
"import-x/extensions": [".ts", ".tsx", ".cts", ".mts", ".js", ".jsx"],
|
|
133
|
+
"import-x/resolver": {
|
|
134
|
+
typescript: {
|
|
135
|
+
alwaysTryTypes: true,
|
|
136
|
+
project: ["./tsconfig.json", "./tsconfig.eslint.json"]
|
|
137
|
+
},
|
|
138
|
+
node: {
|
|
139
|
+
extensions: [".ts", ".tsx", ".cts", ".mts", ".js", ".jsx"]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
var config = tseslint__default.default.config(
|
|
144
|
+
...tseslint__default.default.configs.recommended,
|
|
145
|
+
...tseslint__default.default.configs.recommendedTypeChecked,
|
|
146
|
+
{
|
|
147
|
+
rules,
|
|
148
|
+
settings
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
var typescript_default = config;
|
|
152
|
+
|
|
153
|
+
module.exports = typescript_default;
|
|
154
|
+
//# sourceMappingURL=typescript.cjs.map
|
|
155
|
+
//# sourceMapping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;AAAA,EAC9C,kBAAoB,EAAA;AAAA,IACnB,2BAA6B,EAAA,CAAC,KAAO,EAAA,MAAA,EAAQ,QAAQ,MAAM,CAAA;AAAA,GAC5D;AAAA,EACA,kCAAA,EAAoC,CAAC,cAAA,EAAgB,qBAAqB,CAAA;AAAA,EAC1E,uBAAuB,CAAC,KAAA,EAAO,QAAQ,MAAQ,EAAA,MAAA,EAAQ,OAAO,MAAM,CAAA;AAAA,EACpE,mBAAqB,EAAA;AAAA,IACpB,UAAY,EAAA;AAAA,MACX,cAAgB,EAAA,IAAA;AAAA,MAChB,OAAA,EAAS,CAAC,iBAAA,EAAmB,wBAAwB,CAAA;AAAA,KACtD;AAAA,IACA,IAAM,EAAA;AAAA,MACL,YAAY,CAAC,KAAA,EAAO,QAAQ,MAAQ,EAAA,MAAA,EAAQ,OAAO,MAAM,CAAA;AAAA,KAC1D;AAAA,GACD;AACD,CAAA,CAAA;AAEA,IAAM,SAA0CA,yBAAS,CAAA,MAAA;AAAA,EACxD,GAAGA,0BAAS,OAAQ,CAAA,WAAA;AAAA,EACpB,GAAGA,0BAAS,OAAQ,CAAA,sBAAA;AAAA,EACpB;AAAA,IACC,KAAA;AAAA,IACA,QAAA;AAAA,GACD;AACD,CAAA,CAAA;AAEA,IAAO,kBAAQ,GAAA","file":"typescript.cjs","sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\nimport tseslint from 'typescript-eslint';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'@typescript-eslint/array-type': 'off',\n\t'@typescript-eslint/await-thenable': 'off',\n\t'@typescript-eslint/ban-ts-comment': [\n\t\t'error',\n\t\t{\n\t\t\tminimumDescriptionLength: 3,\n\t\t\t'ts-check': true,\n\t\t\t'ts-expect-error': false,\n\t\t\t'ts-ignore': 'allow-with-description',\n\t\t\t'ts-nocheck': true\n\t\t}\n\t],\n\t'@typescript-eslint/ban-ts-ignore': 'off',\n\t'@typescript-eslint/class-literal-property-style': 'error',\n\t'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],\n\t'@typescript-eslint/default-param-last': 'error',\n\t'@typescript-eslint/dot-notation': [\n\t\t'error',\n\t\t{\n\t\t\tallowKeywords: true,\n\t\t\tallowPattern: '(^[A-Z])|(^[a-z]+(_[a-z]+)+$)',\n\t\t\tallowPrivateClassPropertyAccess: true\n\t\t}\n\t],\n\t'@typescript-eslint/explicit-function-return-type': 'off',\n\t'@typescript-eslint/explicit-member-accessibility': 'error',\n\t'@typescript-eslint/explicit-module-boundary-types': 'off',\n\t'@typescript-eslint/init-declarations': 'off',\n\t'@typescript-eslint/interface-name-prefix': 'off',\n\t'@typescript-eslint/method-signature-style': 'error',\n\t'@typescript-eslint/no-array-constructor': 'error',\n\t'@typescript-eslint/no-base-to-string': 'error',\n\t'@typescript-eslint/no-confusing-non-null-assertion': 'error',\n\t'@typescript-eslint/no-dupe-class-members': 'error',\n\t'@typescript-eslint/no-dynamic-delete': 'error',\n\t'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],\n\t'@typescript-eslint/no-empty-interface': 'off',\n\t'@typescript-eslint/no-explicit-any': 'off',\n\t'@typescript-eslint/no-extra-non-null-assertion': 'error',\n\t'@typescript-eslint/no-extraneous-class': 'error',\n\t'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true, ignoreIIFE: true }],\n\t'@typescript-eslint/no-for-in-array': 'error',\n\t'@typescript-eslint/no-implied-eval': 'error',\n\t'@typescript-eslint/no-invalid-this': 'error',\n\t'@typescript-eslint/no-invalid-void-type': 'error',\n\t'@typescript-eslint/no-misused-new': 'error',\n\t'@typescript-eslint/no-misused-promises': 'off',\n\t'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',\n\t'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',\n\t'@typescript-eslint/no-non-null-assertion': 'off',\n\t'@typescript-eslint/no-redeclare': 'error',\n\t'@typescript-eslint/no-require-imports': 'error',\n\t'@typescript-eslint/no-shadow': 'warn',\n\t'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',\n\t'@typescript-eslint/no-unnecessary-qualifier': 'error',\n\t'@typescript-eslint/no-unnecessary-type-arguments': 'error',\n\t'@typescript-eslint/no-unnecessary-type-assertion': 'error',\n\t'@typescript-eslint/no-unsafe-argument': 'off',\n\t'@typescript-eslint/no-unsafe-assignment': 'off',\n\t'@typescript-eslint/no-unsafe-call': 'off',\n\t'@typescript-eslint/no-unsafe-enum-comparison': 'off',\n\t'@typescript-eslint/no-unsafe-member-access': 'off',\n\t'@typescript-eslint/no-unsafe-return': 'off',\n\t'@typescript-eslint/no-unused-expressions': 'error',\n\t'@typescript-eslint/no-unused-vars': [\n\t\t'warn',\n\t\t{\n\t\t\tvars: 'all',\n\t\t\targs: 'none',\n\t\t\tignoreRestSiblings: true\n\t\t}\n\t],\n\t'@typescript-eslint/no-use-before-define': [\n\t\t'warn',\n\t\t{\n\t\t\tfunctions: false,\n\t\t\ttypedefs: false\n\t\t}\n\t],\n\t'@typescript-eslint/no-useless-constructor': 'error',\n\t'@typescript-eslint/only-throw-error': 'error',\n\t'@typescript-eslint/prefer-as-const': 'error',\n\t'@typescript-eslint/prefer-for-of': 'error',\n\t'@typescript-eslint/prefer-function-type': 'error',\n\t'@typescript-eslint/prefer-includes': 'error',\n\t'@typescript-eslint/prefer-nullish-coalescing': 'error',\n\t'@typescript-eslint/prefer-optional-chain': 'error',\n\t'@typescript-eslint/prefer-readonly': 'error',\n\t'@typescript-eslint/prefer-readonly-parameter-types': 'off',\n\t'@typescript-eslint/prefer-reduce-type-parameter': 'error',\n\t'@typescript-eslint/prefer-regexp-exec': 'error',\n\t'@typescript-eslint/prefer-return-this-type': 'error',\n\t'@typescript-eslint/promise-function-async': 'off',\n\t'@typescript-eslint/require-array-sort-compare': 'error',\n\t'@typescript-eslint/require-await': 'warn',\n\t'@typescript-eslint/return-await': 'warn',\n\t'@typescript-eslint/restrict-plus-operands': 'off',\n\t'@typescript-eslint/restrict-template-expressions': 'off',\n\t'@typescript-eslint/switch-exhaustiveness-check': 'warn',\n\t'@typescript-eslint/triple-slash-reference': 'off',\n\t'@typescript-eslint/unbound-method': 'error',\n\t'@typescript-eslint/unified-signatures': 'error',\n\t'default-param-last': 'off',\n\t'dot-notation': 'off',\n\t'no-array-constructor': 'off',\n\t'no-dupe-class-members': 'off',\n\t'no-empty-function': 'off',\n\t'no-implied-eval': 'off',\n\t'no-redeclare': 'off',\n\t'no-shadow': 'off',\n\t'no-throw-literal': 'off',\n\t'no-unused-expressions': 'off',\n\t'no-unused-vars': 'off',\n\t'no-useless-constructor': 'off',\n\t'require-await': 'off'\n};\n\nconst settings: TSESLint.FlatConfig.Settings = {\n\t'import-x/parsers': {\n\t\t'@typescript-eslint/parser': ['.ts', '.tsx', '.cts', '.mts']\n\t},\n\t'import-x/external-module-folders': ['node_modules', 'node_modules/@types'],\n\t'import-x/extensions': ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx'],\n\t'import-x/resolver': {\n\t\ttypescript: {\n\t\t\talwaysTryTypes: true,\n\t\t\tproject: ['./tsconfig.json', './tsconfig.eslint.json']\n\t\t},\n\t\tnode: {\n\t\t\textensions: ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx']\n\t\t}\n\t}\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = tseslint.config(\n\t...tseslint.configs.recommended,\n\t...tseslint.configs.recommendedTypeChecked,\n\t{\n\t\trules,\n\t\tsettings\n\t}\n);\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import eslintPluginImportX from 'eslint-plugin-import-x';
|
|
2
|
+
|
|
3
|
+
// src/common.ts
|
|
4
|
+
var rules = {
|
|
5
|
+
"accessor-pairs": "warn",
|
|
6
|
+
"array-callback-return": "error",
|
|
7
|
+
"arrow-body-style": ["error", "as-needed"],
|
|
8
|
+
"block-scoped-var": "error",
|
|
9
|
+
complexity: ["warn", { max: 35 }],
|
|
10
|
+
"consistent-this": ["error", "self"],
|
|
11
|
+
"constructor-super": "error",
|
|
12
|
+
curly: ["error", "multi-line", "consistent"],
|
|
13
|
+
"default-param-last": "error",
|
|
14
|
+
"dot-notation": [
|
|
15
|
+
"error",
|
|
16
|
+
{
|
|
17
|
+
allowKeywords: true,
|
|
18
|
+
allowPattern: "(^[A-Z])|(^[a-z]+(_[a-z]+)+$)",
|
|
19
|
+
allowPrivateClassPropertyAccess: true
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
eqeqeq: ["error", "smart"],
|
|
23
|
+
"for-direction": "error",
|
|
24
|
+
"func-name-matching": ["warn", "always"],
|
|
25
|
+
"func-names": ["warn", "as-needed"],
|
|
26
|
+
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
|
|
27
|
+
"getter-return": "error",
|
|
28
|
+
"guard-for-in": "warn",
|
|
29
|
+
"handle-callback-err": "error",
|
|
30
|
+
"max-depth": ["error", { max: 5 }],
|
|
31
|
+
"max-nested-callbacks": ["error", { max: 4 }],
|
|
32
|
+
"no-alert": "error",
|
|
33
|
+
"no-array-constructor": "error",
|
|
34
|
+
"no-async-promise-executor": "error",
|
|
35
|
+
"no-caller": "error",
|
|
36
|
+
"no-case-declarations": "error",
|
|
37
|
+
"no-catch-shadow": "error",
|
|
38
|
+
"no-class-assign": "warn",
|
|
39
|
+
"no-compare-neg-zero": "error",
|
|
40
|
+
"no-cond-assign": "warn",
|
|
41
|
+
"no-console": ["error", { allow: ["log", "warn", "error"] }],
|
|
42
|
+
"no-const-assign": "error",
|
|
43
|
+
"no-constant-binary-expression": "error",
|
|
44
|
+
"no-constant-condition": "error",
|
|
45
|
+
"no-control-regex": "error",
|
|
46
|
+
"no-debugger": "error",
|
|
47
|
+
"no-delete-var": "error",
|
|
48
|
+
"no-dupe-args": "error",
|
|
49
|
+
"no-dupe-class-members": "error",
|
|
50
|
+
"no-dupe-else-if": "error",
|
|
51
|
+
"no-dupe-keys": "error",
|
|
52
|
+
"no-duplicate-case": "error",
|
|
53
|
+
"no-duplicate-imports": "off",
|
|
54
|
+
"no-else-return": "warn",
|
|
55
|
+
"no-empty": "error",
|
|
56
|
+
"no-empty-character-class": "error",
|
|
57
|
+
"no-empty-function": ["error", { allow: ["arrowFunctions"] }],
|
|
58
|
+
"no-empty-pattern": "error",
|
|
59
|
+
"no-empty-static-block": "error",
|
|
60
|
+
"no-eq-null": "warn",
|
|
61
|
+
"no-ex-assign": "error",
|
|
62
|
+
"no-extend-native": "warn",
|
|
63
|
+
"no-extra-boolean-cast": "error",
|
|
64
|
+
"no-extra-label": "warn",
|
|
65
|
+
"no-fallthrough": "error",
|
|
66
|
+
"no-func-assign": "error",
|
|
67
|
+
"no-global-assign": "error",
|
|
68
|
+
"no-implicit-coercion": "error",
|
|
69
|
+
"no-implied-eval": "error",
|
|
70
|
+
"no-import-assign": "error",
|
|
71
|
+
"no-inline-comments": "warn",
|
|
72
|
+
"no-invalid-regexp": "warn",
|
|
73
|
+
"no-invalid-this": "off",
|
|
74
|
+
"no-irregular-whitespace": [
|
|
75
|
+
"error",
|
|
76
|
+
{
|
|
77
|
+
skipStrings: true,
|
|
78
|
+
skipComments: true,
|
|
79
|
+
skipRegExps: true,
|
|
80
|
+
skipTemplates: true
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"no-label-var": "error",
|
|
84
|
+
"no-lone-blocks": "error",
|
|
85
|
+
"no-lonely-if": "error",
|
|
86
|
+
"no-loss-of-precision": "error",
|
|
87
|
+
"no-misleading-character-class": "error",
|
|
88
|
+
"no-mixed-requires": "error",
|
|
89
|
+
"no-multi-str": "error",
|
|
90
|
+
"no-new-func": "warn",
|
|
91
|
+
"no-new-native-nonconstructor": "error",
|
|
92
|
+
"no-new-object": "error",
|
|
93
|
+
"no-new-require": "error",
|
|
94
|
+
"no-new-symbol": "warn",
|
|
95
|
+
"no-new-wrappers": "warn",
|
|
96
|
+
"no-nonoctal-decimal-escape": "error",
|
|
97
|
+
"no-obj-calls": "warn",
|
|
98
|
+
"no-octal": "error",
|
|
99
|
+
"no-octal-escape": "error",
|
|
100
|
+
"no-path-concat": "error",
|
|
101
|
+
"no-prototype-builtins": "error",
|
|
102
|
+
"no-redeclare": "error",
|
|
103
|
+
"no-regex-spaces": "warn",
|
|
104
|
+
"no-return-assign": "error",
|
|
105
|
+
"no-return-await": "off",
|
|
106
|
+
"no-self-assign": "error",
|
|
107
|
+
"no-self-compare": "warn",
|
|
108
|
+
"no-sequences": "error",
|
|
109
|
+
"no-setter-return": "error",
|
|
110
|
+
"no-shadow": "warn",
|
|
111
|
+
"no-shadow-restricted-names": "error",
|
|
112
|
+
"no-spaced-func": "error",
|
|
113
|
+
"no-sparse-arrays": "warn",
|
|
114
|
+
"no-this-before-super": "error",
|
|
115
|
+
"no-throw-literal": "error",
|
|
116
|
+
"no-undef": "error",
|
|
117
|
+
"no-undef-init": "error",
|
|
118
|
+
"no-unexpected-multiline": "error",
|
|
119
|
+
"no-unmodified-loop-condition": "error",
|
|
120
|
+
"no-unneeded-ternary": ["error", { defaultAssignment: false }],
|
|
121
|
+
"no-unreachable": "warn",
|
|
122
|
+
"no-unsafe-finally": "warn",
|
|
123
|
+
"no-unsafe-negation": "error",
|
|
124
|
+
"no-unsafe-optional-chaining": "error",
|
|
125
|
+
"no-unused-expressions": "error",
|
|
126
|
+
"no-unused-labels": "error",
|
|
127
|
+
"no-unused-private-class-members": "error",
|
|
128
|
+
"no-unused-vars": [
|
|
129
|
+
"warn",
|
|
130
|
+
{
|
|
131
|
+
vars: "all",
|
|
132
|
+
args: "none",
|
|
133
|
+
ignoreRestSiblings: true
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"no-useless-backreference": "error",
|
|
137
|
+
"no-useless-call": "error",
|
|
138
|
+
"no-useless-catch": "error",
|
|
139
|
+
"no-useless-computed-key": "error",
|
|
140
|
+
"no-useless-concat": "warn",
|
|
141
|
+
"no-useless-constructor": "error",
|
|
142
|
+
"no-useless-escape": "error",
|
|
143
|
+
"no-useless-rename": "error",
|
|
144
|
+
"no-useless-return": "warn",
|
|
145
|
+
"no-var": "error",
|
|
146
|
+
"no-with": "error",
|
|
147
|
+
"no-warning-comments": "warn",
|
|
148
|
+
"one-var": ["error", "never"],
|
|
149
|
+
"operator-assignment": ["error", "always"],
|
|
150
|
+
"prefer-arrow-callback": "error",
|
|
151
|
+
"prefer-const": ["error", { destructuring: "all" }],
|
|
152
|
+
"prefer-destructuring": [
|
|
153
|
+
"error",
|
|
154
|
+
{
|
|
155
|
+
VariableDeclarator: {
|
|
156
|
+
array: false,
|
|
157
|
+
object: true
|
|
158
|
+
},
|
|
159
|
+
AssignmentExpression: {
|
|
160
|
+
array: true,
|
|
161
|
+
object: false
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
enforceForRenamedProperties: false
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"prefer-object-has-own": "error",
|
|
169
|
+
"prefer-rest-params": "warn",
|
|
170
|
+
"prefer-spread": "error",
|
|
171
|
+
"prefer-template": "warn",
|
|
172
|
+
radix: "error",
|
|
173
|
+
"require-await": "warn",
|
|
174
|
+
"require-yield": "warn",
|
|
175
|
+
strict: ["error", "never"],
|
|
176
|
+
"symbol-description": "error",
|
|
177
|
+
"unicode-bom": ["error", "never"],
|
|
178
|
+
"use-isnan": "error",
|
|
179
|
+
"valid-typeof": "error",
|
|
180
|
+
yoda: "error"
|
|
181
|
+
};
|
|
182
|
+
var settings = {
|
|
183
|
+
"import-x/extensions": [".js"],
|
|
184
|
+
"import-x/resolver": {
|
|
185
|
+
node: {
|
|
186
|
+
extensions: [".js"]
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
var config = [
|
|
191
|
+
{
|
|
192
|
+
linterOptions: {
|
|
193
|
+
reportUnusedDisableDirectives: true
|
|
194
|
+
},
|
|
195
|
+
languageOptions: {
|
|
196
|
+
ecmaVersion: "latest",
|
|
197
|
+
sourceType: "module",
|
|
198
|
+
parserOptions: {
|
|
199
|
+
requireConfigFile: false,
|
|
200
|
+
ecmaFeatures: {
|
|
201
|
+
globalReturn: false,
|
|
202
|
+
impliedStrict: true
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
plugins: {
|
|
207
|
+
"import-x": eslintPluginImportX
|
|
208
|
+
},
|
|
209
|
+
rules,
|
|
210
|
+
settings
|
|
211
|
+
}
|
|
212
|
+
];
|
|
213
|
+
var common_default = config;
|
|
214
|
+
|
|
215
|
+
export { common_default as default };
|
|
216
|
+
//# sourceMappingURL=common.mjs.map
|
|
217
|
+
//# sourceMappingURL=common.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/common.ts"],"names":[],"mappings":";;;AAGA,IAAM,KAAmC,GAAA;AAAA,EACxC,gBAAkB,EAAA,MAAA;AAAA,EAClB,uBAAyB,EAAA,OAAA;AAAA,EACzB,kBAAA,EAAoB,CAAC,OAAA,EAAS,WAAW,CAAA;AAAA,EACzC,kBAAoB,EAAA,OAAA;AAAA,EACpB,YAAY,CAAC,MAAA,EAAQ,EAAE,GAAA,EAAK,IAAI,CAAA;AAAA,EAChC,iBAAA,EAAmB,CAAC,OAAA,EAAS,MAAM,CAAA;AAAA,EACnC,mBAAqB,EAAA,OAAA;AAAA,EACrB,KAAO,EAAA,CAAC,OAAS,EAAA,YAAA,EAAc,YAAY,CAAA;AAAA,EAC3C,oBAAsB,EAAA,OAAA;AAAA,EACtB,cAAgB,EAAA;AAAA,IACf,OAAA;AAAA,IACA;AAAA,MACC,aAAe,EAAA,IAAA;AAAA,MACf,YAAc,EAAA,+BAAA;AAAA,MACd,+BAAiC,EAAA,IAAA;AAAA,KAClC;AAAA,GACD;AAAA,EACA,MAAA,EAAQ,CAAC,OAAA,EAAS,OAAO,CAAA;AAAA,EACzB,eAAiB,EAAA,OAAA;AAAA,EACjB,oBAAA,EAAsB,CAAC,MAAA,EAAQ,QAAQ,CAAA;AAAA,EACvC,YAAA,EAAc,CAAC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AS,OAAO,CAAA;AAAA,EAChC,WAAa,EAAA,OAAA;AAAA,EACb,cAAgB,EAAA,OAAA;AAAA,EAChB,IAAM,EAAA,OAAA;AACP,CAAA,CAAA;AAEA,IAAM,QAAyC,GAAA;AAAA,EAC9C,qBAAA,EAAuB,CAAC,KAAK,CAAA;AAAA,EAC7B,mBAAqB,EAAA;AAAA,IACpB,IAAM,EAAA;AAAA,MACL,UAAA,EAAY,CAAC,KAAK,CAAA;AAAA,KACnB;AAAA,GACD;AACD,CAAA,CAAA;AAEA,IAAM,MAA0C,GAAA;AAAA,EAC/C;AAAA,IACC,aAAe,EAAA;AAAA,MACd,6BAA+B,EAAA,IAAA;AAAA,KAChC;AAAA,IACA,eAAiB,EAAA;AAAA,MAChB,WAAa,EAAA,QAAA;AAAA,MACb,UAAY,EAAA,QAAA;AAAA,MACZ,aAAe,EAAA;AAAA,QACd,iBAAmB,EAAA,KAAA;AAAA,QACnB,YAAc,EAAA;AAAA,UACb,YAAc,EAAA,KAAA;AAAA,UACd,aAAe,EAAA,IAAA;AAAA,SAChB;AAAA,OACD;AAAA,KACD;AAAA,IACA,OAAS,EAAA;AAAA,MACR,UAAY,EAAA,mBAAA;AAAA,KACb;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,GACD;AACD,CAAA,CAAA;AAEA,IAAO,cAAQ,GAAA","file":"common.mjs","sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\nimport eslintPluginImportX from 'eslint-plugin-import-x';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'accessor-pairs': 'warn',\n\t'array-callback-return': 'error',\n\t'arrow-body-style': ['error', 'as-needed'],\n\t'block-scoped-var': 'error',\n\tcomplexity: ['warn', { max: 35 }],\n\t'consistent-this': ['error', 'self'],\n\t'constructor-super': 'error',\n\tcurly: ['error', 'multi-line', 'consistent'],\n\t'default-param-last': 'error',\n\t'dot-notation': [\n\t\t'error',\n\t\t{\n\t\t\tallowKeywords: true,\n\t\t\tallowPattern: '(^[A-Z])|(^[a-z]+(_[a-z]+)+$)',\n\t\t\tallowPrivateClassPropertyAccess: true\n\t\t}\n\t],\n\teqeqeq: ['error', 'smart'],\n\t'for-direction': 'error',\n\t'func-name-matching': ['warn', 'always'],\n\t'func-names': ['warn', 'as-needed'],\n\t'func-style': ['error', 'declaration', { allowArrowFunctions: true }],\n\t'getter-return': 'error',\n\t'guard-for-in': 'warn',\n\t'handle-callback-err': 'error',\n\t'max-depth': ['error', { max: 5 }],\n\t'max-nested-callbacks': ['error', { max: 4 }],\n\t'no-alert': 'error',\n\t'no-array-constructor': 'error',\n\t'no-async-promise-executor': 'error',\n\t'no-caller': 'error',\n\t'no-case-declarations': 'error',\n\t'no-catch-shadow': 'error',\n\t'no-class-assign': 'warn',\n\t'no-compare-neg-zero': 'error',\n\t'no-cond-assign': 'warn',\n\t'no-console': ['error', { allow: ['log', 'warn', 'error'] }],\n\t'no-const-assign': 'error',\n\t'no-constant-binary-expression': 'error',\n\t'no-constant-condition': 'error',\n\t'no-control-regex': 'error',\n\t'no-debugger': 'error',\n\t'no-delete-var': 'error',\n\t'no-dupe-args': 'error',\n\t'no-dupe-class-members': 'error',\n\t'no-dupe-else-if': 'error',\n\t'no-dupe-keys': 'error',\n\t'no-duplicate-case': 'error',\n\t'no-duplicate-imports': 'off',\n\t'no-else-return': 'warn',\n\t'no-empty': 'error',\n\t'no-empty-character-class': 'error',\n\t'no-empty-function': ['error', { allow: ['arrowFunctions'] }],\n\t'no-empty-pattern': 'error',\n\t'no-empty-static-block': 'error',\n\t'no-eq-null': 'warn',\n\t'no-ex-assign': 'error',\n\t'no-extend-native': 'warn',\n\t'no-extra-boolean-cast': 'error',\n\t'no-extra-label': 'warn',\n\t'no-fallthrough': 'error',\n\t'no-func-assign': 'error',\n\t'no-global-assign': 'error',\n\t'no-implicit-coercion': 'error',\n\t'no-implied-eval': 'error',\n\t'no-import-assign': 'error',\n\t'no-inline-comments': 'warn',\n\t'no-invalid-regexp': 'warn',\n\t'no-invalid-this': 'off',\n\t'no-irregular-whitespace': [\n\t\t'error',\n\t\t{\n\t\t\tskipStrings: true,\n\t\t\tskipComments: true,\n\t\t\tskipRegExps: true,\n\t\t\tskipTemplates: true\n\t\t}\n\t],\n\t'no-label-var': 'error',\n\t'no-lone-blocks': 'error',\n\t'no-lonely-if': 'error',\n\t'no-loss-of-precision': 'error',\n\t'no-misleading-character-class': 'error',\n\t'no-mixed-requires': 'error',\n\t'no-multi-str': 'error',\n\t'no-new-func': 'warn',\n\t'no-new-native-nonconstructor': 'error',\n\t'no-new-object': 'error',\n\t'no-new-require': 'error',\n\t'no-new-symbol': 'warn',\n\t'no-new-wrappers': 'warn',\n\t'no-nonoctal-decimal-escape': 'error',\n\t'no-obj-calls': 'warn',\n\t'no-octal': 'error',\n\t'no-octal-escape': 'error',\n\t'no-path-concat': 'error',\n\t'no-prototype-builtins': 'error',\n\t'no-redeclare': 'error',\n\t'no-regex-spaces': 'warn',\n\t'no-return-assign': 'error',\n\t'no-return-await': 'off',\n\t'no-self-assign': 'error',\n\t'no-self-compare': 'warn',\n\t'no-sequences': 'error',\n\t'no-setter-return': 'error',\n\t'no-shadow': 'warn',\n\t'no-shadow-restricted-names': 'error',\n\t'no-spaced-func': 'error',\n\t'no-sparse-arrays': 'warn',\n\t'no-this-before-super': 'error',\n\t'no-throw-literal': 'error',\n\t'no-undef': 'error',\n\t'no-undef-init': 'error',\n\t'no-unexpected-multiline': 'error',\n\t'no-unmodified-loop-condition': 'error',\n\t'no-unneeded-ternary': ['error', { defaultAssignment: false }],\n\t'no-unreachable': 'warn',\n\t'no-unsafe-finally': 'warn',\n\t'no-unsafe-negation': 'error',\n\t'no-unsafe-optional-chaining': 'error',\n\t'no-unused-expressions': 'error',\n\t'no-unused-labels': 'error',\n\t'no-unused-private-class-members': 'error',\n\t'no-unused-vars': [\n\t\t'warn',\n\t\t{\n\t\t\tvars: 'all',\n\t\t\targs: 'none',\n\t\t\tignoreRestSiblings: true\n\t\t}\n\t],\n\t'no-useless-backreference': 'error',\n\t'no-useless-call': 'error',\n\t'no-useless-catch': 'error',\n\t'no-useless-computed-key': 'error',\n\t'no-useless-concat': 'warn',\n\t'no-useless-constructor': 'error',\n\t'no-useless-escape': 'error',\n\t'no-useless-rename': 'error',\n\t'no-useless-return': 'warn',\n\t'no-var': 'error',\n\t'no-with': 'error',\n\t'no-warning-comments': 'warn',\n\t'one-var': ['error', 'never'],\n\t'operator-assignment': ['error', 'always'],\n\t'prefer-arrow-callback': 'error',\n\t'prefer-const': ['error', { destructuring: 'all' }],\n\t'prefer-destructuring': [\n\t\t'error',\n\t\t{\n\t\t\tVariableDeclarator: {\n\t\t\t\tarray: false,\n\t\t\t\tobject: true\n\t\t\t},\n\t\t\tAssignmentExpression: {\n\t\t\t\tarray: true,\n\t\t\t\tobject: false\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tenforceForRenamedProperties: false\n\t\t}\n\t],\n\t'prefer-object-has-own': 'error',\n\t'prefer-rest-params': 'warn',\n\t'prefer-spread': 'error',\n\t'prefer-template': 'warn',\n\tradix: 'error',\n\t'require-await': 'warn',\n\t'require-yield': 'warn',\n\tstrict: ['error', 'never'],\n\t'symbol-description': 'error',\n\t'unicode-bom': ['error', 'never'],\n\t'use-isnan': 'error',\n\t'valid-typeof': 'error',\n\tyoda: 'error'\n};\n\nconst settings: TSESLint.FlatConfig.Settings = {\n\t'import-x/extensions': ['.js'],\n\t'import-x/resolver': {\n\t\tnode: {\n\t\t\textensions: ['.js']\n\t\t}\n\t}\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tlinterOptions: {\n\t\t\treportUnusedDisableDirectives: true\n\t\t},\n\t\tlanguageOptions: {\n\t\t\tecmaVersion: 'latest',\n\t\t\tsourceType: 'module',\n\t\t\tparserOptions: {\n\t\t\t\trequireConfigFile: false,\n\t\t\t\tecmaFeatures: {\n\t\t\t\t\tglobalReturn: false,\n\t\t\t\t\timpliedStrict: true\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tplugins: {\n\t\t\t'import-x': eslintPluginImportX\n\t\t},\n\t\trules,\n\t\tsettings\n\t}\n];\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as common } from './common.js';
|
|
2
|
+
export { default as node } from './node.js';
|
|
3
|
+
export { default as prettier } from './prettier.js';
|
|
4
|
+
export { default as stylistic } from './stylistic.js';
|
|
5
|
+
export { default as typescript } from './typescript.js';
|
|
6
|
+
import '@typescript-eslint/utils';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as common } from './common.mjs';
|
|
2
|
+
export { default as node } from './node.mjs';
|
|
3
|
+
export { default as prettier } from './prettier.mjs';
|
|
4
|
+
export { default as stylistic } from './stylistic.mjs';
|
|
5
|
+
export { default as typescript } from './typescript.mjs';
|
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import globals from 'globals';
|
|
2
|
+
|
|
3
|
+
// src/node.ts
|
|
4
|
+
var rules = {
|
|
5
|
+
"no-restricted-globals": [
|
|
6
|
+
"error",
|
|
7
|
+
{
|
|
8
|
+
name: "Buffer",
|
|
9
|
+
message: "Import Buffer from `node:buffer` instead"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "process",
|
|
13
|
+
message: "Import process from `node:process` instead"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "setTimeout",
|
|
17
|
+
message: "Import setTimeout from `node:timers` instead"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "setInterval",
|
|
21
|
+
message: "Import setInterval from `node:timers` instead"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "setImmediate",
|
|
25
|
+
message: "Import setImmediate from `node:timers` instead"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "clearTimeout",
|
|
29
|
+
message: "Import clearTimeout from `node:timers` instead"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "clearInterval",
|
|
33
|
+
message: "Import clearInterval from `node:timers` instead"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "clearImmediate",
|
|
37
|
+
message: "Import clearImmediate from `node:timers` instead"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"import-x/no-unresolved": "off"
|
|
41
|
+
};
|
|
42
|
+
var config = [
|
|
43
|
+
{
|
|
44
|
+
languageOptions: {
|
|
45
|
+
globals: {
|
|
46
|
+
...globals.node,
|
|
47
|
+
...globals.es2024
|
|
48
|
+
},
|
|
49
|
+
parserOptions: {
|
|
50
|
+
ecmaFeatures: {
|
|
51
|
+
globalReturn: true
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
rules
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
var node_default = config;
|
|
59
|
+
|
|
60
|
+
export { node_default as default };
|
|
61
|
+
//# sourceMappingURL=node.mjs.map
|
|
62
|
+
//# sourceMappingURL=node.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/node.ts"],"names":[],"mappings":";;;AAGA,IAAM,KAAmC,GAAA;AAAA,EACxC,uBAAyB,EAAA;AAAA,IACxB,OAAA;AAAA,IACA;AAAA,MACC,IAAM,EAAA,QAAA;AAAA,MACN,OAAS,EAAA,0CAAA;AAAA,KACV;AAAA,IACA;AAAA,MACC,IAAM,EAAA,SAAA;AAAA,MACN,OAAS,EAAA,4CAAA;AAAA,KACV;AAAA,IACA;AAAA,MACC,IAAM,EAAA,YAAA;AAAA,MACN,OAAS,EAAA,8CAAA;AAAA,KACV;AAAA,IACA;AAAA,MACC,IAAM,EAAA,aAAA;AAAA,MACN,OAAS,EAAA,+CAAA;AAAA,KACV;AAAA,IACA;AAAA,MACC,IAAM,EAAA,cAAA;AAAA,MACN,OAAS,EAAA,gDAAA;AAAA,KACV;AAAA,IACA;AAAA,MACC,IAAM,EAAA,cAAA;AAAA,MACN,OAAS,EAAA,gDAAA;AAAA,KACV;AAAA,IACA;AAAA,MACC,IAAM,EAAA,eAAA;AAAA,MACN,OAAS,EAAA,iDAAA;AAAA,KACV;AAAA,IACA;AAAA,MACC,IAAM,EAAA,gBAAA;AAAA,MACN,OAAS,EAAA,kDAAA;AAAA,KACV;AAAA,GACD;AAAA,EACA,wBAA0B,EAAA,KAAA;AAC3B,CAAA,CAAA;AAEA,IAAM,MAA0C,GAAA;AAAA,EAC/C;AAAA,IACC,eAAiB,EAAA;AAAA,MAChB,OAAS,EAAA;AAAA,QACR,GAAG,OAAQ,CAAA,IAAA;AAAA,QACX,GAAG,OAAQ,CAAA,MAAA;AAAA,OACZ;AAAA,MACA,aAAe,EAAA;AAAA,QACd,YAAc,EAAA;AAAA,UACb,YAAc,EAAA,IAAA;AAAA,SACf;AAAA,OACD;AAAA,KACD;AAAA,IACA,KAAA;AAAA,GACD;AACD,CAAA,CAAA;AAEA,IAAO,YAAQ,GAAA","file":"node.mjs","sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\nimport globals from 'globals';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t'no-restricted-globals': [\n\t\t'error',\n\t\t{\n\t\t\tname: 'Buffer',\n\t\t\tmessage: 'Import Buffer from `node:buffer` instead'\n\t\t},\n\t\t{\n\t\t\tname: 'process',\n\t\t\tmessage: 'Import process from `node:process` instead'\n\t\t},\n\t\t{\n\t\t\tname: 'setTimeout',\n\t\t\tmessage: 'Import setTimeout from `node:timers` instead'\n\t\t},\n\t\t{\n\t\t\tname: 'setInterval',\n\t\t\tmessage: 'Import setInterval from `node:timers` instead'\n\t\t},\n\t\t{\n\t\t\tname: 'setImmediate',\n\t\t\tmessage: 'Import setImmediate from `node:timers` instead'\n\t\t},\n\t\t{\n\t\t\tname: 'clearTimeout',\n\t\t\tmessage: 'Import clearTimeout from `node:timers` instead'\n\t\t},\n\t\t{\n\t\t\tname: 'clearInterval',\n\t\t\tmessage: 'Import clearInterval from `node:timers` instead'\n\t\t},\n\t\t{\n\t\t\tname: 'clearImmediate',\n\t\t\tmessage: 'Import clearImmediate from `node:timers` instead'\n\t\t}\n\t],\n\t'import-x/no-unresolved': 'off'\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\tlanguageOptions: {\n\t\t\tglobals: {\n\t\t\t\t...globals.node,\n\t\t\t\t...globals.es2024\n\t\t\t},\n\t\t\tparserOptions: {\n\t\t\t\tecmaFeatures: {\n\t\t\t\t\tglobalReturn: true\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\trules\n\t}\n];\n\nexport default config;\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
2
|
+
|
|
3
|
+
// src/prettier.ts
|
|
4
|
+
var rules = {
|
|
5
|
+
...eslintConfigPrettier.rules,
|
|
6
|
+
"line-comment-position": "off",
|
|
7
|
+
"no-inline-comments": "off"
|
|
8
|
+
};
|
|
9
|
+
var config = [
|
|
10
|
+
{
|
|
11
|
+
rules
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
var prettier_default = config;
|
|
15
|
+
|
|
16
|
+
export { prettier_default as default };
|
|
17
|
+
//# sourceMappingURL=prettier.mjs.map
|
|
18
|
+
//# sourceMappingURL=prettier.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/prettier.ts"],"names":[],"mappings":";;;AAIA,IAAM,KAAmC,GAAA;AAAA,EACxC,GAAG,oBAAqB,CAAA,KAAA;AAAA,EACxB,uBAAyB,EAAA,KAAA;AAAA,EACzB,oBAAsB,EAAA,KAAA;AACvB,CAAA,CAAA;AAEA,IAAM,MAA0C,GAAA;AAAA,EAC/C;AAAA,IACC,KAAA;AAAA,GACD;AACD,CAAA,CAAA;AAEA,IAAO,gBAAQ,GAAA","file":"prettier.mjs","sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\n// @ts-expect-error TS7016: eslint-config-prettier is not typed\nimport eslintConfigPrettier from 'eslint-config-prettier';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t...eslintConfigPrettier.rules,\n\t'line-comment-position': 'off',\n\t'no-inline-comments': 'off'\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t{\n\t\trules\n\t}\n];\n\nexport default config;\n"]}
|