UNPKG

appwrite-database-repository

Version:

61 lines (60 loc) 2.07 kB
module.exports = { env: { browser: true, es2021: true, }, extends: [ 'airbnb-typescript/base' ], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 'latest', sourceType: 'module', project: './tsconfig.json' }, plugins: [ '@typescript-eslint', 'import' ], rules: { 'no-console': ['warn'], 'max-len': ['warn', { code: 250 }], '@typescript-eslint/comma-dangle': ['off'], 'camelcase': ['off'], 'import/no-extraneous-dependencies': ['off'], 'no-new': ['off'], '@typescript-eslint/lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], 'object-curly-newline': ['error', { ImportDeclaration: { 'multiline' : true }, ExportDeclaration: 'never' }], 'import/no-absolute-path': ['off'], 'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }], 'import/prefer-default-export': ['off'], '@typescript-eslint/no-use-before-define': ['off'], 'consistent-return': ['off'], 'object-shorthand': ['off'], 'prefer-exponentiation-operator': ['off'], 'no-restricted-properties': ['off'], 'no-unused-vars': ['off'], 'no-param-reassign': ['error', { props: false }], 'arrow-body-style': ['off'], 'no-shadow': ['off'], '@typescript-eslint/no-shadow': ['error'], 'import/no-useless-path-segments': ['off'], 'max-classes-per-file': ['off'], 'no-underscore-dangle': ['error', { allow: ['_id'] }], '@typescript-eslint/indent': ['off'], 'indent': ['error', 2, { SwitchCase: 1, ignoredNodes: ['PropertyDefinition'] }], 'no-return-await': 'off', '@typescript-eslint/return-await': 'off', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-explicit-any': 'off', 'implicit-arrow-linebreak': 'off', 'no-empty-function': 'off', '@typescript-eslint/no-empty-function': ['error', { 'allow': ['constructors'] }], }, settings: { 'import/resolver': { typescript: {} } } };