Update
This commit is contained in:
parent
511652dd48
commit
a1ab2ad7f5
35
dist/package.json
vendored
35
dist/package.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@aet/eslint-rules",
|
"name": "@aet/eslint-rules",
|
||||||
"version": "2.0.1-beta.11",
|
"version": "2.0.4",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -9,40 +9,39 @@
|
|||||||
},
|
},
|
||||||
"main": "./config/index.js",
|
"main": "./config/index.js",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^9.12.0",
|
"eslint": "^9.14.0",
|
||||||
"typescript": "^5.4.4"
|
"typescript": "^5.6.3"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@tanstack/eslint-plugin-query": "^5.52.0"
|
"@tanstack/eslint-plugin-query": "^5.59.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antfu/install-pkg": "^0.4.1",
|
"@antfu/install-pkg": "^0.4.1",
|
||||||
"@nolyfill/is-core-module": "^1.0.39",
|
"@nolyfill/is-core-module": "^1.0.39",
|
||||||
"@aet/eslint-define-config": "^0.1.0-beta.29",
|
"@aet/eslint-define-config": "^0.1.0-beta.32",
|
||||||
"@eslint/js": "^9.13.0",
|
"@eslint/js": "^9.14.0",
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.1",
|
||||||
"@types/eslint": "^9.6.1",
|
"@types/eslint": "^9.6.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.10.0",
|
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
||||||
"@typescript-eslint/parser": "^8.10.0",
|
"@typescript-eslint/parser": "^8.12.2",
|
||||||
"@eslint-react/eslint-plugin": "1.15.0",
|
"@eslint-react/eslint-plugin": "1.15.2",
|
||||||
"@stylistic/eslint-plugin": "^2.9.0",
|
"@stylistic/eslint-plugin": "^2.10.1",
|
||||||
"@typescript-eslint/type-utils": "^8.10.0",
|
"@typescript-eslint/type-utils": "^8.12.2",
|
||||||
"@typescript-eslint/utils": "^8.10.0",
|
"@typescript-eslint/utils": "^8.12.2",
|
||||||
"aria-query": "^5.3.2",
|
"aria-query": "^5.3.2",
|
||||||
"axe-core": "^4.10.1",
|
"axe-core": "^4.10.2",
|
||||||
"axobject-query": "4.1.0",
|
"axobject-query": "4.1.0",
|
||||||
"damerau-levenshtein": "1.0.8",
|
"damerau-levenshtein": "1.0.8",
|
||||||
"debug": "^4.3.7",
|
"debug": "^4.3.7",
|
||||||
"doctrine": "^3.0.0",
|
"doctrine": "^3.0.0",
|
||||||
"emoji-regex": "^10.4.0",
|
"emoji-regex": "^10.4.0",
|
||||||
"enhanced-resolve": "^5.17.1",
|
"enhanced-resolve": "^5.17.1",
|
||||||
"typescript-eslint": "^8.10.0",
|
"typescript-eslint": "^8.12.2",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-import-resolver-node": "^0.3.9",
|
"eslint-import-resolver-node": "^0.3.9",
|
||||||
"eslint-import-resolver-typescript": "^3.6.3",
|
"eslint-import-resolver-typescript": "^3.6.3",
|
||||||
"eslint-module-utils": "^2.12.0",
|
"eslint-module-utils": "^2.12.0",
|
||||||
"eslint-plugin-es-x": "^8.0.0",
|
"eslint-plugin-import-x": "^4.4.0",
|
||||||
"eslint-plugin-import-x": "^4.3.1",
|
|
||||||
"eslint-plugin-unicorn": "^56.0.0",
|
"eslint-plugin-unicorn": "^56.0.0",
|
||||||
"esprima": "^4.0.1",
|
"esprima": "^4.0.1",
|
||||||
"esquery": "^1.6.0",
|
"esquery": "^1.6.0",
|
||||||
@ -72,4 +71,4 @@
|
|||||||
"**/is-core-module": "file:./overrides/is-core-module",
|
"**/is-core-module": "file:./overrides/is-core-module",
|
||||||
"**/supports-preserve-symlinks-flag": "file:./overrides/supports-preserve-symlinks-flag"
|
"**/supports-preserve-symlinks-flag": "file:./overrides/supports-preserve-symlinks-flag"
|
||||||
}
|
}
|
||||||
}
|
}
|
37
package.json
37
package.json
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@aet/eslint-configs",
|
"name": "@aet/eslint-configs",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./scripts/build.ts",
|
"build": "./scripts/build.ts",
|
||||||
"check-import": "./scripts/check-imports.ts",
|
"check-import": "./scripts/check-imports.ts",
|
||||||
@ -9,15 +10,15 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aet/eslint-define-config": "^0.1.0-beta.29",
|
"@aet/eslint-define-config": "^0.1.0-beta.32",
|
||||||
"@antfu/install-pkg": "^0.4.1",
|
"@antfu/install-pkg": "^0.4.1",
|
||||||
"@babel/core": "^7.25.8",
|
"@babel/core": "^7.26.0",
|
||||||
"@babel/plugin-transform-flow-strip-types": "^7.25.7",
|
"@babel/plugin-transform-flow-strip-types": "^7.25.9",
|
||||||
"@babel/preset-env": "^7.25.8",
|
"@babel/preset-env": "^7.26.0",
|
||||||
"@eslint-react/eslint-plugin": "^1.15.0",
|
"@eslint-react/eslint-plugin": "^1.15.2",
|
||||||
"@eslint/js": "^9.13.0",
|
"@eslint/js": "^9.14.0",
|
||||||
"@graphql-eslint/eslint-plugin": "^3.20.1",
|
"@graphql-eslint/eslint-plugin": "^3.20.1",
|
||||||
"@stylistic/eslint-plugin": "^2.9.0",
|
"@stylistic/eslint-plugin": "^2.10.1",
|
||||||
"@swc-node/register": "^1.10.9",
|
"@swc-node/register": "^1.10.9",
|
||||||
"@tanstack/eslint-plugin-query": "^5.59.7",
|
"@tanstack/eslint-plugin-query": "^5.59.7",
|
||||||
"@types/babel-plugin-macros": "^3.1.3",
|
"@types/babel-plugin-macros": "^3.1.3",
|
||||||
@ -31,14 +32,14 @@
|
|||||||
"@types/estree": "^1.0.6",
|
"@types/estree": "^1.0.6",
|
||||||
"@types/estree-jsx": "^1.0.5",
|
"@types/estree-jsx": "^1.0.5",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/node": "^22.7.7",
|
"@types/node": "^22.8.6",
|
||||||
"@types/react-refresh": "^0.14.6",
|
"@types/react-refresh": "^0.14.6",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.10.0",
|
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
||||||
"@typescript-eslint/parser": "^8.10.0",
|
"@typescript-eslint/parser": "^8.12.2",
|
||||||
"@typescript-eslint/type-utils": "^8.10.0",
|
"@typescript-eslint/type-utils": "^8.12.2",
|
||||||
"@typescript-eslint/types": "^8.10.0",
|
"@typescript-eslint/types": "^8.12.2",
|
||||||
"@typescript-eslint/typescript-estree": "^8.10.0",
|
"@typescript-eslint/typescript-estree": "^8.12.2",
|
||||||
"@typescript-eslint/utils": "^8.10.0",
|
"@typescript-eslint/utils": "^8.12.2",
|
||||||
"babel-plugin-macros": "^3.1.0",
|
"babel-plugin-macros": "^3.1.0",
|
||||||
"dts-bundle-generator": "9.5.1",
|
"dts-bundle-generator": "9.5.1",
|
||||||
"esbuild": "0.24.0",
|
"esbuild": "0.24.0",
|
||||||
@ -46,9 +47,9 @@
|
|||||||
"eslint": "9.13.0",
|
"eslint": "9.13.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-import-resolver-typescript": "^3.6.3",
|
"eslint-import-resolver-typescript": "^3.6.3",
|
||||||
"eslint-plugin-import-x": "^4.3.1",
|
"eslint-plugin-import-x": "^4.4.0",
|
||||||
"eslint-plugin-jsdoc": "^50.4.3",
|
"eslint-plugin-jsdoc": "^50.4.3",
|
||||||
"eslint-plugin-react-refresh": "^0.4.12",
|
"eslint-plugin-react-refresh": "^0.4.14",
|
||||||
"eslint-plugin-storybook": "canary",
|
"eslint-plugin-storybook": "canary",
|
||||||
"eslint-plugin-testing-library": "^6.4.0",
|
"eslint-plugin-testing-library": "^6.4.0",
|
||||||
"eslint-plugin-unicorn": "^56.0.0",
|
"eslint-plugin-unicorn": "^56.0.0",
|
||||||
@ -61,7 +62,7 @@
|
|||||||
"graphql": "^16.9.0",
|
"graphql": "^16.9.0",
|
||||||
"json-schema-to-ts": "^3.1.1",
|
"json-schema-to-ts": "^3.1.1",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"nolyfill": "^1.0.41",
|
"nolyfill": "^1.0.42",
|
||||||
"patch-package": "^8.0.0",
|
"patch-package": "^8.0.0",
|
||||||
"picocolors": "^1.1.1",
|
"picocolors": "^1.1.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
@ -69,7 +70,7 @@
|
|||||||
"terser": "^5.36.0",
|
"terser": "^5.36.0",
|
||||||
"type-fest": "^4.26.1",
|
"type-fest": "^4.26.1",
|
||||||
"typescript": "^5.6.3",
|
"typescript": "^5.6.3",
|
||||||
"typescript-eslint": "^8.10.0"
|
"typescript-eslint": "^8.12.2"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"arrowParens": "avoid",
|
"arrowParens": "avoid",
|
||||||
|
1832
pnpm-lock.yaml
generated
1832
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -6,22 +6,22 @@
|
|||||||
"subject": "[meta] add `repository.directory` field"
|
"subject": "[meta] add `repository.directory` field"
|
||||||
},
|
},
|
||||||
"eslint-import-resolver-typescript": {
|
"eslint-import-resolver-typescript": {
|
||||||
"hash": "5ee5879b4428f42edbc262d66e192c76202b7f47",
|
"hash": "42e7cc3eb413dda56683c1b2b2483e4756e0bd62",
|
||||||
"date": "2024-10-01T03:12:28+00:00",
|
"date": "2024-11-01T01:52:08+00:00",
|
||||||
"committer": "GitHub",
|
"committer": "GitHub",
|
||||||
"subject": "fix(deps): update dependency debug to ^4.3.7 (#316)"
|
"subject": "chore(deps): update dependency @types/node to ^18.19.63 (#320)"
|
||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
"hash": "cb6788c56d7108f2faa102d041dfa37dbc0e9f59",
|
"hash": "743168b1ba15196ec7001c7c1f368f5efbe78f0d",
|
||||||
"date": "2024-10-18T16:13:23+10:00",
|
"date": "2024-10-23T13:27:41+10:00",
|
||||||
"committer": "Jordan Harband",
|
"committer": "Jordan Harband",
|
||||||
"subject": "[Docs] Use consistent spelling of 'screen reader'"
|
"subject": "[New] `label-has-associated-control`: allow `labelComponents` to contain globs"
|
||||||
},
|
},
|
||||||
"eslint-plugin-n": {
|
"eslint-plugin-n": {
|
||||||
"hash": "bf34ca53864e059e3fbf632f33429ba10a75ee9b",
|
"hash": "d39d99aecf2e8f0dde59b980f209d1c377af9a46",
|
||||||
"date": "2024-10-19T14:26:54+02:00",
|
"date": "2024-11-02T00:28:49+01:00",
|
||||||
"committer": "GitHub",
|
"committer": "GitHub",
|
||||||
"subject": "fix: update dependencies (#365)"
|
"subject": "feat(no-unsupported): support Node 20.18.0 (#374)"
|
||||||
},
|
},
|
||||||
"eslint-plugin-react": {
|
"eslint-plugin-react": {
|
||||||
"hash": "983b88dd3cb5e07919517d3fde4085f60883ded7",
|
"hash": "983b88dd3cb5e07919517d3fde4085f60883ded7",
|
||||||
|
@ -53,7 +53,7 @@ export async function extendConfig(
|
|||||||
stylistic,
|
stylistic,
|
||||||
{
|
{
|
||||||
name: 'eslint-rules/typescript-and-import-x',
|
name: 'eslint-rules/typescript-and-import-x',
|
||||||
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
|
files: ['**/*.{js,mjs,cjs,jsx,ts,tsx,mts,cts}'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: tsParser,
|
parser: tsParser,
|
||||||
|
@ -26,6 +26,14 @@ export async function react() {
|
|||||||
files: ['*.tsx'],
|
files: ['*.tsx'],
|
||||||
rules: reactRules,
|
rules: reactRules,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'eslint-rules/react/test-files',
|
||||||
|
files: ['*.test.tsx'],
|
||||||
|
rules: {
|
||||||
|
'@eslint-react/no-clone-element': off,
|
||||||
|
'@eslint-react/no-create-ref': off,
|
||||||
|
},
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,8 +8,7 @@ const stylisticRules: Partial<StylisticRulesObject> = {
|
|||||||
'stylistic/spaced-comment': [
|
'stylistic/spaced-comment': [
|
||||||
error,
|
error,
|
||||||
'always',
|
'always',
|
||||||
// allow /*@__PURE__*/
|
{ block: { exceptions: ['@__PURE__', '#__PURE__'] } },
|
||||||
{ markers: ['/', '#', '@'], block: { exceptions: ['@'] } },
|
|
||||||
],
|
],
|
||||||
'stylistic/jsx-sort-props': [
|
'stylistic/jsx-sort-props': [
|
||||||
error,
|
error,
|
||||||
|
@ -37,10 +37,7 @@ export const typescriptRules: Partial<TypeScriptRulesObject> = {
|
|||||||
warn,
|
warn,
|
||||||
{ accessibility: 'no-public' },
|
{ accessibility: 'no-public' },
|
||||||
],
|
],
|
||||||
'@typescript-eslint/no-empty-object-type': [
|
'@typescript-eslint/no-empty-object-type': off,
|
||||||
error,
|
|
||||||
{ allowInterfaces: 'with-single-extends' },
|
|
||||||
],
|
|
||||||
'@typescript-eslint/no-empty-interface': [error, { allowSingleExtends: true }],
|
'@typescript-eslint/no-empty-interface': [error, { allowSingleExtends: true }],
|
||||||
'@typescript-eslint/no-explicit-any': off,
|
'@typescript-eslint/no-explicit-any': off,
|
||||||
'@typescript-eslint/no-misused-promises': [error, { checksVoidReturn: false }],
|
'@typescript-eslint/no-misused-promises': [error, { checksVoidReturn: false }],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user