2022-11-04 14:51:47 +09:00
|
|
|
// SPDX-License-Identifier: MIT
|
2023-02-15 23:43:02 +09:00
|
|
|
// Copyright (c) 2022-2023 sup39
|
2022-06-11 02:06:35 +09:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
extends: [
|
|
|
|
'@sup39/eslint-config-basic',
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
'@typescript-eslint',
|
|
|
|
],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
rules: {
|
|
|
|
'no-use-before-define': 'off',
|
2023-02-15 23:43:02 +09:00
|
|
|
'no-undef': 'off',
|
2022-06-11 02:06:35 +09:00
|
|
|
// '@typescript-eslint/no-use-before-define': ['error'],
|
|
|
|
'no-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': ['warn', {
|
2022-06-18 18:41:31 +09:00
|
|
|
args: 'after-used',
|
|
|
|
varsIgnorePattern: '^_',
|
|
|
|
argsIgnorePattern: '^_',
|
|
|
|
ignoreRestSiblings: true,
|
|
|
|
// allow _* and 1-letter var (e.g. `k`)
|
|
|
|
destructuredArrayIgnorePattern: "^_|^.$"
|
2022-06-11 02:06:35 +09:00
|
|
|
}]
|
|
|
|
},
|
|
|
|
};
|