gitbutler/.eslintrc.cjs

27 lines
729 B
JavaScript
Raw Normal View History

2023-02-24 12:46:41 +03:00
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
2023-05-12 13:17:06 +03:00
plugins: ['svelte3', '@typescript-eslint', 'square-svelte-store'],
2023-02-24 12:46:41 +03:00
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
2023-02-24 12:46:41 +03:00
settings: {
'svelte3/typescript': () => require('typescript')
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
2023-02-24 13:00:17 +03:00
},
rules: {
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-function': 'off',
2023-05-12 13:17:06 +03:00
'@typescript-eslint/no-explicit-any': 'off',
'square-svelte-store/use-square-svelte-stores': 'error'
2023-02-24 12:46:41 +03:00
}
};