PHP 8.2.30
Preview: .eslintrc.cjs Size: 2.99 KB
/home/byroehnu/.trash/node_modules11/adminjs/.eslintrc.cjs

module.exports = {
  parser: '@typescript-eslint/parser',
  plugins: ['@typescript-eslint', 'mocha'],
  env: {
    es6: true,
    node: true,
    mocha: true,
  },
  extends: ['airbnb', 'plugin:@typescript-eslint/recommended', 'plugin:mocha/recommended', 'plugin:import/typescript'],
  parserOptions: {
    ecmaVersion: 2020,
    sourceType: 'module',
  },
  rules: {
    'react/jsx-filename-extension': 'off',
    '@typescript-eslint/no-explicit-any': 'off',
    indent: ['error', 2],
    '@typescript-eslint/explicit-function-return-type': 'off',
    '@typescript-eslint/no-non-null-assertion': 'off',
    '@typescript-eslint/ban-ts-ignore': 'off',
    'import/prefer-default-export': 'off',
    'linebreak-style': ['error', 'unix'],
    quotes: ['error', 'single'],
    semi: ['error', 'never'],
    'import/no-unresolved': 'off',
    'func-names': 'off',
    'no-underscore-dangle': 'off',
    'guard-for-in': 'off',
    'no-restricted-syntax': 'off',
    'no-await-in-loop': 'off',
    'object-curly-newline': 'off',
    'import/extensions': [2, 'ignorePackages'],
    'mocha/no-hooks-for-single-case': 'off',
    'no-param-reassign': 'off',
    'default-param-last': 'off',
    'no-use-before-define': 'off',
    'no-restricted-exports': 'off',
    'react/require-default-props': 'off',
    'react/jsx-props-no-spreading': 'off',
    'react/function-component-definition': 'off',
    'max-classes-per-file': 'off',
    '@typescript-eslint/ban-ts-comment': 'off',
    'import/no-import-module-exports': 'off',
  },
  ignorePatterns: [
    '*/build/**/*',
    '*.json',
    '*.txt',
    '*.md',
    '*.lock',
    '*.log',
    '*.yaml',
    '**/*/frontend/assets/**/*',
    '*.d.ts',
    '*.config.js',
  ],
  overrides: [
    {
      files: ['*-test.js', '*.spec.js', '*-test.ts', '*.spec.ts', '*.spec.tsx', '*.factory.ts', '*.factory.js'],
      rules: {
        'no-unused-expressions': 'off',
        'func-names': 'off',
        'prefer-arrow-callback': 'off',
        'import/no-extraneous-dependencies': 'off',
        'mocha/no-mocha-arrows': 'off',
        '@typescript-eslint/explicit-function-return-type': 'off',
      },
    },
    {
      files: ['*.jsx', '*.js'],
      rules: {
        '@typescript-eslint/explicit-function-return-type': 'off',
      },
    },
    {
      files: ['*.cjs'],
      rules: {
        'import/no-commonjs': 'off',
      },
    },
    {
      files: ['*.tsx'],
      rules: {
        'react/prop-types': 'off',
        'react/function-component-definition': 'off',
      },
    },
    {
      files: ['**/*/cypress/integration/**/*.spec.js', './cy/**/*.js'],
      rules: {
        'mocha/no-mocha-arrows': 'off',
        'spaced-comment': 'off',
      },
    },
  ],
  settings: {
    'import/resolver': {
      node: {
        extensions: ['.js', '.jsx', '.ts', '.tsx'],
      },
    },
  },
  globals: {
    expect: true,
    factory: true,
    sandbox: true,
    server: true,
    window: true,
    AdminJS: true,
    flatpickr: true,
    FormData: true,
    File: true,
    cy: true,
    Cypress: true,
  },
}

Directory Contents

Dirs: 11 × Files: 18

Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2026-02-28 00:32:50
Edit Download
bin DIR
- drwxr-xr-x 2026-02-28 00:31:40
Edit Download
bundle DIR
- drwxr-xr-x 2026-02-28 00:31:40
Edit Download
cy DIR
- drwxr-xr-x 2026-02-28 00:32:22
Edit Download
lib DIR
- drwxr-xr-x 2026-02-28 00:31:52
Edit Download
- drwxr-xr-x 2026-02-28 00:26:18
Edit Download
- drwxr-xr-x 2026-02-28 00:31:52
Edit Download
spec DIR
- drwxr-xr-x 2026-02-28 00:31:48
Edit Download
src DIR
- drwxr-xr-x 2026-02-28 00:32:28
Edit Download
types DIR
- drwxr-xr-x 2026-02-28 00:32:20
Edit Download
- drwxr-xr-x 2026-02-28 00:32:38
Edit Download
636 B lrw-r--r-- 2026-02-28 00:31:52
Edit Download
759 B lrw-r--r-- 2026-02-28 00:31:52
Edit Download
26 B lrw-r--r-- 2026-02-28 00:26:32
Edit Download
2.99 KB lrw-r--r-- 2026-02-28 00:27:26
Edit Download
18 B lrw-r--r-- 2026-02-28 00:26:42
Edit Download
332 B lrw-r--r-- 2026-02-28 00:26:52
Edit Download
706 B lrw-r--r-- 2026-02-28 00:27:04
Edit Download
68 B lrw-r--r-- 2026-02-28 00:31:26
Edit Download
3.95 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
78 B lrw-r--r-- 2026-02-28 00:27:32
Edit Download
8.42 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
247 B lrw-r--r-- 2026-02-28 00:32:22
Edit Download
116 B lrw-r--r-- 2026-02-28 00:31:40
Edit Download
1.03 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
5.33 KB lrw-r--r-- 2026-02-28 00:31:52
Edit Download
2.96 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download
1001 B lrw-r--r-- 2026-02-28 00:31:56
Edit Download
2.01 KB lrw-r--r-- 2026-02-28 00:31:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).