@anolilab/eslint-config 28.0.1 → 28.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ const t=["**/*.d.ts","**/*.d.cts","**/*.d.mts"],e=["**/*.ts","**/*.cts","**/*.mts"],r=["**/*.tsx","**/*.mtsx","**/*.ctsx"],n=["**/*.js","**/*.mjs","**/*.cjs"],c=["**/*.jsx","**/*.mjsx","**/*.cjsx"],o=s=>{switch(s){case"all":return[...n,...t,...e,...r,...c];case"astro":return["**/*.astro"];case"astro_ts":return["**/*.astro/*.ts"];case"css":return["**/*.css"];case"e2e":return["**/e2e/**/*.test.{js,ts,jsx,tsx}"];case"graphql":return["**/*.{g,graph}ql"];case"html":return["**/*.erb","**/*.handlebars","**/*.hbs","**/*.htm","**/*.html","**/*.mustache","**/*.nunjucks","**/*.php","**/*.tag","**/*.twig","**/*.we"];case"js":return n;case"js_and_ts":return[...n,...e];case"jsx":return c;case"jsx_and_tsx":return[...c,...r];case"less":return["**/*.less"];case"markdown":return["**/*.{md,mkdn,mdown,markdown}"];case"markdown_in_markdown":return["**/*.{md,mkdn,mdown,markdown}/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"postcss":return["**/postcss.config.js","**/postcssrc.js","**/postcss.config.cjs","**/postcssrc.cjs"];case"scss":return["**/*.scss"];case"storybook":return["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"];case"svg":return["**/*.svg"];case"toml":return["**/*.toml"];case"ts":return[...e,...t,...r];case"types":return t;case"vitest":return["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"xml":return["**/*.xml"];case"yaml":return["**/*.yaml","**/*.yml"];default:throw new Error(`Unknown file type: ${s}`)}},j=(s,a)=>async m=>await a(m,o(s));export{j as createConfig,o as getFilesGlobs};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/eslint-config",
3
- "version": "28.0.1",
3
+ "version": "28.1.0",
4
4
  "description": "ESLint shareable config for the Anolilab JavaScript style guide.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -91,87 +91,88 @@
91
91
  "dist"
92
92
  ],
93
93
  "dependencies": {
94
- "@e18e/eslint-plugin": "0.4.1",
94
+ "@e18e/eslint-plugin": "0.5.1",
95
95
  "@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
96
- "@eslint/compat": "2.0.5",
96
+ "@eslint/compat": "2.1.0",
97
97
  "@eslint/js": "10.0.1",
98
- "@eslint/markdown": "8.0.2",
99
- "@html-eslint/eslint-plugin": "0.60.0",
100
- "@html-eslint/parser": "0.60.0",
98
+ "@eslint/markdown": "8.0.3",
99
+ "@html-eslint/eslint-plugin": "0.64.0",
100
+ "@html-eslint/parser": "0.64.0",
101
101
  "@stylistic/eslint-plugin": "5.10.0",
102
102
  "@stylistic/eslint-plugin-ts": "^4.4.1",
103
- "@typescript-eslint/parser": "8.59.1",
104
- "@typescript-eslint/types": "8.59.1",
105
- "@visulima/fs": "4.1.0",
106
- "@visulima/package": "^4.1.7",
107
- "@visulima/tsconfig": "^2.1.3",
108
- "@vitest/eslint-plugin": "1.6.19",
103
+ "@typescript-eslint/parser": "8.65.0",
104
+ "@typescript-eslint/types": "8.65.0",
105
+ "@visulima/fs": "5.0.5",
106
+ "@visulima/package": "^5.0.5",
107
+ "@visulima/tsconfig": "^3.2.0",
108
+ "@vitest/eslint-plugin": "1.6.23",
109
109
  "confusing-browser-globals": "^1.0.11",
110
110
  "eslint-config-flat-gitignore": "2.3.0",
111
+ "eslint-config-prettier": "10.1.8",
111
112
  "eslint-flat-config-utils": "3.2.0",
112
- "eslint-import-resolver-node": "0.3.10",
113
- "eslint-import-resolver-typescript": "^4.4.4",
113
+ "eslint-import-resolver-node": "0.4.0",
114
+ "eslint-import-resolver-typescript": "^4.4.5",
114
115
  "eslint-merge-processors": "^2.0.0",
115
- "eslint-plugin-antfu": "3.2.2",
116
+ "eslint-plugin-antfu": "3.2.3",
116
117
  "eslint-plugin-compat": "7.0.2",
117
- "eslint-plugin-erasable-syntax-only": "0.4.1",
118
- "eslint-plugin-es-x": "9.6.0",
118
+ "eslint-plugin-erasable-syntax-only": "0.4.2",
119
+ "eslint-plugin-es-x": "10.0.0",
119
120
  "eslint-plugin-html": "8.1.4",
120
- "eslint-plugin-import-x": "4.16.2",
121
- "eslint-plugin-jsdoc": "62.9.0",
122
- "eslint-plugin-jsonc": "3.1.2",
123
- "eslint-plugin-n": "17.24.0",
121
+ "eslint-plugin-import-x": "4.17.1",
122
+ "eslint-plugin-jsdoc": "63.2.0",
123
+ "eslint-plugin-jsonc": "3.3.0",
124
+ "eslint-plugin-n": "18.2.2",
124
125
  "eslint-plugin-no-for-of-array": "^0.1.0",
125
126
  "eslint-plugin-no-only-tests": "3.4.0",
126
127
  "eslint-plugin-no-secrets": "2.3.3",
127
128
  "eslint-plugin-no-unsanitized": "4.1.5",
128
- "eslint-plugin-perfectionist": "5.9.0",
129
- "eslint-plugin-pnpm": "1.6.0",
129
+ "eslint-plugin-perfectionist": "5.10.0",
130
+ "eslint-plugin-pnpm": "1.6.1",
130
131
  "eslint-plugin-promise": "7.3.0",
131
- "eslint-plugin-regexp": "3.1.0",
132
- "eslint-plugin-security": "4.0.0",
133
- "eslint-plugin-simple-import-sort": "13.0.0",
134
- "eslint-plugin-sonarjs": "4.0.3",
135
- "eslint-plugin-toml": "1.3.1",
136
- "eslint-plugin-unicorn": "64.0.0",
132
+ "eslint-plugin-regexp": "3.1.1",
133
+ "eslint-plugin-security": "4.0.1",
134
+ "eslint-plugin-simple-import-sort": "14.0.0",
135
+ "eslint-plugin-sonarjs": "4.2.0",
136
+ "eslint-plugin-toml": "1.4.0",
137
+ "eslint-plugin-unicorn": "72.0.0",
137
138
  "eslint-plugin-unused-imports": "4.4.1",
138
- "eslint-plugin-yml": "3.3.2",
139
- "globals": "17.6.0",
139
+ "eslint-plugin-yml": "3.6.0",
140
+ "globals": "17.7.0",
140
141
  "jsonc-eslint-parser": "3.1.0",
141
142
  "parse-gitignore": "^2.0.0",
142
- "semver": "7.7.4",
143
+ "semver": "7.8.5",
143
144
  "toml-eslint-parser": "1.0.3",
144
- "typescript-eslint": "8.59.4",
145
- "yaml-eslint-parser": "2.0.0"
145
+ "typescript-eslint": "8.65.0",
146
+ "yaml-eslint-parser": "2.1.0"
146
147
  },
147
148
  "peerDependencies": {
148
- "@eslint-react/eslint-plugin": "5.7.10",
149
- "@eslint/css": "1.2.0",
149
+ "@eslint-react/eslint-plugin": "5.17.3",
150
+ "@eslint/css": "1.4.0",
150
151
  "@ospm/eslint-plugin-react-unhookify": "^1.0.2",
151
- "@tanstack/eslint-plugin-query": "5.100.14",
152
- "@tanstack/eslint-plugin-router": "1.161.6",
153
- "@unocss/eslint-plugin": "66.6.8",
154
- "astro-eslint-parser": "1.4.0",
152
+ "@tanstack/eslint-plugin-query": "5.101.2",
153
+ "@tanstack/eslint-plugin-router": "1.162.0",
154
+ "@unocss/eslint-plugin": "66.7.5",
155
+ "astro-eslint-parser": "3.0.0",
155
156
  "eslint": ">=9.39.4",
156
- "eslint-plugin-astro": "1.7.0",
157
- "eslint-plugin-format": ">=1.5.0",
157
+ "eslint-plugin-astro": "3.0.1",
158
+ "eslint-plugin-format": ">=2.0.1",
158
159
  "eslint-plugin-jsx-a11y": "^6.10.2",
159
- "eslint-plugin-oxlint": "1.62.0",
160
+ "eslint-plugin-oxlint": "1.73.0",
160
161
  "eslint-plugin-playwright": "^0.16.0 || ^0.18.0 || ^2.0.0",
161
162
  "eslint-plugin-react": "^7.37.5",
162
163
  "eslint-plugin-react-compiler": "^19.1.0-rc.2",
163
164
  "eslint-plugin-react-hooks": "7.1.1",
164
165
  "eslint-plugin-react-perf": "^3.3.3",
165
- "eslint-plugin-react-refresh": "0.5.2",
166
+ "eslint-plugin-react-refresh": "0.5.3",
166
167
  "eslint-plugin-react-you-might-not-need-an-effect": "1.0.1",
167
- "eslint-plugin-storybook": "10.3.6",
168
- "eslint-plugin-tailwindcss": "3.18.3",
168
+ "eslint-plugin-storybook": "10.5.3",
169
+ "eslint-plugin-tailwindcss": "4.2.0",
169
170
  "eslint-plugin-testing-library": "7.16.2",
170
171
  "eslint-plugin-tsdoc": "0.5.2",
171
172
  "eslint-plugin-validate-jsx-nesting": "^0.1.1",
172
173
  "eslint-plugin-you-dont-need-lodash-underscore": "^6.14.0",
173
- "eslint-plugin-zod": "3.12.0",
174
- "tailwind-csstree": "0.3.2"
174
+ "eslint-plugin-zod": "4.8.0",
175
+ "tailwind-csstree": "0.3.3"
175
176
  },
176
177
  "peerDependenciesMeta": {
177
178
  "@eslint-react/eslint-plugin": {
@@ -1 +0,0 @@
1
- var u=Object.defineProperty;var o=(s,t)=>u(s,"name",{value:t,configurable:!0});var d=Object.defineProperty,m=o((s,t)=>d(s,"name",{value:t,configurable:!0}),"e");const e=["**/*.d.ts","**/*.d.cts","**/*.d.mts"],r=["**/*.ts","**/*.cts","**/*.mts"],n=["**/*.tsx","**/*.mtsx","**/*.ctsx"],a=["**/*.js","**/*.mjs","**/*.cjs"],c=["**/*.jsx","**/*.mjsx","**/*.cjsx"],l=m(s=>{switch(s){case"all":return[...a,...e,...r,...n,...c];case"astro":return["**/*.astro"];case"astro_ts":return["**/*.astro/*.ts"];case"css":return["**/*.css"];case"e2e":return["**/e2e/**/*.test.{js,ts,jsx,tsx}"];case"graphql":return["**/*.{g,graph}ql"];case"html":return["**/*.erb","**/*.handlebars","**/*.hbs","**/*.htm","**/*.html","**/*.mustache","**/*.nunjucks","**/*.php","**/*.tag","**/*.twig","**/*.we"];case"js":return a;case"js_and_ts":return[...a,...r];case"jsx":return c;case"jsx_and_tsx":return[...c,...n];case"less":return["**/*.less"];case"markdown":return["**/*.{md,mkdn,mdown,markdown}"];case"markdown_in_markdown":return["**/*.{md,mkdn,mdown,markdown}/*.{md,mkdn,mdown,markdown}"];case"markdown_inline_js_jsx":return["**/*.{md,mkdn,mdown,markdown}/*.{js,javascript,jsx,node,json}"];case"postcss":return["**/postcss.config.js","**/postcssrc.js","**/postcss.config.cjs","**/postcssrc.cjs"];case"scss":return["**/*.scss"];case"storybook":return["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"];case"svg":return["**/*.svg"];case"toml":return["**/*.toml"];case"ts":return[...r,...e,...n];case"types":return e;case"vitest":return["**/__tests__/**/*.?(c|m)[jt]s?(x)","**/?(*.){test,spec}.?(c|m)[jt]s?(x)"];case"xml":return["**/*.xml"];case"yaml":return["**/*.yaml","**/*.yml"];default:throw new Error(`Unknown file type: ${s}`)}},"getFilesGlobs"),w=m((s,t)=>async j=>await t(j,l(s)),"createConfig");export{w as createConfig,l as getFilesGlobs};