Skip to content

Commit

Permalink
fix: update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangwy committed Sep 6, 2024
1 parent 0668694 commit c04ab9e
Show file tree
Hide file tree
Showing 40 changed files with 29,862 additions and 11,507 deletions.
90 changes: 51 additions & 39 deletions dist/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
var package_default = {
name: "@jiangweiye/eslint-config",
type: "module",
version: "0.1.8-beta.1",
version: "0.1.8-beta.2",
description: "A eslint config for jiangweiye",
author: "jiangweiye <[email protected]> (https://github.com/jwyGithub)",
license: "SEE LICENSE IN LICENSE.md",
Expand Down Expand Up @@ -95,17 +95,17 @@ var package_default = {
"@eslint-react/eslint-plugin": "^1.5.8",
"@prettier/plugin-xml": "^3.4.1",
"@unocss/eslint-plugin": ">=0.50.0",
"astro-eslint-parser": "^0.16.3",
eslint: ">=8.40.0",
"eslint-plugin-astro": "^0.31.4",
"astro-eslint-parser": "^1.0.2",
eslint: "^9.5.0",
"eslint-plugin-astro": "^1.2.0",
"eslint-plugin-format": ">=0.1.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"eslint-plugin-solid": "^0.13.2",
"eslint-plugin-solid": "^0.14.3",
"eslint-plugin-svelte": ">=2.35.1",
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-slidev": "^1.0.5",
"svelte-eslint-parser": "^0.33.1"
"svelte-eslint-parser": ">=0.37.0"
},
peerDependenciesMeta: {
"@eslint-react/eslint-plugin": {
Expand Down Expand Up @@ -150,78 +150,85 @@ var package_default = {
},
dependencies: {
"@clack/prompts": "^0.7.0",
"@jiangweiye/install-pkg": "^0.0.1",
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@jiangweiye/install-pkg": "^0.0.2",
"@stylistic/eslint-plugin": "^2.6.4",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"eslint-config-flat-gitignore": "^0.1.8",
"@vitest/eslint-plugin": "^1.1.0",
"eslint-config-flat-gitignore": "^0.3.0",
"eslint-flat-config-utils": "^0.3.1",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-command": "^0.2.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import-x": "^3.1.0",
"eslint-plugin-import-x": "^4.2.1",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-perfectionist": "^3.2.0",
"eslint-plugin-perfectionist": "^3.4.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-toml": "^0.11.1",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^4.1.3",
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-vue": "^9.27.0",
"eslint-plugin-vue": "^9.28.0",
"eslint-plugin-yml": "^1.14.0",
"eslint-processor-vue-blocks": "^0.1.2",
globals: "^15.9.0",
"jsonc-eslint-parser": "^2.4.0",
"local-pkg": "^0.5.0",
"parse-gitignore": "^2.0.0",
picocolors: "^1.0.1",
picocolors: "^1.1.0",
"toml-eslint-parser": "^0.10.0",
"vue-eslint-parser": "^9.4.3",
"yaml-eslint-parser": "^1.2.3",
yargs: "^17.7.2"
},
devDependencies: {
"@eslint-react/eslint-plugin": "^1.12.0",
"@eslint-react/eslint-plugin": "^1.13.0",
"@eslint/config-inspector": "^0.5.4",
"@jiangweiye/eslint-config": "workspace:*",
"@jiangweiye/prettier-config": "^0.0.14",
"@jiangweiye/prettier-config": "^0.0.16",
"@prettier/plugin-xml": "^3.4.1",
"@stylistic/eslint-plugin-migrate": "^2.6.4",
"@types/eslint": "^9.6.0",
"@stylistic/eslint-plugin-migrate": "^2.7.2",
"@types/eslint": "^9.6.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.5.0",
"@types/node": "^22.5.4",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.33",
"@unocss/eslint-plugin": "^0.62.2",
"@unocss/eslint-plugin": "^0.62.3",
"astro-eslint-parser": "^1.0.2",
bumpp: "^9.5.1",
"bundle-require": "^5.0.0",
eslint: "^8.56.0",
bumpp: "^9.5.2",
eslint: "^9.9.1",
"eslint-plugin-astro": "^1.2.3",
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.10",
"eslint-plugin-solid": "^0.14.2",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-solid": "^0.14.3",
"eslint-plugin-svelte": "^2.43.0",
"eslint-typegen": "^0.3.1",
esno: "^4.7.0",
execa: "^9.3.1",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
jiti: "^1.21.6",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-slidev": "^1.0.5",
rimraf: "^6.0.1",
svelte: "^4.2.18",
"simple-git-hooks": "^2.11.1",
svelte: "^4.2.19",
"svelte-eslint-parser": "^0.41.0",
tsup: "^8.2.4",
tsx: "^4.17.0",
tsx: "^4.19.0",
typescript: "^5.5.4",
vitest: "^2.0.5",
vue: "^3.4.38"
vue: "^3.5.2"
},
resolutions: {
"@eslint-community/eslint-utils": "^4.4.0",
"@typescript-eslint/utils": "^8.4.0",
eslint: "^9.9.1",
tsx: "^4.19.0"
}
};

Expand All @@ -243,16 +250,16 @@ var vscodeSettingsString = `
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],
// Enable eslint for all supported languages
Expand All @@ -271,7 +278,12 @@ var vscodeSettingsString = `
"xml",
"gql",
"graphql",
"astro"
"astro",
"css",
"less",
"scss",
"pcss",
"postcss"
]
`;
var frameworkOptions = [
Expand Down
90 changes: 51 additions & 39 deletions dist/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import c from "picocolors";
var package_default = {
name: "@jiangweiye/eslint-config",
type: "module",
version: "0.1.8-beta.1",
version: "0.1.8-beta.2",
description: "A eslint config for jiangweiye",
author: "jiangweiye <[email protected]> (https://github.com/jwyGithub)",
license: "SEE LICENSE IN LICENSE.md",
Expand Down Expand Up @@ -66,17 +66,17 @@ var package_default = {
"@eslint-react/eslint-plugin": "^1.5.8",
"@prettier/plugin-xml": "^3.4.1",
"@unocss/eslint-plugin": ">=0.50.0",
"astro-eslint-parser": "^0.16.3",
eslint: ">=8.40.0",
"eslint-plugin-astro": "^0.31.4",
"astro-eslint-parser": "^1.0.2",
eslint: "^9.5.0",
"eslint-plugin-astro": "^1.2.0",
"eslint-plugin-format": ">=0.1.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"eslint-plugin-solid": "^0.13.2",
"eslint-plugin-solid": "^0.14.3",
"eslint-plugin-svelte": ">=2.35.1",
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-slidev": "^1.0.5",
"svelte-eslint-parser": "^0.33.1"
"svelte-eslint-parser": ">=0.37.0"
},
peerDependenciesMeta: {
"@eslint-react/eslint-plugin": {
Expand Down Expand Up @@ -121,78 +121,85 @@ var package_default = {
},
dependencies: {
"@clack/prompts": "^0.7.0",
"@jiangweiye/install-pkg": "^0.0.1",
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@jiangweiye/install-pkg": "^0.0.2",
"@stylistic/eslint-plugin": "^2.6.4",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"eslint-config-flat-gitignore": "^0.1.8",
"@vitest/eslint-plugin": "^1.1.0",
"eslint-config-flat-gitignore": "^0.3.0",
"eslint-flat-config-utils": "^0.3.1",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-command": "^0.2.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import-x": "^3.1.0",
"eslint-plugin-import-x": "^4.2.1",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-perfectionist": "^3.2.0",
"eslint-plugin-perfectionist": "^3.4.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-toml": "^0.11.1",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^4.1.3",
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-vue": "^9.27.0",
"eslint-plugin-vue": "^9.28.0",
"eslint-plugin-yml": "^1.14.0",
"eslint-processor-vue-blocks": "^0.1.2",
globals: "^15.9.0",
"jsonc-eslint-parser": "^2.4.0",
"local-pkg": "^0.5.0",
"parse-gitignore": "^2.0.0",
picocolors: "^1.0.1",
picocolors: "^1.1.0",
"toml-eslint-parser": "^0.10.0",
"vue-eslint-parser": "^9.4.3",
"yaml-eslint-parser": "^1.2.3",
yargs: "^17.7.2"
},
devDependencies: {
"@eslint-react/eslint-plugin": "^1.12.0",
"@eslint-react/eslint-plugin": "^1.13.0",
"@eslint/config-inspector": "^0.5.4",
"@jiangweiye/eslint-config": "workspace:*",
"@jiangweiye/prettier-config": "^0.0.14",
"@jiangweiye/prettier-config": "^0.0.16",
"@prettier/plugin-xml": "^3.4.1",
"@stylistic/eslint-plugin-migrate": "^2.6.4",
"@types/eslint": "^9.6.0",
"@stylistic/eslint-plugin-migrate": "^2.7.2",
"@types/eslint": "^9.6.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.5.0",
"@types/node": "^22.5.4",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.33",
"@unocss/eslint-plugin": "^0.62.2",
"@unocss/eslint-plugin": "^0.62.3",
"astro-eslint-parser": "^1.0.2",
bumpp: "^9.5.1",
"bundle-require": "^5.0.0",
eslint: "^8.56.0",
bumpp: "^9.5.2",
eslint: "^9.9.1",
"eslint-plugin-astro": "^1.2.3",
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.10",
"eslint-plugin-solid": "^0.14.2",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-solid": "^0.14.3",
"eslint-plugin-svelte": "^2.43.0",
"eslint-typegen": "^0.3.1",
esno: "^4.7.0",
execa: "^9.3.1",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
jiti: "^1.21.6",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-slidev": "^1.0.5",
rimraf: "^6.0.1",
svelte: "^4.2.18",
"simple-git-hooks": "^2.11.1",
svelte: "^4.2.19",
"svelte-eslint-parser": "^0.41.0",
tsup: "^8.2.4",
tsx: "^4.17.0",
tsx: "^4.19.0",
typescript: "^5.5.4",
vitest: "^2.0.5",
vue: "^3.4.38"
vue: "^3.5.2"
},
resolutions: {
"@eslint-community/eslint-utils": "^4.4.0",
"@typescript-eslint/utils": "^8.4.0",
eslint: "^9.9.1",
tsx: "^4.19.0"
}
};

Expand All @@ -214,16 +221,16 @@ var vscodeSettingsString = `
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],
// Enable eslint for all supported languages
Expand All @@ -242,7 +249,12 @@ var vscodeSettingsString = `
"xml",
"gql",
"graphql",
"astro"
"astro",
"css",
"less",
"scss",
"pcss",
"postcss"
]
`;
var frameworkOptions = [
Expand Down
Loading

0 comments on commit c04ab9e

Please sign in to comment.