Compare commits

...

2 Commits

Author SHA1 Message Date
Alex
9ea078f414 Bump 2024-02-26 03:29:42 -05:00
Alex
ba2671d760 New patch 2024-02-03 20:22:42 -05:00
7 changed files with 623 additions and 599 deletions

18
dist/index.d.ts vendored
View File

@ -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 { 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.
* Additional bundled plugins include:
*
* 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)
* 3. [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-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)
* 1. [`react`](https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules)
* (automatically enables
* [`react-hooks`](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks))
* 2. [`react-refresh`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
* 3. [`jsx-a11y`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-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:
* 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;

22
dist/package.json vendored
View File

@ -1,6 +1,6 @@
{
"name": "@aet/eslint-rules",
"version": "0.0.12",
"version": "0.0.14",
"license": "UNLICENSED",
"peerDependencies": {
"eslint": "^8.53.0",
@ -8,13 +8,13 @@
},
"dependencies": {
"@eslint-community/eslint-utils": "^4.4.0",
"@types/eslint": "^8.56.2",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@typescript-eslint/type-utils": "^6.18.1",
"@typescript-eslint/utils": "^6.18.1",
"@types/eslint": "^8.56.3",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/type-utils": "^7.0.2",
"@typescript-eslint/utils": "^7.0.2",
"aria-query": "^5.3.0",
"axe-core": "^4.8.3",
"axe-core": "^4.8.4",
"axobject-query": "^4.0.0",
"damerau-levenshtein": "1.0.8",
"debug": "^4.3.4",
@ -26,19 +26,19 @@
"eslint-import-resolver-node": "^0.3.9",
"eslint-module-utils": "^2.8.0",
"eslint-plugin-es-x": "^7.5.0",
"eslint-plugin-jsdoc": "^48.0.2",
"eslint-plugin-unicorn": "^50.0.1",
"eslint-plugin-jsdoc": "^48.2.0",
"eslint-plugin-unicorn": "^51.0.1",
"estraverse": "^5.3.0",
"fast-glob": "^3.3.2",
"get-tsconfig": "^4.7.2",
"ignore": "^5.3.0",
"ignore": "^5.3.1",
"is-builtin-module": "^3.2.1",
"is-glob": "^4.0.3",
"language-tags": "^1.0.9",
"lodash": "^4.17.21",
"minimatch": "^9.0.3",
"resolve": "^2.0.0-next.5",
"semver": "^7.5.4",
"semver": "^7.6.0",
"tsconfig-paths": "^4.2.0"
},
"overrides": {

View File

@ -1,32 +1,32 @@
{
"name": "@aet/eslint-configs",
"scripts": {
"build": "./scripts/build.sh",
"build": "./scripts/build.ts",
"check-import": "./scripts/check-imports.ts"
},
"private": true,
"devDependencies": {
"@babel/core": "^7.23.7",
"@babel/core": "^7.23.9",
"@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__core": "^7.20.5",
"@types/eslint": "^8.56.2",
"@types/eslint": "^8.56.3",
"@types/estree": "^1.0.5",
"@types/estree-jsx": "^1.0.3",
"@types/estree-jsx": "^1.0.5",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.0",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/type-utils": "^6.18.1",
"@typescript-eslint/types": "^6.18.1",
"@typescript-eslint/typescript-estree": "^6.18.1",
"@typescript-eslint/utils": "^6.18.1",
"@types/node": "^20.11.20",
"@typescript-eslint/eslint-plugin": "7.0.2",
"@typescript-eslint/type-utils": "^7.0.2",
"@typescript-eslint/types": "^7.0.2",
"@typescript-eslint/typescript-estree": "^7.0.2",
"@typescript-eslint/utils": "^7.0.2",
"babel-plugin-macros": "^3.1.0",
"dts-bundle-generator": "^9.2.4",
"dts-bundle-generator": "^9.3.1",
"esbin": "0.0.4",
"esbuild": "0.19.11",
"esbuild": "0.20.1",
"esbuild-plugin-alias": "^0.2.1",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^1.24.1",
"fast-glob": "^3.3.2",
@ -36,7 +36,7 @@
"minimatch": "^9.0.3",
"patch-package": "^8.0.0",
"picocolors": "^1.0.0",
"prettier": "^3.2.1",
"prettier": "^3.2.5",
"prop-types": "^15.8.1",
"typescript": "^5.3.3"
},

View File

@ -1,5 +1,5 @@
diff --git a/package.json b/package.json
index 00e5f73..2fa025f 100644
index 6a9b044..7a2a4bd 100644
--- a/package.json
+++ b/package.json
@@ -62,8 +62,7 @@

View File

@ -1,5 +1,5 @@
diff --git a/lib/index.js b/lib/index.js
index def1bbf..6fdff14 100644
index 6497d22..4cc5f27 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,9 +1,9 @@
@ -27,6 +27,36 @@ index def1bbf..6fdff14 100644
},
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
deleted file mode 100644
index e69de29..0000000

1090
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -91,18 +91,20 @@ export function defineCustomRule<Options extends readonly unknown[]>(
* By default, it includes `["@typescript-eslint", "import", "prettier"]` configs.
* Additional bundled plugins include:
*
* 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)
* 3. [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-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)
* 1. [`react`](https://github.com/jsx-eslint/eslint-plugin-react#list-of-supported-rules)
* (automatically enables
* [`react-hooks`](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks))
* 2. [`react-refresh`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh)
* 3. [`jsx-a11y`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#supported-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:
* 1. [graphql](https://the-guild.dev/graphql/eslint/rules)
* 1. [`graphql`](https://the-guild.dev/graphql/eslint/rules)
*/
export function extendConfig({
plugins,
plugins = [],
settings,
rules,
extends: _extends,
@ -110,11 +112,11 @@ export function extendConfig({
customRules,
...rest
}: Config = {}): ESLintConfig {
const hasReact = plugins?.includes('react');
const hasReactRefresh = plugins?.includes('react-refresh');
const hasUnicorn = plugins?.includes('unicorn');
const hasJsDoc = plugins?.includes('jsdoc');
const hasGraphQL = plugins?.includes('@graphql-eslint');
const hasReact = plugins.includes('react');
const hasReactRefresh = plugins.includes('react-refresh');
const hasUnicorn = plugins.includes('unicorn');
const hasJsDoc = plugins.includes('jsdoc');
const hasGraphQL = plugins.includes('@graphql-eslint');
const hasNext = ensureArray(_extends).some(name => name.includes(':@next/next'));
const ruleDir = false; // ?? findCacheDirectory({ name: '_eslint-rules' });