@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.
@@ -13,6 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
13
  */
14
14
  function base(options = {}) {
15
15
  return {
16
+ name: 'base',
16
17
  languageOptions: {
17
18
  ecmaVersion: 'latest',
18
19
  sourceType: 'module',
@@ -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
@@ -18,6 +18,7 @@ const allExtensions = [...jsExtensions, ...tsExtensions];
18
18
  function imports(options = {}) {
19
19
  const isObject = typeof options.import === 'object';
20
20
  const config = {
21
+ name: 'imports',
21
22
  plugins: {
22
23
  import: _eslintPluginImportX.default
23
24
  },
@@ -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
@@ -9,6 +9,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
9
9
  /** @type { import('eslint').Linter.Config } */
10
10
  function next() {
11
11
  return {
12
+ name: 'next',
12
13
  plugins: {
13
14
  next: _eslintPluginNext.default
14
15
  },
@@ -13,6 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
13
  */
14
14
  function node(options = {}) {
15
15
  return {
16
+ name: 'node',
16
17
  plugins: {
17
18
  n: _eslintPluginN.default
18
19
  },
@@ -11,6 +11,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
11
11
  */
12
12
  function perfectionist() {
13
13
  return {
14
+ name: 'perfectionist',
14
15
  plugins: {
15
16
  perfectionist: _eslintPluginPerfectionist.default
16
17
  },
@@ -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
  },
@@ -9,6 +9,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
9
9
  /** @return { import('eslint').Linter.Config } */
10
10
  function prettier() {
11
11
  return {
12
+ name: 'prettier',
12
13
  plugins: {
13
14
  prettier: _eslintPluginPrettier.default
14
15
  },
@@ -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
  },
@@ -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,
@@ -13,6 +13,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
13
13
  */
14
14
  function regex(options = {}) {
15
15
  return {
16
+ name: 'regex',
16
17
  plugins: {
17
18
  regexp: plugin
18
19
  },
@@ -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
@@ -12,6 +12,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
12
12
  */
13
13
  function stylistic() {
14
14
  return {
15
+ name: 'stylistic',
15
16
  plugins: {
16
17
  '@stylistic': _eslintPlugin.default
17
18
  },
@@ -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
  },
@@ -16,6 +16,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
16
16
 
17
17
  function tests(options = {}) {
18
18
  return {
19
+ name: 'tests',
19
20
  files: [..._globs.globs.test, ..._globs.globs.e2e],
20
21
  plugins: {
21
22
  vitest: _eslintPlugin.default
@@ -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
@@ -12,6 +12,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
12
12
  */
13
13
  function vitest() {
14
14
  return {
15
+ name: 'vitest',
15
16
  files: _globs.globs.test,
16
17
  plugins: {
17
18
  vitest: _eslintPlugin.default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "14.4.0",
3
+ "version": "14.5.0",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -8,6 +8,7 @@ import { strict } from '../utils/conditions.mjs';
8
8
  */
9
9
  function base(options = {}) {
10
10
  return {
11
+ name: 'base',
11
12
  languageOptions: {
12
13
  ecmaVersion: 'latest',
13
14
  sourceType: 'module',
@@ -5,6 +5,7 @@ import { globs } from '../utils/globs.mjs';
5
5
  /** @return { import('eslint').Linter.Config } */
6
6
  function cypress() {
7
7
  return {
8
+ name: 'cypress',
8
9
  files: globs.e2e,
9
10
  plugins: { cypress: plugin },
10
11
  rules: {
@@ -14,6 +14,7 @@ function imports(options = {}) {
14
14
  const isObject = typeof options.import === 'object';
15
15
 
16
16
  const config = {
17
+ name: 'imports',
17
18
  plugins: { import: plugin },
18
19
  settings: {
19
20
  'import-x/extensions': jsExtensions,
@@ -11,6 +11,7 @@ function jest(options = {}) {
11
11
  const projectService = options.typescript && options.typescript.tsconfigRootDir && options.typescript.projectService;
12
12
 
13
13
  return {
14
+ name: 'jest',
14
15
  files: globs.test,
15
16
  plugins: { jest: plugin },
16
17
  languageOptions: {
@@ -3,6 +3,7 @@ import plugin from '@next/eslint-plugin-next';
3
3
  /** @type { import('eslint').Linter.Config } */
4
4
  function next() {
5
5
  return {
6
+ name: 'next',
6
7
  plugins: { next: plugin },
7
8
  rules: {
8
9
  'next/google-font-display': 'warn',
@@ -8,6 +8,7 @@ import { strict } from '../utils/conditions.mjs';
8
8
  */
9
9
  function node(options = {}) {
10
10
  return {
11
+ name: 'node',
11
12
  plugins: { n: plugin },
12
13
  rules: {
13
14
  'n/callback-return': 'off',
@@ -5,6 +5,7 @@ import plugin from 'eslint-plugin-perfectionist';
5
5
  */
6
6
  function perfectionist() {
7
7
  return {
8
+ name: 'perfectionist',
8
9
  plugins: { perfectionist: plugin },
9
10
  rules: {
10
11
  'perfectionist/sort-array-includes': 'warn',
@@ -5,6 +5,7 @@ import { globs } from '../utils/globs.mjs';
5
5
  /** @return { import('eslint').Linter.Config } */
6
6
  function playwright() {
7
7
  return {
8
+ name: 'playwright',
8
9
  plugins: { playwright: plugin },
9
10
  files: globs.e2e,
10
11
  rules: {
@@ -3,6 +3,7 @@ import plugin from 'eslint-plugin-prettier';
3
3
  /** @return { import('eslint').Linter.Config } */
4
4
  function prettier() {
5
5
  return {
6
+ name: 'prettier',
6
7
  plugins: { prettier: plugin },
7
8
  rules: {
8
9
  'prettier/prettier': 'error',
@@ -5,6 +5,7 @@ import { strict } from '../utils/conditions.mjs';
5
5
  /** @return { import('eslint').Linter.Config } */
6
6
  function promise(options = {}) {
7
7
  return {
8
+ name: 'promise',
8
9
  plugins: { promise: plugin },
9
10
  rules: {
10
11
  'promise/always-return': 'off',
@@ -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,
@@ -6,6 +6,7 @@ import * as plugin from 'eslint-plugin-regexp';
6
6
  */
7
7
  function regex(options = {}) {
8
8
  return {
9
+ name: 'regex',
9
10
  plugins: { regexp: plugin },
10
11
  settings: {
11
12
  regexp: {
@@ -5,6 +5,7 @@ import { globs } from '../utils/globs.mjs';
5
5
  /** @return { import('eslint').Linter.Config } */
6
6
  function storybook() {
7
7
  return {
8
+ name: 'storybook',
8
9
  files: globs.storybook,
9
10
  plugins: { storybook: plugin },
10
11
  rules: {
@@ -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' }],
@@ -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': {
@@ -11,6 +11,7 @@ import { globs } from '../utils/globs.mjs';
11
11
 
12
12
  function tests(options = {}) {
13
13
  return {
14
+ name: 'tests',
14
15
  files: [...globs.test, ...globs.e2e],
15
16
  plugins: { vitest: plugin },
16
17
  languageOptions: {
@@ -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: {
@@ -7,6 +7,7 @@ import { globs } from '../utils/globs.mjs';
7
7
  */
8
8
  function vitest() {
9
9
  return {
10
+ name: 'vitest',
10
11
  files: globs.test,
11
12
  plugins: { vitest: plugin },
12
13
  languageOptions: {