27 lines
675 B
JavaScript
27 lines
675 B
JavaScript
// SPDX-License-Identifier: MIT
|
|
// Copyright (c) 2022-2023 sup39
|
|
|
|
module.exports = {
|
|
extends: [
|
|
'@sup39/eslint-config-basic',
|
|
],
|
|
plugins: [
|
|
'@typescript-eslint',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
rules: {
|
|
'no-use-before-define': 'off',
|
|
'no-undef': 'off',
|
|
'no-redeclare': 'off',
|
|
'@typescript-eslint/no-redeclare': ['error'],
|
|
'no-unused-vars': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['warn', {
|
|
args: 'after-used',
|
|
varsIgnorePattern: '^_',
|
|
argsIgnorePattern: '^_',
|
|
ignoreRestSiblings: true,
|
|
// allow _* and 1-letter var (e.g. `k`)
|
|
destructuredArrayIgnorePattern: "^_|^.$"
|
|
}]
|
|
},
|
|
};
|