admin-vben/.eslintrc.js

22 lines
744 B
JavaScript
Raw Normal View History

2023-07-29 10:46:43 +00:00
const process = require('node:process')
process.env.ESLINT_TSCONFIG = 'tsconfig.json'
2023-03-18 13:10:54 +00:00
module.exports = {
2023-09-06 08:48:54 +00:00
extends: ['@antfu', '@unocss'],
2023-03-18 13:10:54 +00:00
rules: {
'max-len': ['error', { code: 140, tabWidth: 2, ignoreComments: true }],
2023-07-29 10:46:43 +00:00
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
2023-07-29 12:20:40 +00:00
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
2023-08-23 07:19:09 +00:00
'@typescript-eslint/no-misused-promises': 'off',
2023-07-29 12:20:40 +00:00
'prefer-promise-reject-errors': 'off',
2023-07-29 10:46:43 +00:00
'no-case-declarations': 'off',
'no-console': 'off',
'n/prefer-global/process': 'off',
},
2023-03-18 13:10:54 +00:00
}