Update
This commit is contained in:
5
dist/package.json
vendored
5
dist/package.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@aet/eslint-rules",
|
"name": "@aet/eslint-rules",
|
||||||
"version": "0.0.10-beta.2",
|
"version": "0.0.10-beta.5",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
@ -16,6 +16,7 @@
|
|||||||
"aria-query": "^5.3.0",
|
"aria-query": "^5.3.0",
|
||||||
"axe-core": "4.8.3",
|
"axe-core": "4.8.3",
|
||||||
"axobject-query": "^4.0.0",
|
"axobject-query": "^4.0.0",
|
||||||
|
"common-path-prefix": "^3.0.0",
|
||||||
"damerau-levenshtein": "1.0.8",
|
"damerau-levenshtein": "1.0.8",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"doctrine": "^3.0.0",
|
"doctrine": "^3.0.0",
|
||||||
@ -26,8 +27,8 @@
|
|||||||
"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-unicorn": "^49.0.0",
|
|
||||||
"eslint-plugin-jsdoc": "^46.9.1",
|
"eslint-plugin-jsdoc": "^46.9.1",
|
||||||
|
"eslint-plugin-unicorn": "^50.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",
|
||||||
|
10
esbuild.ts
10
esbuild.ts
@ -84,6 +84,14 @@ const map = new HandlerMap()
|
|||||||
'array.prototype.tosorted',
|
'array.prototype.tosorted',
|
||||||
proto(t => t.identifier('toSorted')),
|
proto(t => t.identifier('toSorted')),
|
||||||
)
|
)
|
||||||
|
.set(
|
||||||
|
'array.prototype.toreversed',
|
||||||
|
proto(t => t.identifier('toReversed')),
|
||||||
|
)
|
||||||
|
.set(
|
||||||
|
'array.prototype.findlast',
|
||||||
|
proto(t => t.identifier('findLast')),
|
||||||
|
)
|
||||||
.set(
|
.set(
|
||||||
'string.prototype.matchall',
|
'string.prototype.matchall',
|
||||||
proto(t => t.identifier('matchAll')),
|
proto(t => t.identifier('matchAll')),
|
||||||
@ -263,8 +271,8 @@ async function main(
|
|||||||
define: {},
|
define: {},
|
||||||
alias: {
|
alias: {
|
||||||
// esm modules
|
// esm modules
|
||||||
'find-cache-dir': require.resolve('find-cache-dir'),
|
|
||||||
},
|
},
|
||||||
|
external: ['find-cache-dir'],
|
||||||
banner: {
|
banner: {
|
||||||
js: '/* eslint-disable */',
|
js: '/* eslint-disable */',
|
||||||
},
|
},
|
||||||
|
@ -185,7 +185,7 @@ index c13a00cf..fb457e63 100644
|
|||||||
const docsUrl = require('../util/docsUrl');
|
const docsUrl = require('../util/docsUrl');
|
||||||
const pragmaUtil = require('../util/pragma');
|
const pragmaUtil = require('../util/pragma');
|
||||||
diff --git a/lib/rules/jsx-no-bind.js b/lib/rules/jsx-no-bind.js
|
diff --git a/lib/rules/jsx-no-bind.js b/lib/rules/jsx-no-bind.js
|
||||||
index 0a4c38e6..75a57bd9 100644
|
index 17e56e2e..cb6dec1a 100644
|
||||||
--- a/lib/rules/jsx-no-bind.js
|
--- a/lib/rules/jsx-no-bind.js
|
||||||
+++ b/lib/rules/jsx-no-bind.js
|
+++ b/lib/rules/jsx-no-bind.js
|
||||||
@@ -7,7 +7,7 @@
|
@@ -7,7 +7,7 @@
|
||||||
|
@ -4,7 +4,7 @@ import fs from 'node:fs';
|
|||||||
import type { Rule } from 'eslint';
|
import type { Rule } from 'eslint';
|
||||||
import type { ESLintUtils } from '@typescript-eslint/utils';
|
import type { ESLintUtils } from '@typescript-eslint/utils';
|
||||||
import type { ESLintConfig, Rules } from 'eslint-define-config';
|
import type { ESLintConfig, Rules } from 'eslint-define-config';
|
||||||
import findCacheDirectory from 'find-cache-dir';
|
// import findCacheDirectory from 'find-cache-dir';
|
||||||
import { typescriptRules } from './presets/typescript';
|
import { typescriptRules } from './presets/typescript';
|
||||||
import { unicornRules } from './presets/unicorn';
|
import { unicornRules } from './presets/unicorn';
|
||||||
import { eslintRules } from './presets/eslint';
|
import { eslintRules } from './presets/eslint';
|
||||||
@ -117,7 +117,7 @@ export function extendConfig({
|
|||||||
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' });
|
||||||
if (ruleDir) {
|
if (ruleDir) {
|
||||||
fs.rmSync(ruleDir, { recursive: true, force: true });
|
fs.rmSync(ruleDir, { recursive: true, force: true });
|
||||||
fs.mkdirSync(ruleDir, { recursive: true });
|
fs.mkdirSync(ruleDir, { recursive: true });
|
||||||
|
Reference in New Issue
Block a user