test/packages/code-config/eslint/lib-ts.js

26 lines
609 B
JavaScript
Raw Permalink Normal View History

2024-05-07 16:24:43 +00:00
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: [
// airbnb规范
// https://www.npmjs.com/package/eslint-config-airbnb-base
'airbnb-base',
// 兼容typescript的airbnb规范
// https://github.com/iamturns/eslint-config-airbnb-typescript
'airbnb-typescript/base',
'./base-ts',
],
env: {
node: true,
},
ignorePatterns: [
// Ignore dotfiles
'node_modules/',
'dist/',
],
overrides: [
{
files: ['*.js?(x)', '*.ts?(x)', '*.json'],
},
],
};