This commit is contained in:
Alex 2024-03-04 03:37:23 -05:00
parent 9ea078f414
commit 4c67de9f72
9 changed files with 526 additions and 490 deletions

16
dist/package.json vendored
View File

@ -1,6 +1,6 @@
{ {
"name": "@aet/eslint-rules", "name": "@aet/eslint-rules",
"version": "0.0.14", "version": "0.0.15",
"license": "UNLICENSED", "license": "UNLICENSED",
"peerDependencies": { "peerDependencies": {
"eslint": "^8.53.0", "eslint": "^8.53.0",
@ -8,11 +8,11 @@
}, },
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.4.0", "@eslint-community/eslint-utils": "^4.4.0",
"@types/eslint": "^8.56.3", "@types/eslint": "^8.56.5",
"@typescript-eslint/eslint-plugin": "^7.0.2", "@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.0.2", "@typescript-eslint/parser": "^7.1.0",
"@typescript-eslint/type-utils": "^7.0.2", "@typescript-eslint/type-utils": "^7.1.0",
"@typescript-eslint/utils": "^7.0.2", "@typescript-eslint/utils": "^7.1.0",
"aria-query": "^5.3.0", "aria-query": "^5.3.0",
"axe-core": "^4.8.4", "axe-core": "^4.8.4",
"axobject-query": "^4.0.0", "axobject-query": "^4.0.0",
@ -20,11 +20,11 @@
"debug": "^4.3.4", "debug": "^4.3.4",
"doctrine": "^3.0.0", "doctrine": "^3.0.0",
"emoji-regex": "^10.3.0", "emoji-regex": "^10.3.0",
"enhanced-resolve": "^5.15.0", "enhanced-resolve": "^5.15.1",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^1.24.1", "eslint-define-config": "^1.24.1",
"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.1",
"eslint-plugin-es-x": "^7.5.0", "eslint-plugin-es-x": "^7.5.0",
"eslint-plugin-jsdoc": "^48.2.0", "eslint-plugin-jsdoc": "^48.2.0",
"eslint-plugin-unicorn": "^51.0.1", "eslint-plugin-unicorn": "^51.0.1",

View File

@ -6,21 +6,21 @@
}, },
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@babel/core": "^7.23.9", "@babel/core": "^7.24.0",
"@babel/plugin-transform-flow-strip-types": "^7.23.3", "@babel/plugin-transform-flow-strip-types": "^7.23.3",
"@babel/preset-env": "^7.23.9", "@babel/preset-env": "^7.24.0",
"@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.3", "@types/eslint": "^8.56.5",
"@types/estree": "^1.0.5", "@types/estree": "^1.0.5",
"@types/estree-jsx": "^1.0.5", "@types/estree-jsx": "^1.0.5",
"@types/lodash": "^4.14.202", "@types/lodash": "^4.14.202",
"@types/node": "^20.11.20", "@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "7.0.2", "@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/type-utils": "^7.0.2", "@typescript-eslint/type-utils": "^7.1.0",
"@typescript-eslint/types": "^7.0.2", "@typescript-eslint/types": "^7.1.0",
"@typescript-eslint/typescript-estree": "^7.0.2", "@typescript-eslint/typescript-estree": "^7.1.0",
"@typescript-eslint/utils": "^7.0.2", "@typescript-eslint/utils": "^7.1.0",
"babel-plugin-macros": "^3.1.0", "babel-plugin-macros": "^3.1.0",
"dts-bundle-generator": "^9.3.1", "dts-bundle-generator": "^9.3.1",
"esbin": "0.0.4", "esbin": "0.0.4",

View File

@ -1,5 +1,5 @@
diff --git a/package.json b/package.json diff --git a/package.json b/package.json
index 6a9b044..7a2a4bd 100644 index 5ba4025..9328e80 100644
--- a/package.json --- a/package.json
+++ b/package.json +++ b/package.json
@@ -62,8 +62,7 @@ @@ -62,8 +62,7 @@

View File

@ -26,7 +26,7 @@ index 883c03b7..0111d616 100644
} }
diff --git a/.eslintrc b/.eslintrc diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644 deleted file mode 100644
index 3c9c658f..00000000 index ddf7bc56..00000000
--- a/.eslintrc --- a/.eslintrc
+++ /dev/null +++ /dev/null
@@ -1,248 +0,0 @@ @@ -1,248 +0,0 @@
@ -241,10 +241,10 @@ index 3c9c658f..00000000
- "exports": "always-multiline", - "exports": "always-multiline",
- "functions": "never" - "functions": "never"
- }], - }],
- "prefer-destructuring": "warn", - "prefer-destructuring": "off",
- "prefer-object-spread": "off", - "prefer-object-spread": "off",
- "prefer-rest-params": "off", - "prefer-rest-params": "off",
- "prefer-spread": "warn", - "prefer-spread": "off",
- "prefer-template": "off", - "prefer-template": "off",
- } - }
- }, - },

View File

@ -27,36 +27,6 @@ index 6497d22..4cc5f27 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

View File

@ -237,7 +237,7 @@ index 64bbc8d5..b5e9c803 100644
const isCreateElement = require('../util/isCreateElement'); const isCreateElement = require('../util/isCreateElement');
const report = require('../util/report'); const report = require('../util/report');
diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js
index 2e77f289..cff14d45 100644 index ec913e1f..d4ec6688 100644
--- a/lib/rules/no-unknown-property.js --- a/lib/rules/no-unknown-property.js
+++ b/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js
@@ -541,7 +541,7 @@ module.exports = { @@ -541,7 +541,7 @@ module.exports = {

935
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -183,6 +183,12 @@ export function extendConfig({
'@typescript-eslint/consistent-type-imports': off, '@typescript-eslint/consistent-type-imports': off,
}, },
}, },
{
files: ['repl.ts'],
rules: {
'no-console': off,
},
},
...(overrides ?? []), ...(overrides ?? []),
], ],
rules: { rules: {

View File

@ -4,6 +4,7 @@ import { EslintRules } from 'eslint-define-config/src/rules/eslint';
export const eslintRules: Partial<EslintRules> = { export const eslintRules: Partial<EslintRules> = {
'arrow-body-style': [error, 'as-needed'], 'arrow-body-style': [error, 'as-needed'],
'class-methods-use-this': off, 'class-methods-use-this': off,
'func-style': [error, 'declaration', { allowArrowFunctions: true }],
'no-async-promise-executor': off, 'no-async-promise-executor': off,
'no-case-declarations': off, 'no-case-declarations': off,
'no-console': warn, 'no-console': warn,