@jimmy.codes/eslint-config 5.5.0 → 5.6.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.
package/README.md CHANGED
@@ -99,6 +99,40 @@ export default defineConfig({
99
99
 
100
100
  ---
101
101
 
102
+ ## Plugins Used
103
+
104
+ This config includes the following plugins:
105
+
106
+ | Plugin | Purpose |
107
+ | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
108
+ | [`@eslint-community/eslint-plugin-eslint-comments`](https://eslint-community.github.io/eslint-plugin-eslint-comments) | ESLint directive comments |
109
+ | [`@eslint-react/eslint-plugin`](https://eslint-react.xyz/) | Modern React linting |
110
+ | [`@eslint/js`](https://eslint.org/docs/latest/rules/) | Core ESLint rules |
111
+ | [`@next/eslint-plugin-next`](https://nextjs.org/docs/basic-features/eslint) | Next.js best practices |
112
+ | [`@stylistic/eslint-plugin`](https://eslint.style/) | Consistent formatting |
113
+ | [`@tanstack/eslint-plugin-query`](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query) | TanStack Query rules |
114
+ | [`@vitest/eslint-plugin`](https://github.com/vitest-dev/eslint-plugin-vitest) | Vitest support |
115
+ | [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) | Disable formatting conflicts |
116
+ | [`eslint-plugin-astro`](https://ota-meshi.github.io/eslint-plugin-astro/) | Astro framework support |
117
+ | [`eslint-plugin-import-x`](https://github.com/un-ts/eslint-plugin-import-x) | Import order and hygiene |
118
+ | [`eslint-plugin-jest`](https://github.com/jest-community/eslint-plugin-jest) | Jest support |
119
+ | [`eslint-plugin-jest-dom`](https://github.com/testing-library/eslint-plugin-jest-dom) | DOM assertions for tests |
120
+ | [`eslint-plugin-jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc) | JSDoc comment rules |
121
+ | [`eslint-plugin-jsx-a11y`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) | Accessibility in JSX |
122
+ | [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n) | Node.js-specific rules |
123
+ | [`eslint-plugin-perfectionist`](https://github.com/azat-io/eslint-plugin-perfectionist) | Sorting and consistency |
124
+ | [`eslint-plugin-playwright`](https://github.com/playwright-community/eslint-plugin-playwright) | Playwright testing support |
125
+ | [`eslint-plugin-react-compiler`](https://www.npmjs.com/package/eslint-plugin-react-compiler) | React Compiler rules |
126
+ | [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks) | Enforce React Hooks rules |
127
+ | [`eslint-plugin-react-refresh`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | Safe Fast Refresh boundaries |
128
+ | [`eslint-plugin-regexp`](https://ota-meshi.github.io/eslint-plugin-regexp/) | RegExp best practices |
129
+ | [`eslint-plugin-storybook`](https://github.com/storybookjs/eslint-plugin-storybook) | Storybook support |
130
+ | [`eslint-plugin-testing-library`](https://github.com/testing-library/eslint-plugin-testing-library) | Testing Library rules |
131
+ | [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn) | Modern JavaScript best practices |
132
+ | [`typescript-eslint`](https://typescript-eslint.io/) | TypeScript linting and type safety |
133
+
134
+ ---
135
+
102
136
  ## Contributing
103
137
 
104
138
  PRs and issues welcome.
@@ -1,5 +1,5 @@
1
- // src/utils/warnings-as-errors.ts
2
- var warningAsErrors = (rules = {}) => {
1
+ // src/utils/upwarn.ts
2
+ var upwarn = (rules = {}) => {
3
3
  return Object.fromEntries(
4
4
  Object.entries(rules).map(([rule, option]) => {
5
5
  return [rule, option === "warn" ? "error" : option];
@@ -8,5 +8,5 @@ var warningAsErrors = (rules = {}) => {
8
8
  };
9
9
 
10
10
  export {
11
- warningAsErrors
11
+ upwarn
12
12
  };