UNPKG

neo-neo-bblessed

Version:

A fork of neo-blessed (which is a fork of blessed) with bug fixes and maintenance.

173 lines (171 loc) 4.95 kB
module.exports = { root: true, env: { browser: true, es6: true, node: true, }, extends: ['eslint:recommended'], parserOptions: { sourceType: 'module', ecmaVersion: 2018, ecmaFeatures: { jsx: true, }, }, globals: { __: true, }, plugins: [], rules: { // Import existing rules from .eslintrc.json but with TypeScript compatibility 'accessor-pairs': 'error', 'array-bracket-spacing': ['error', 'never'], 'arrow-spacing': ['error', { after: true, before: true }], 'block-scoped-var': 'error', 'block-spacing': 'error', 'brace-style': 'off', camelcase: 'off', 'comma-dangle': 'off', 'comma-spacing': 'off', 'comma-style': ['error', 'last'], complexity: 'error', 'computed-property-spacing': ['error', 'never'], 'consistent-return': 'off', curly: 'off', 'default-case': 'error', 'dot-location': ['error', 'property'], 'dot-notation': 'off', 'eol-last': 'error', eqeqeq: 'error', 'func-call-spacing': 'error', 'func-names': 'off', 'linebreak-style': ['error', 'unix'], 'max-depth': 'error', 'max-len': 'off', 'no-alert': 'error', 'no-array-constructor': 'error', 'no-bitwise': 'off', 'no-caller': 'error', 'no-console': 'off', 'no-continue': 'off', 'no-debugger': 'warn', 'no-duplicate-imports': 'error', 'no-else-return': 2, 'no-empty-function': 'off', 'no-eval': 'off', 'no-extend-native': 'error', 'no-extra-bind': 'error', 'no-extra-parens': 'off', 'no-implicit-coercion': ['error', { allow: ['!!'] }], 'no-magic-numbers': 'off', 'no-mixed-operators': 'off', 'no-multi-spaces': 'off', 'no-multiple-empty-lines': 'error', 'no-nested-ternary': 'error', 'no-new': 'error', 'no-new-func': 'error', 'no-new-object': 'error', 'no-param-reassign': 'off', 'no-plusplus': 'off', 'no-process-env': 'off', 'no-process-exit': 'off', 'no-proto': 'error', 'no-prototype-builtins': 'off', 'no-return-assign': 'error', 'no-shadow': 'off', 'no-tabs': 'error', 'no-trailing-spaces': 'off', 'no-undef-init': 'error', 'no-undefined': 'off', 'no-underscore-dangle': 'off', 'no-unused-expressions': 'error', 'no-unused-vars': [ 'error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', }, ], 'no-use-before-define': 'off', 'no-useless-computed-key': 'error', 'no-useless-concat': 'error', 'no-useless-constructor': 'error', 'no-useless-escape': 'off', 'no-var': 'off', 'no-void': 'error', 'no-warning-comments': 'off', 'no-whitespace-before-property': 'error', 'no-with': 'error', 'object-curly-spacing': 'off', 'one-var': 'off', 'operator-linebreak': 'error', 'padded-blocks': 'off', 'prefer-const': 'off', quotes: 'off', radix: 'off', 'require-await': 'off', semi: 'off', 'semi-spacing': 'off', 'space-in-parens': 'off', 'space-infix-ops': 'off', 'space-unary-ops': 'off', strict: 'off', 'valid-jsdoc': 'off', yoda: 'off', 'no-control-regex': 'off', 'no-cond-assign': 'off', 'no-extra-semi': 'off', 'no-return-assign': 'off', 'no-prototype-builtins': 'off', 'no-nested-ternary': 'off', 'default-case': 'off', 'eol-last': 'off', 'no-unused-expressions': 'off', }, overrides: [ { files: ['*.ts', '*.tsx'], parser: '@typescript-eslint/parser', parserOptions: { sourceType: 'module', ecmaVersion: 2018, }, plugins: ['@typescript-eslint'], extends: ['eslint:recommended'], rules: { // TypeScript specific rules (lenient for migration) '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': [ 'warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', }, ], '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/prefer-optional-chain': 'off', '@typescript-eslint/prefer-nullish-coalescing': 'off', '@typescript-eslint/no-unnecessary-type-assertion': 'off', '@typescript-eslint/no-inferrable-types': 'off', // Disable base ESLint rules that conflict with TypeScript 'no-unused-vars': 'off', 'no-undef': 'off', 'no-redeclare': 'off', complexity: 'off', 'max-depth': 'off', 'no-proto': 'off', 'no-empty': 'off', 'no-useless-escape': 'off', yoda: 'off', 'operator-linebreak': 'off', 'comma-style': 'off', 'no-implicit-coercion': 'off', eqeqeq: 'off', 'no-else-return': 'off', }, }, ], };