chatgpt-web/.eslintrc.cjs

36 lines
1.1 KiB
JavaScript
Raw Normal View History

module.exports = {
parser: '@typescript-eslint/parser',
2023-03-20 23:35:03 +09:00
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
extraFileExtensions: ['.svelte']
},
2023-03-20 23:35:03 +09:00
extends: ['standard-with-typescript'],
plugins: [
'svelte3',
'@typescript-eslint'
],
2023-03-20 23:35:03 +09:00
// Disable these rules: import/first, import/no-duplicates, import/no-mutable-exports, import/no-unresolved, import/prefer-default-export
// Reference: https://github.com/sveltejs/eslint-plugin-svelte3/blob/master/OTHER_PLUGINS.md#eslint-plugin-import
rules: {
'import/first': 'off',
'import/no-duplicates': 'off',
'import/no-mutable-exports': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 2, maxEOF: 0 }] // See: https://github.com/sveltejs/eslint-plugin-svelte3/issues/41
},
overrides: [
{
files: [
'**/*.svelte'
],
processor: 'svelte3/svelte3'
}
],
settings: {
'svelte3/typescript': true
},
2023-03-27 22:43:03 +09:00
ignorePatterns: ['node_modules/*', 'dist/*', 'src-tauri/*', '.eslintrc.cjs', '*.json']
}