Revision e33db5c2c2b3ee03a992f97b418e20cc026fa767 authored by Nikita Manovich on 04 March 2022, 16:53:02 UTC, committed by GitHub on 04 March 2022, 16:53:02 UTC
2 parent s 967b0fe + 8aaa450
Raw File
.eslintrc.js
// Copyright (C) 2021 Intel Corporation
//
// SPDX-License-Identifier: MIT

const globalConfig = require('../.eslintrc.js');

module.exports = {
    env: {
        node: true,
    },
    parserOptions: {
        parser: '@typescript-eslint/parser',
        ecmaVersion: 6,
        project: './tsconfig.json',
        tsconfigRootDir: __dirname,
    },
    ignorePatterns: [
        '.eslintrc.js',
        'webpack.config.js',
        'node_modules/**',
        'dist/**',
    ],
    plugins: ['@typescript-eslint'],
    extends: ['plugin:@typescript-eslint/recommended', 'airbnb-typescript/base'],
    rules: {
        ...globalConfig.rules,

        '@typescript-eslint/no-explicit-any': 0,
        '@typescript-eslint/indent': ['error', 4],
        '@typescript-eslint/lines-between-class-members': 0,
        '@typescript-eslint/no-explicit-any': [0],
        '@typescript-eslint/explicit-function-return-type': ['warn', { allowExpressions: true }],
        '@typescript-eslint/explicit-module-boundary-types': 'off',
        '@typescript-eslint/ban-types': [
            'error',
            {
                types: {
                    '{}': false, // TODO: try to fix with Record<string, unknown>
                    object: false, // TODO: try to fix with Record<string, unknown>
                    Function: false, // TODO: try to fix somehow
                },
            },
        ],
    },
};
back to top