c044460a91
* Fix lint warnings * Let vercel build when unused import
40 lines
1018 B
JavaScript
40 lines
1018 B
JavaScript
module.exports = {
|
|
plugins: ['lodash', 'unused-imports'],
|
|
extends: ['eslint:recommended'],
|
|
ignorePatterns: ['lib'],
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts'],
|
|
plugins: ['@typescript-eslint'],
|
|
extends: ['plugin:@typescript-eslint/recommended'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
'unused-imports/no-unused-imports': 'warn',
|
|
},
|
|
},
|
|
],
|
|
rules: {
|
|
'no-extra-semi': 'off',
|
|
'no-constant-condition': ['error', { checkLoops: false }],
|
|
'linebreak-style': ['error', 'unix'],
|
|
'lodash/import-scope': [2, 'member'],
|
|
},
|
|
}
|