You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
// 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
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|