Bump
This commit is contained in:
parent
ba2671d760
commit
9ea078f414
18
dist/index.d.ts
vendored
18
dist/index.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// Generated by dts-bundle-generator v9.2.4
|
// Generated by dts-bundle-generator v9.3.1
|
||||||
|
|
||||||
import { ESLintUtils } from '@typescript-eslint/utils';
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
||||||
import { Rule } from 'eslint';
|
import { Rule } from 'eslint';
|
||||||
@ -59,15 +59,17 @@ export declare function defineCustomRule<Options extends readonly unknown[]>(rul
|
|||||||
* By default, it includes `["@typescript-eslint", "import", "prettier"]` configs.
|
* By default, it includes `["@typescript-eslint", "import", "prettier"]` configs.
|
||||||
* Additional bundled plugins include:
|
* Additional bundled plugins include:
|
||||||
*
|
*
|
||||||
* 1. [react](https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules)
|
* 1. [`react`](https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules)
|
||||||
* 2. [react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
|
* (automatically enables
|
||||||
* 3. [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-rules)
|
* [`react-hooks`](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks))
|
||||||
* 4. [unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn#rules)
|
* 2. [`react-refresh`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
|
||||||
* 5. [n](https://github.com/eslint-community/eslint-plugin-n#-rules) (Node.js specific)
|
* 3. [`jsx-a11y`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-rules)
|
||||||
* 6. [jsdoc](https://github.com/gajus/eslint-plugin-jsdoc#rules)
|
* 4. [`unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn#rules)
|
||||||
|
* 5. [`n`](https://github.com/eslint-community/eslint-plugin-n#-rules) (Node.js specific)
|
||||||
|
* 6. [`jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc#rules)
|
||||||
*
|
*
|
||||||
* Non bundled:
|
* Non bundled:
|
||||||
* 1. [graphql](https://the-guild.dev/graphql/eslint/rules)
|
* 1. [`graphql`](https://the-guild.dev/graphql/eslint/rules)
|
||||||
*/
|
*/
|
||||||
export declare function extendConfig({ plugins, settings, rules, extends: _extends, overrides, customRules, ...rest }?: Config): ESLintConfig;
|
export declare function extendConfig({ plugins, settings, rules, extends: _extends, overrides, customRules, ...rest }?: Config): ESLintConfig;
|
||||||
|
|
||||||
|
22
dist/package.json
vendored
22
dist/package.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@aet/eslint-rules",
|
"name": "@aet/eslint-rules",
|
||||||
"version": "0.0.12",
|
"version": "0.0.14",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
@ -8,13 +8,13 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@types/eslint": "^8.56.2",
|
"@types/eslint": "^8.56.3",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
||||||
"@typescript-eslint/parser": "^6.18.1",
|
"@typescript-eslint/parser": "^7.0.2",
|
||||||
"@typescript-eslint/type-utils": "^6.18.1",
|
"@typescript-eslint/type-utils": "^7.0.2",
|
||||||
"@typescript-eslint/utils": "^6.18.1",
|
"@typescript-eslint/utils": "^7.0.2",
|
||||||
"aria-query": "^5.3.0",
|
"aria-query": "^5.3.0",
|
||||||
"axe-core": "^4.8.3",
|
"axe-core": "^4.8.4",
|
||||||
"axobject-query": "^4.0.0",
|
"axobject-query": "^4.0.0",
|
||||||
"damerau-levenshtein": "1.0.8",
|
"damerau-levenshtein": "1.0.8",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
@ -26,19 +26,19 @@
|
|||||||
"eslint-import-resolver-node": "^0.3.9",
|
"eslint-import-resolver-node": "^0.3.9",
|
||||||
"eslint-module-utils": "^2.8.0",
|
"eslint-module-utils": "^2.8.0",
|
||||||
"eslint-plugin-es-x": "^7.5.0",
|
"eslint-plugin-es-x": "^7.5.0",
|
||||||
"eslint-plugin-jsdoc": "^48.0.2",
|
"eslint-plugin-jsdoc": "^48.2.0",
|
||||||
"eslint-plugin-unicorn": "^50.0.1",
|
"eslint-plugin-unicorn": "^51.0.1",
|
||||||
"estraverse": "^5.3.0",
|
"estraverse": "^5.3.0",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"get-tsconfig": "^4.7.2",
|
"get-tsconfig": "^4.7.2",
|
||||||
"ignore": "^5.3.0",
|
"ignore": "^5.3.1",
|
||||||
"is-builtin-module": "^3.2.1",
|
"is-builtin-module": "^3.2.1",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
"language-tags": "^1.0.9",
|
"language-tags": "^1.0.9",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"minimatch": "^9.0.3",
|
"minimatch": "^9.0.3",
|
||||||
"resolve": "^2.0.0-next.5",
|
"resolve": "^2.0.0-next.5",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.6.0",
|
||||||
"tsconfig-paths": "^4.2.0"
|
"tsconfig-paths": "^4.2.0"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
|
30
package.json
30
package.json
@ -1,32 +1,32 @@
|
|||||||
{
|
{
|
||||||
"name": "@aet/eslint-configs",
|
"name": "@aet/eslint-configs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./scripts/build.sh",
|
"build": "./scripts/build.ts",
|
||||||
"check-import": "./scripts/check-imports.ts"
|
"check-import": "./scripts/check-imports.ts"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.23.7",
|
"@babel/core": "^7.23.9",
|
||||||
"@babel/plugin-transform-flow-strip-types": "^7.23.3",
|
"@babel/plugin-transform-flow-strip-types": "^7.23.3",
|
||||||
"@babel/preset-env": "^7.23.8",
|
"@babel/preset-env": "^7.23.9",
|
||||||
"@types/babel-plugin-macros": "^3.1.3",
|
"@types/babel-plugin-macros": "^3.1.3",
|
||||||
"@types/babel__core": "^7.20.5",
|
"@types/babel__core": "^7.20.5",
|
||||||
"@types/eslint": "^8.56.2",
|
"@types/eslint": "^8.56.3",
|
||||||
"@types/estree": "^1.0.5",
|
"@types/estree": "^1.0.5",
|
||||||
"@types/estree-jsx": "^1.0.3",
|
"@types/estree-jsx": "^1.0.5",
|
||||||
"@types/lodash": "^4.14.202",
|
"@types/lodash": "^4.14.202",
|
||||||
"@types/node": "^20.11.0",
|
"@types/node": "^20.11.20",
|
||||||
"@typescript-eslint/eslint-plugin": "6.18.1",
|
"@typescript-eslint/eslint-plugin": "7.0.2",
|
||||||
"@typescript-eslint/type-utils": "^6.18.1",
|
"@typescript-eslint/type-utils": "^7.0.2",
|
||||||
"@typescript-eslint/types": "^6.18.1",
|
"@typescript-eslint/types": "^7.0.2",
|
||||||
"@typescript-eslint/typescript-estree": "^6.18.1",
|
"@typescript-eslint/typescript-estree": "^7.0.2",
|
||||||
"@typescript-eslint/utils": "^6.18.1",
|
"@typescript-eslint/utils": "^7.0.2",
|
||||||
"babel-plugin-macros": "^3.1.0",
|
"babel-plugin-macros": "^3.1.0",
|
||||||
"dts-bundle-generator": "^9.2.4",
|
"dts-bundle-generator": "^9.3.1",
|
||||||
"esbin": "0.0.4",
|
"esbin": "0.0.4",
|
||||||
"esbuild": "0.19.11",
|
"esbuild": "0.20.1",
|
||||||
"esbuild-plugin-alias": "^0.2.1",
|
"esbuild-plugin-alias": "^0.2.1",
|
||||||
"eslint": "8.56.0",
|
"eslint": "8.57.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-define-config": "^1.24.1",
|
"eslint-define-config": "^1.24.1",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
@ -36,7 +36,7 @@
|
|||||||
"minimatch": "^9.0.3",
|
"minimatch": "^9.0.3",
|
||||||
"patch-package": "^8.0.0",
|
"patch-package": "^8.0.0",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.0",
|
||||||
"prettier": "^3.2.1",
|
"prettier": "^3.2.5",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
diff --git a/lib/index.js b/lib/index.js
|
diff --git a/lib/index.js b/lib/index.js
|
||||||
index 23cd193..368ae41 100644
|
index 6497d22..4cc5f27 100644
|
||||||
--- a/lib/index.js
|
--- a/lib/index.js
|
||||||
+++ b/lib/index.js
|
+++ b/lib/index.js
|
||||||
@@ -1,9 +1,9 @@
|
@@ -1,9 +1,9 @@
|
||||||
@ -16,7 +16,7 @@ index 23cd193..368ae41 100644
|
|||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
"callback-return": require("./rules/callback-return"),
|
"callback-return": require("./rules/callback-return"),
|
||||||
@@ -50,8 +50,8 @@ const rules = {
|
@@ -51,8 +51,8 @@ const rules = {
|
||||||
|
|
||||||
const mod = {
|
const mod = {
|
||||||
meta: {
|
meta: {
|
||||||
@ -27,6 +27,36 @@ index 23cd193..368ae41 100644
|
|||||||
},
|
},
|
||||||
rules,
|
rules,
|
||||||
}
|
}
|
||||||
|
diff --git a/lib/unsupported-features/node-builtins-modules/events.js b/lib/unsupported-features/node-builtins-modules/events.js
|
||||||
|
index c314e8b..0a876f7 100644
|
||||||
|
--- a/lib/unsupported-features/node-builtins-modules/events.js
|
||||||
|
+++ b/lib/unsupported-features/node-builtins-modules/events.js
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
const { READ } = require("@eslint-community/eslint-utils")
|
||||||
|
|
||||||
|
/** @type {import('../types.js').SupportVersionTree} */
|
||||||
|
-const static = {
|
||||||
|
+const _static = {
|
||||||
|
defaultMaxListeners: { [READ]: { supported: ["0.11.2"] } },
|
||||||
|
errorMonitor: { [READ]: { supported: ["13.6.0", "12.17.0"] } },
|
||||||
|
captureRejections: {
|
||||||
|
@@ -43,13 +43,13 @@ const events = {
|
||||||
|
},
|
||||||
|
EventEmitter: {
|
||||||
|
[READ]: { supported: ["0.1.26"] },
|
||||||
|
- ...static,
|
||||||
|
+ ..._static,
|
||||||
|
},
|
||||||
|
EventEmitterAsyncResource: {
|
||||||
|
[READ]: { supported: ["17.4.0", "16.14.0"] },
|
||||||
|
- ...static,
|
||||||
|
+ ..._static,
|
||||||
|
},
|
||||||
|
- ...static,
|
||||||
|
+ ..._static,
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @type {import('../types.js').SupportVersionTree} */
|
||||||
diff --git a/tests/fixtures/no-extraneous/dependencies/node_modules/@bbb/aaa.js b/tests/fixtures/no-extraneous/dependencies/node_modules/@bbb/aaa.js
|
diff --git a/tests/fixtures/no-extraneous/dependencies/node_modules/@bbb/aaa.js b/tests/fixtures/no-extraneous/dependencies/node_modules/@bbb/aaa.js
|
||||||
deleted file mode 100644
|
deleted file mode 100644
|
||||||
index e69de29..0000000
|
index e69de29..0000000
|
||||||
|
1090
pnpm-lock.yaml
generated
1090
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
28
src/index.ts
28
src/index.ts
@ -91,18 +91,20 @@ export function defineCustomRule<Options extends readonly unknown[]>(
|
|||||||
* By default, it includes `["@typescript-eslint", "import", "prettier"]` configs.
|
* By default, it includes `["@typescript-eslint", "import", "prettier"]` configs.
|
||||||
* Additional bundled plugins include:
|
* Additional bundled plugins include:
|
||||||
*
|
*
|
||||||
* 1. [react](https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules)
|
* 1. [`react`](https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules)
|
||||||
* 2. [react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
|
* (automatically enables
|
||||||
* 3. [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-rules)
|
* [`react-hooks`](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks))
|
||||||
* 4. [unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn#rules)
|
* 2. [`react-refresh`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
|
||||||
* 5. [n](https://github.com/eslint-community/eslint-plugin-n#-rules) (Node.js specific)
|
* 3. [`jsx-a11y`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-rules)
|
||||||
* 6. [jsdoc](https://github.com/gajus/eslint-plugin-jsdoc#rules)
|
* 4. [`unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn#rules)
|
||||||
|
* 5. [`n`](https://github.com/eslint-community/eslint-plugin-n#-rules) (Node.js specific)
|
||||||
|
* 6. [`jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc#rules)
|
||||||
*
|
*
|
||||||
* Non bundled:
|
* Non bundled:
|
||||||
* 1. [graphql](https://the-guild.dev/graphql/eslint/rules)
|
* 1. [`graphql`](https://the-guild.dev/graphql/eslint/rules)
|
||||||
*/
|
*/
|
||||||
export function extendConfig({
|
export function extendConfig({
|
||||||
plugins,
|
plugins = [],
|
||||||
settings,
|
settings,
|
||||||
rules,
|
rules,
|
||||||
extends: _extends,
|
extends: _extends,
|
||||||
@ -110,11 +112,11 @@ export function extendConfig({
|
|||||||
customRules,
|
customRules,
|
||||||
...rest
|
...rest
|
||||||
}: Config = {}): ESLintConfig {
|
}: Config = {}): ESLintConfig {
|
||||||
const hasReact = plugins?.includes('react');
|
const hasReact = plugins.includes('react');
|
||||||
const hasReactRefresh = plugins?.includes('react-refresh');
|
const hasReactRefresh = plugins.includes('react-refresh');
|
||||||
const hasUnicorn = plugins?.includes('unicorn');
|
const hasUnicorn = plugins.includes('unicorn');
|
||||||
const hasJsDoc = plugins?.includes('jsdoc');
|
const hasJsDoc = plugins.includes('jsdoc');
|
||||||
const hasGraphQL = plugins?.includes('@graphql-eslint');
|
const hasGraphQL = plugins.includes('@graphql-eslint');
|
||||||
const hasNext = ensureArray(_extends).some(name => name.includes(':@next/next'));
|
const hasNext = ensureArray(_extends).some(name => name.includes(':@next/next'));
|
||||||
|
|
||||||
const ruleDir = false; // ?? findCacheDirectory({ name: '_eslint-rules' });
|
const ruleDir = false; // ?? findCacheDirectory({ name: '_eslint-rules' });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user