Update
This commit is contained in:
parent
3ec7c342ba
commit
4563047e01
5
dist/package.json
vendored
5
dist/package.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@aet/eslint-rules",
|
||||
"version": "0.0.10-beta.2",
|
||||
"version": "0.0.10-beta.5",
|
||||
"license": "UNLICENSED",
|
||||
"peerDependencies": {
|
||||
"eslint": "^8.53.0",
|
||||
@ -16,6 +16,7 @@
|
||||
"aria-query": "^5.3.0",
|
||||
"axe-core": "4.8.3",
|
||||
"axobject-query": "^4.0.0",
|
||||
"common-path-prefix": "^3.0.0",
|
||||
"damerau-levenshtein": "1.0.8",
|
||||
"debug": "^4.3.4",
|
||||
"doctrine": "^3.0.0",
|
||||
@ -26,8 +27,8 @@
|
||||
"eslint-import-resolver-node": "^0.3.9",
|
||||
"eslint-module-utils": "^2.8.0",
|
||||
"eslint-plugin-es-x": "7.5.0",
|
||||
"eslint-plugin-unicorn": "^49.0.0",
|
||||
"eslint-plugin-jsdoc": "^46.9.1",
|
||||
"eslint-plugin-unicorn": "^50.0.1",
|
||||
"estraverse": "^5.3.0",
|
||||
"fast-glob": "^3.3.2",
|
||||
"get-tsconfig": "^4.7.2",
|
||||
|
10
esbuild.ts
10
esbuild.ts
@ -84,6 +84,14 @@ const map = new HandlerMap()
|
||||
'array.prototype.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(
|
||||
'string.prototype.matchall',
|
||||
proto(t => t.identifier('matchAll')),
|
||||
@ -263,8 +271,8 @@ async function main(
|
||||
define: {},
|
||||
alias: {
|
||||
// esm modules
|
||||
'find-cache-dir': require.resolve('find-cache-dir'),
|
||||
},
|
||||
external: ['find-cache-dir'],
|
||||
banner: {
|
||||
js: '/* eslint-disable */',
|
||||
},
|
||||
|
@ -185,7 +185,7 @@ index c13a00cf..fb457e63 100644
|
||||
const docsUrl = require('../util/docsUrl');
|
||||
const pragmaUtil = require('../util/pragma');
|
||||
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
|
||||
+++ b/lib/rules/jsx-no-bind.js
|
||||
@@ -7,7 +7,7 @@
|
||||
|
@ -4,7 +4,7 @@ import fs from 'node:fs';
|
||||
import type { Rule } from 'eslint';
|
||||
import type { ESLintUtils } from '@typescript-eslint/utils';
|
||||
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 { unicornRules } from './presets/unicorn';
|
||||
import { eslintRules } from './presets/eslint';
|
||||
@ -117,7 +117,7 @@ export function extendConfig({
|
||||
const hasGraphQL = plugins?.includes('@graphql-eslint');
|
||||
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) {
|
||||
fs.rmSync(ruleDir, { recursive: true, force: true });
|
||||
fs.mkdirSync(ruleDir, { recursive: true });
|
||||
|
Loading…
x
Reference in New Issue
Block a user