@fullstacksjs/eslint-config 14.4.0 → 14.5.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/cjs/modules/base.js +1 -0
- package/cjs/modules/cypress.js +1 -0
- package/cjs/modules/imports.js +1 -0
- package/cjs/modules/jest.js +1 -0
- package/cjs/modules/next.js +1 -0
- package/cjs/modules/node.js +1 -0
- package/cjs/modules/perfectionist.js +1 -0
- package/cjs/modules/playwright.js +1 -0
- package/cjs/modules/prettier.js +1 -0
- package/cjs/modules/promise.js +1 -0
- package/cjs/modules/react.js +1 -0
- package/cjs/modules/regex.js +1 -0
- package/cjs/modules/storybook.js +1 -0
- package/cjs/modules/stylistic.js +1 -0
- package/cjs/modules/tailwind.js +1 -0
- package/cjs/modules/tests.js +1 -0
- package/cjs/modules/typescript.js +1 -0
- package/cjs/modules/vitest.js +1 -0
- package/package.json +1 -1
- package/src/modules/base.mjs +1 -0
- package/src/modules/cypress.mjs +1 -0
- package/src/modules/imports.mjs +1 -0
- package/src/modules/jest.mjs +1 -0
- package/src/modules/next.mjs +1 -0
- package/src/modules/node.mjs +1 -0
- package/src/modules/perfectionist.mjs +1 -0
- package/src/modules/playwright.mjs +1 -0
- package/src/modules/prettier.mjs +1 -0
- package/src/modules/promise.mjs +1 -0
- package/src/modules/react.mjs +1 -0
- package/src/modules/regex.mjs +1 -0
- package/src/modules/storybook.mjs +1 -0
- package/src/modules/stylistic.mjs +1 -0
- package/src/modules/tailwind.mjs +1 -0
- package/src/modules/tests.mjs +1 -0
- package/src/modules/typescript.mjs +1 -0
- package/src/modules/vitest.mjs +1 -0
package/cjs/modules/base.js
CHANGED
package/cjs/modules/cypress.js
CHANGED
|
@@ -10,6 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
10
10
|
/** @return { import('eslint').Linter.Config } */
|
|
11
11
|
function cypress() {
|
|
12
12
|
return {
|
|
13
|
+
name: 'cypress',
|
|
13
14
|
files: _globs.globs.e2e,
|
|
14
15
|
plugins: {
|
|
15
16
|
cypress: _eslintPluginCypress.default
|
package/cjs/modules/imports.js
CHANGED
package/cjs/modules/jest.js
CHANGED
|
@@ -15,6 +15,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
15
15
|
function jest(options = {}) {
|
|
16
16
|
const projectService = options.typescript && options.typescript.tsconfigRootDir && options.typescript.projectService;
|
|
17
17
|
return {
|
|
18
|
+
name: 'jest',
|
|
18
19
|
files: _globs.globs.test,
|
|
19
20
|
plugins: {
|
|
20
21
|
jest: _eslintPluginJest.default
|
package/cjs/modules/next.js
CHANGED
package/cjs/modules/node.js
CHANGED
|
@@ -10,6 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
10
10
|
/** @return { import('eslint').Linter.Config } */
|
|
11
11
|
function playwright() {
|
|
12
12
|
return {
|
|
13
|
+
name: 'playwright',
|
|
13
14
|
plugins: {
|
|
14
15
|
playwright: _eslintPluginPlaywright.default
|
|
15
16
|
},
|
package/cjs/modules/prettier.js
CHANGED
package/cjs/modules/promise.js
CHANGED
|
@@ -10,6 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
10
10
|
/** @return { import('eslint').Linter.Config } */
|
|
11
11
|
function promise(options = {}) {
|
|
12
12
|
return {
|
|
13
|
+
name: 'promise',
|
|
13
14
|
plugins: {
|
|
14
15
|
promise: _eslintPluginPromise.default
|
|
15
16
|
},
|
package/cjs/modules/react.js
CHANGED
|
@@ -15,6 +15,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
15
15
|
function react(options = {}) {
|
|
16
16
|
const projectService = options.typescript && options.typescript.tsconfigRootDir && options.typescript.projectService;
|
|
17
17
|
return {
|
|
18
|
+
name: 'react',
|
|
18
19
|
files: [_globs.globs.js, _globs.globs.jsx, _globs.globs.ts, _globs.globs.tsx],
|
|
19
20
|
plugins: {
|
|
20
21
|
..._eslintPlugin.default.configs.all.plugins,
|
package/cjs/modules/regex.js
CHANGED
package/cjs/modules/storybook.js
CHANGED
|
@@ -10,6 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
10
10
|
/** @return { import('eslint').Linter.Config } */
|
|
11
11
|
function storybook() {
|
|
12
12
|
return {
|
|
13
|
+
name: 'storybook',
|
|
13
14
|
files: _globs.globs.storybook,
|
|
14
15
|
plugins: {
|
|
15
16
|
storybook: _eslintPluginStorybook.default
|
package/cjs/modules/stylistic.js
CHANGED
package/cjs/modules/tailwind.js
CHANGED
|
@@ -12,6 +12,7 @@ var _conditions = require("../utils/conditions.js");
|
|
|
12
12
|
async function tailwind(options = {}) {
|
|
13
13
|
const plugin = await Promise.resolve().then(() => require('eslint-plugin-better-tailwindcss'));
|
|
14
14
|
return {
|
|
15
|
+
name: 'tailwind',
|
|
15
16
|
plugins: {
|
|
16
17
|
'better-tailwindcss': plugin.default ?? plugin
|
|
17
18
|
},
|
package/cjs/modules/tests.js
CHANGED
|
@@ -15,6 +15,7 @@ var _namingConvention = require("../utils/naming-convention.js");
|
|
|
15
15
|
function typescript(options = {}) {
|
|
16
16
|
const projectService = options.typescript && options.typescript.tsconfigRootDir && options.typescript.projectService;
|
|
17
17
|
return {
|
|
18
|
+
name: 'typescript',
|
|
18
19
|
files: [_globs.globs.ts, _globs.globs.tsx],
|
|
19
20
|
plugins: {
|
|
20
21
|
'@typescript-eslint': _typescriptEslint.plugin
|
package/cjs/modules/vitest.js
CHANGED
package/package.json
CHANGED
package/src/modules/base.mjs
CHANGED
package/src/modules/cypress.mjs
CHANGED
package/src/modules/imports.mjs
CHANGED
package/src/modules/jest.mjs
CHANGED
package/src/modules/next.mjs
CHANGED
package/src/modules/node.mjs
CHANGED
package/src/modules/prettier.mjs
CHANGED
package/src/modules/promise.mjs
CHANGED
package/src/modules/react.mjs
CHANGED
|
@@ -11,6 +11,7 @@ function react(options = {}) {
|
|
|
11
11
|
const projectService = options.typescript && options.typescript.tsconfigRootDir && options.typescript.projectService;
|
|
12
12
|
|
|
13
13
|
return {
|
|
14
|
+
name: 'react',
|
|
14
15
|
files: [globs.js, globs.jsx, globs.ts, globs.tsx],
|
|
15
16
|
plugins: {
|
|
16
17
|
...reactPlugin.configs.all.plugins,
|
package/src/modules/regex.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import stylisticPlugin from '@stylistic/eslint-plugin';
|
|
|
6
6
|
*/
|
|
7
7
|
function stylistic() {
|
|
8
8
|
return {
|
|
9
|
+
name: 'stylistic',
|
|
9
10
|
plugins: { '@stylistic': stylisticPlugin },
|
|
10
11
|
rules: {
|
|
11
12
|
'@stylistic/jsx-curly-brace-presence': ['warn', { props: 'never', children: 'never', propElementValues: 'always' }],
|
package/src/modules/tailwind.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import { strict } from '../utils/conditions.mjs';
|
|
|
7
7
|
async function tailwind(options = {}) {
|
|
8
8
|
const plugin = await import('eslint-plugin-better-tailwindcss');
|
|
9
9
|
return {
|
|
10
|
+
name: 'tailwind',
|
|
10
11
|
plugins: { 'better-tailwindcss': plugin.default ?? plugin },
|
|
11
12
|
settings: {
|
|
12
13
|
'better-tailwindcss': {
|
package/src/modules/tests.mjs
CHANGED
|
@@ -12,6 +12,7 @@ function typescript(options = {}) {
|
|
|
12
12
|
const projectService = options.typescript && options.typescript.tsconfigRootDir && options.typescript.projectService;
|
|
13
13
|
|
|
14
14
|
return {
|
|
15
|
+
name: 'typescript',
|
|
15
16
|
files: [globs.ts, globs.tsx],
|
|
16
17
|
plugins: { '@typescript-eslint': plugin },
|
|
17
18
|
languageOptions: {
|