eslint-config-gorgon 3.0.2 → 3.0.3
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/dist/index.js +1 -1
- package/package.json +1 -3
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import C from"eslint-plugin-perfectionist";var n=[C.configs["recommended-natural"],{rules:{curly:["warn","multi-or-nest"],"no-console":"warn","no-unused-vars":"warn","perfectionist/sort-enums":"warn"}}];import S from"eslint-plugin-jsx-a11y";var s=[S.flatConfigs.recommended];import b from"eslint-config-prettier";import T from"eslint-plugin-prettier/recommended";var a=[T,b];import
|
|
1
|
+
import C from"eslint-plugin-perfectionist";var n=[C.configs["recommended-natural"],{rules:{curly:["warn","multi-or-nest"],"no-console":"warn","no-unused-vars":"warn","perfectionist/sort-enums":"warn"}}];import S from"eslint-plugin-jsx-a11y";var s=[S.flatConfigs.recommended];import b from"eslint-config-prettier";import T from"eslint-plugin-prettier/recommended";var a=[T,b];import l from"eslint-plugin-react";import j from"eslint-plugin-react-hooks";var P=[l.configs.flat.recommended,j.configs["recommended-latest"],{...l.configs.flat["jsx-runtime"],files:["**/*.ts","**/*.tsx","**/*.jsx","**/*.js"],settings:{react:{version:"detect"}}}],p=P;import k from"eslint-plugin-tailwindcss";var c=[...k.configs["flat/recommended"]];import I from"typescript-eslint";var f=[...I.configs.recommended,{rules:{"@typescript-eslint/array-type":["error",{default:"array-simple"}],"@typescript-eslint/ban-ts-comment":["error",{"ts-check":!1,"ts-expect-error":"allow-with-description","ts-ignore":!1,"ts-nocheck":!1}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/consistent-type-imports":["warn",{fixStyle:"separate-type-imports",prefer:"type-imports"}],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-non-null-assertion":"warn","@typescript-eslint/no-unused-vars":["error",{argsIgnorePattern:"^_",caughtErrorsIgnorePattern:"^_",varsIgnorePattern:"^_"}],"@typescript-eslint/prefer-as-const":"error"}}];import m from"fs";import R from"path";var L=()=>{let t=R.join(process.cwd(),"package.json");if(m.existsSync(t)){let e=JSON.parse(m.readFileSync(t,"utf-8")),r=e.dependencies||{},o=e.devDependencies||{};return"react"in r||"react"in o}return!1},d=L;import E from"fs";import F from"path";var H=()=>["tailwind.config.js","tailwind.config.cjs","tailwind.config.mjs","tailwind.config.ts","tailwind.config.mts"].some(r=>E.existsSync(F.join(process.cwd(),r))),u=H;import v from"fs";import _ from"path";var J=_.join(process.cwd(),"tsconfig.json"),A=()=>v.existsSync(J),y=A;var g=d(),x=u(),h=y();var w=[...n],i=(t,e)=>t===void 0?e:t,D=t=>{let e=w;if(i(t?.react,g)&&e.push(...p),i(t?.a11y,!0)&&e.push(...s),i(t?.tailwind,x)&&e.push(...c),i(t?.prettier,!0)&&e.push(...a),i(t?.typescript,h)){let r=["**/node_modules/**","dist/**","output/**"];e=[...w,...f].map(o=>({...o,files:["**/*.ts","**/*.tsx",...o?.files?.flat(1/0)??[]],ignores:[...r,...t?.ignores??[]]}))}return e},St=D();export{St as default,D as init};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-gorgon",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,11 +17,9 @@
|
|
|
17
17
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
18
18
|
"eslint-plugin-perfectionist": "^3.3.0",
|
|
19
19
|
"eslint-plugin-prettier": "^5.2.1",
|
|
20
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
21
20
|
"eslint-plugin-react": "^7.37.4",
|
|
22
21
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
23
22
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
24
|
-
"eslint-plugin-unicorn": "^59.0.1",
|
|
25
23
|
"fast-glob": "^3.3.2",
|
|
26
24
|
"ignore": "^5.3.2",
|
|
27
25
|
"prettier": "^3.3.3",
|