NapCatQQ/.eslintrc.cjs

65 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-04-14 16:09:08 +00:00
module.exports = {
'env': {
'browser': true,
'es2021': true,
2024-04-14 16:09:08 +00:00
'node': true
},
'ignorePatterns': ['src/proto/'],
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended'
2024-04-14 16:09:08 +00:00
],
'overrides': [
{
'env': {
'node': true
},
'files': [
'.eslintrc.{js,cjs}'
],
'parserOptions': {
'sourceType': 'script'
}
}
2024-04-14 16:09:08 +00:00
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint',
'import'
2024-04-14 16:09:08 +00:00
],
'settings': {
'import/parsers': {
'@typescript-eslint/parser': ['.ts']
},
'import/resolver': {
'typescript': {
'alwaysTryTypes': true
}
}
},
'rules': {
'indent': [
'error',
4
],
'linebreak-style': [
'error',
'unix'
],
'semi': [
'error',
'always'
],
'no-unused-vars': 'off',
'no-async-promise-executor': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'object-curly-spacing': ['error', 'always'],
}
2024-04-14 16:09:08 +00:00
};