@szum-tech/eslint-config 2.1.13 → 2.1.15
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.cjs +2 -26
- package/dist/index.js +2 -25
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ var playwrightPlugin = require('eslint-plugin-playwright');
|
|
|
8
8
|
var reactPlugin = require('eslint-plugin-react');
|
|
9
9
|
var reactHooksPlugin = require('eslint-plugin-react-hooks');
|
|
10
10
|
var storybookPlugin = require('eslint-plugin-storybook');
|
|
11
|
-
|
|
11
|
+
require('eslint-plugin-tailwindcss');
|
|
12
12
|
var testingLibraryPlugin = require('eslint-plugin-testing-library');
|
|
13
13
|
var globals = require('globals');
|
|
14
14
|
var tsEslint = require('typescript-eslint');
|
|
@@ -41,7 +41,6 @@ var playwrightPlugin__default = /*#__PURE__*/_interopDefault(playwrightPlugin);
|
|
|
41
41
|
var reactPlugin__default = /*#__PURE__*/_interopDefault(reactPlugin);
|
|
42
42
|
var reactHooksPlugin__namespace = /*#__PURE__*/_interopNamespace(reactHooksPlugin);
|
|
43
43
|
var storybookPlugin__default = /*#__PURE__*/_interopDefault(storybookPlugin);
|
|
44
|
-
var tailwindcssPlugin__default = /*#__PURE__*/_interopDefault(tailwindcssPlugin);
|
|
45
44
|
var testingLibraryPlugin__default = /*#__PURE__*/_interopDefault(testingLibraryPlugin);
|
|
46
45
|
var globals__default = /*#__PURE__*/_interopDefault(globals);
|
|
47
46
|
var tsEslint__default = /*#__PURE__*/_interopDefault(tsEslint);
|
|
@@ -81,7 +80,6 @@ function findPackageJson(startDir) {
|
|
|
81
80
|
return null;
|
|
82
81
|
}
|
|
83
82
|
var hasTypeScript = isPackageInstalled("typescript");
|
|
84
|
-
var hasTailwindcss = isPackageInstalled("tailwindcss");
|
|
85
83
|
var hasReact = isPackageInstalled("react");
|
|
86
84
|
var hasNext = isPackageInstalled("next");
|
|
87
85
|
var hasTestingLibrary = isPackageInstalled("@testing-library/dom");
|
|
@@ -260,29 +258,7 @@ var config = [
|
|
|
260
258
|
"react-hooks/exhaustive-deps": WARN
|
|
261
259
|
}
|
|
262
260
|
} : null,
|
|
263
|
-
|
|
264
|
-
name: "eslint/config/tailwindcss",
|
|
265
|
-
plugins: {
|
|
266
|
-
tailwindcss: tailwindcssPlugin__default.default
|
|
267
|
-
},
|
|
268
|
-
languageOptions: {
|
|
269
|
-
parserOptions: {
|
|
270
|
-
ecmaFeatures: {
|
|
271
|
-
jsx: true
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
rules: {
|
|
276
|
-
"tailwindcss/no-contradicting-classname": ERROR,
|
|
277
|
-
"tailwindcss/classnames-order": WARN,
|
|
278
|
-
"tailwindcss/enforces-negative-arbitrary-values": WARN,
|
|
279
|
-
"tailwindcss/enforces-shorthand": WARN,
|
|
280
|
-
"tailwindcss/migration-from-tailwind-2": WARN,
|
|
281
|
-
"tailwindcss/no-custom-classname": WARN,
|
|
282
|
-
"tailwindcss/no-unnecessary-arbitrary-value": WARN,
|
|
283
|
-
"tailwindcss/no-arbitrary-value": OFF
|
|
284
|
-
}
|
|
285
|
-
} : null,
|
|
261
|
+
null,
|
|
286
262
|
hasNext ? {
|
|
287
263
|
name: "eslint/config/next",
|
|
288
264
|
files: ["**/*.ts?(x)", "**/*.js?(x)"],
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import playwrightPlugin from 'eslint-plugin-playwright';
|
|
|
6
6
|
import reactPlugin from 'eslint-plugin-react';
|
|
7
7
|
import * as reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
8
8
|
import storybookPlugin from 'eslint-plugin-storybook';
|
|
9
|
-
import
|
|
9
|
+
import 'eslint-plugin-tailwindcss';
|
|
10
10
|
import testingLibraryPlugin from 'eslint-plugin-testing-library';
|
|
11
11
|
import globals from 'globals';
|
|
12
12
|
import tsEslint from 'typescript-eslint';
|
|
@@ -46,7 +46,6 @@ function findPackageJson(startDir) {
|
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
48
|
var hasTypeScript = isPackageInstalled("typescript");
|
|
49
|
-
var hasTailwindcss = isPackageInstalled("tailwindcss");
|
|
50
49
|
var hasReact = isPackageInstalled("react");
|
|
51
50
|
var hasNext = isPackageInstalled("next");
|
|
52
51
|
var hasTestingLibrary = isPackageInstalled("@testing-library/dom");
|
|
@@ -225,29 +224,7 @@ var config = [
|
|
|
225
224
|
"react-hooks/exhaustive-deps": WARN
|
|
226
225
|
}
|
|
227
226
|
} : null,
|
|
228
|
-
|
|
229
|
-
name: "eslint/config/tailwindcss",
|
|
230
|
-
plugins: {
|
|
231
|
-
tailwindcss: tailwindcssPlugin
|
|
232
|
-
},
|
|
233
|
-
languageOptions: {
|
|
234
|
-
parserOptions: {
|
|
235
|
-
ecmaFeatures: {
|
|
236
|
-
jsx: true
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
rules: {
|
|
241
|
-
"tailwindcss/no-contradicting-classname": ERROR,
|
|
242
|
-
"tailwindcss/classnames-order": WARN,
|
|
243
|
-
"tailwindcss/enforces-negative-arbitrary-values": WARN,
|
|
244
|
-
"tailwindcss/enforces-shorthand": WARN,
|
|
245
|
-
"tailwindcss/migration-from-tailwind-2": WARN,
|
|
246
|
-
"tailwindcss/no-custom-classname": WARN,
|
|
247
|
-
"tailwindcss/no-unnecessary-arbitrary-value": WARN,
|
|
248
|
-
"tailwindcss/no-arbitrary-value": OFF
|
|
249
|
-
}
|
|
250
|
-
} : null,
|
|
227
|
+
null,
|
|
251
228
|
hasNext ? {
|
|
252
229
|
name: "eslint/config/next",
|
|
253
230
|
files: ["**/*.ts?(x)", "**/*.js?(x)"],
|