@aristobyte-ui/eslint-config 1.0.112 → 2.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aristobyte-ui/eslint-config",
3
3
  "description": "AristoByteUI ESLint configuration presets for TypeScript, React, and Next.js packages. Provides base, React, and Next.js rules optimized for monorepo workflows, Prettier integration, and developer productivity.",
4
- "version": "1.0.112",
4
+ "version": "2.1.0",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -1,18 +0,0 @@
1
- import js from "@eslint/js";
2
- import eslintConfigPrettier from "eslint-config-prettier";
3
- import turboPlugin from "eslint-plugin-turbo";
4
- import tseslint from "typescript-eslint";
5
- import onlyWarn from "eslint-plugin-only-warn";
6
- export const config = [
7
- js.configs.recommended,
8
- eslintConfigPrettier,
9
- ...tseslint.configs.recommended,
10
- {
11
- plugins: { turbo: turboPlugin },
12
- rules: {
13
- "turbo/no-undeclared-env-vars": "warn",
14
- },
15
- },
16
- { plugins: { onlyWarn } },
17
- { ignores: ["dist/**"] },
18
- ];
@@ -1,46 +0,0 @@
1
- import js from "@eslint/js";
2
- import eslintConfigPrettier from "eslint-config-prettier";
3
- import tseslint from "typescript-eslint";
4
- import pluginReact from "eslint-plugin-react";
5
- import pluginReactHooks from "eslint-plugin-react-hooks";
6
- import pluginNext from "@next/eslint-plugin-next";
7
- import globals from "globals";
8
- import { config as baseConfig } from "./eslint.base.js";
9
- export const nextJsConfig = [
10
- ...baseConfig,
11
- js.configs.recommended,
12
- eslintConfigPrettier,
13
- ...tseslint.configs.recommended,
14
- {
15
- ...pluginReact.configs.flat.recommended,
16
- languageOptions: {
17
- ...pluginReact.configs.flat.recommended.languageOptions,
18
- globals: {
19
- ...globals.serviceworker,
20
- },
21
- },
22
- },
23
- {
24
- plugins: {
25
- "@next/next": pluginNext,
26
- },
27
- rules: {
28
- ...pluginNext.configs.recommended.rules,
29
- ...pluginNext.configs["core-web-vitals"].rules,
30
- },
31
- },
32
- {
33
- plugins: {
34
- "react-hooks": pluginReactHooks,
35
- },
36
- settings: { react: { version: "detect" } },
37
- rules: {
38
- ...pluginReactHooks.configs.recommended.rules,
39
- "react/react-in-jsx-scope": "off",
40
- "@typescript-eslint/no-unused-vars": [
41
- "warn",
42
- { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
43
- ],
44
- },
45
- },
46
- ];
@@ -1,33 +0,0 @@
1
- import js from "@eslint/js";
2
- import eslintConfigPrettier from "eslint-config-prettier";
3
- import tseslint from "typescript-eslint";
4
- import pluginReact from "eslint-plugin-react";
5
- import pluginReactHooks from "eslint-plugin-react-hooks";
6
- import globals from "globals";
7
- import { config as baseConfig } from "./eslint.base.js";
8
- export const config = [
9
- ...baseConfig,
10
- js.configs.recommended,
11
- eslintConfigPrettier,
12
- ...tseslint.configs.recommended,
13
- pluginReact.configs.flat.recommended,
14
- {
15
- languageOptions: {
16
- ...pluginReact.configs.flat.recommended.languageOptions,
17
- globals: {
18
- ...globals.serviceworker,
19
- ...globals.browser,
20
- },
21
- },
22
- },
23
- {
24
- plugins: {
25
- "react-hooks": pluginReactHooks,
26
- },
27
- settings: { react: { version: "detect" } },
28
- rules: {
29
- ...pluginReactHooks.configs.recommended.rules,
30
- "react/react-in-jsx-scope": "off",
31
- },
32
- },
33
- ];