@ethang/eslint-config 22.17.2 → 22.17.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/README.md +2 -2
- package/config.tailwind.js +1 -1
- package/config.tailwind.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
* 16 rules from **Storybook**
|
|
42
42
|
* `import storybookConfig from "@ethang/eslint-config/config.storybook.js";`
|
|
43
43
|
* 16 rules from [eslint-plugin-storybook](https://github.com/storybookjs/eslint-plugin-storybook)
|
|
44
|
-
*
|
|
44
|
+
* 6 rules for **Tailwind**
|
|
45
45
|
* import tailwindConfig from "@ethang/eslint-config/config.tailwind.js";
|
|
46
|
-
*
|
|
46
|
+
* 6 rules from [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss)
|
|
47
47
|
|
|
48
48
|
# Install
|
|
49
49
|
|
package/config.tailwind.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r,b as i}from"./chunk-WK3YS7OG.js";import a from"eslint-plugin-tailwindcss";import n from"typescript-eslint";var
|
|
1
|
+
import{a as r,b as i}from"./chunk-WK3YS7OG.js";import a from"eslint-plugin-tailwindcss";import n from"typescript-eslint";var e=n.config({files:["**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts}"],ignores:r,languageOptions:i,plugins:{tailwind:a},rules:{"tailwind/classnames-order":"error","tailwind/enforces-negative-arbitrary-values":"error","tailwind/enforces-shorthand":"error","tailwind/migration-from-tailwind-2":"error","tailwind/no-arbitrary-value":"off","tailwind/no-contradicting-classname":"error","tailwind/no-custom-classname":"off","tailwind/no-unnecessary-arbitrary-value":"error"}});export{e as default};
|
|
2
2
|
//# sourceMappingURL=config.tailwind.js.map
|
package/config.tailwind.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/config.tailwind.js"],"sourcesContent":["// @ts-nocheck\nimport { ignores, languageOptions } from \"./constants.js\";\nimport tailwind from \"eslint-plugin-tailwindcss\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n {\n files: [\"**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts}\"],\nignores,\nlanguageOptions,\n plugins: {\n \"tailwind\": tailwind,\n },\n rules: {\n \"tailwind/classnames-order\":\"error\",\"tailwind/enforces-negative-arbitrary-values\":\"error\",\"tailwind/enforces-shorthand\":\"error\",\"tailwind/migration-from-tailwind-2\":\"error\",\"tailwind/no-arbitrary-value\":\"
|
|
1
|
+
{"version":3,"sources":["../src/config.tailwind.js"],"sourcesContent":["// @ts-nocheck\nimport { ignores, languageOptions } from \"./constants.js\";\nimport tailwind from \"eslint-plugin-tailwindcss\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n {\n files: [\"**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts}\"],\nignores,\nlanguageOptions,\n plugins: {\n \"tailwind\": tailwind,\n },\n rules: {\n \"tailwind/classnames-order\":\"error\",\"tailwind/enforces-negative-arbitrary-values\":\"error\",\"tailwind/enforces-shorthand\":\"error\",\"tailwind/migration-from-tailwind-2\":\"error\",\"tailwind/no-arbitrary-value\":\"off\",\"tailwind/no-contradicting-classname\":\"error\",\"tailwind/no-custom-classname\":\"off\",\"tailwind/no-unnecessary-arbitrary-value\":\"error\"\n },\n },\n \n \n );\n"],"mappings":"+CAEA,OAAOA,MAAc,4BACrB,OAAOC,MAAc,oBAErB,IAAOC,EAAQD,EAAS,OACpB,CACA,MAAO,CAAC,sCAAsC,EAClD,QAAAE,EACA,gBAAAC,EACI,QAAS,CACP,SAAYJ,CACd,EACA,MAAO,CACL,4BAA4B,QAAQ,8CAA8C,QAAQ,8BAA8B,QAAQ,qCAAqC,QAAQ,8BAA8B,MAAM,sCAAsC,QAAQ,+BAA+B,MAAM,0CAA0C,OAChV,CACF,CAGA","names":["tailwind","tseslint","config_tailwind_default","ignores","languageOptions"]}
|
package/package.json
CHANGED