mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
30 lines
816 B
JavaScript
30 lines
816 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
extends: [
|
|
// "plugin:@typescript-eslint/recommended",
|
|
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
"ecmaVersion": 2020,
|
|
"sourceType": "module",
|
|
"project": "./tsconfig.json"
|
|
},
|
|
plugins: [
|
|
'@typescript-eslint',
|
|
],
|
|
rules: {
|
|
"@typescript-eslint/no-floating-promises": 2,
|
|
"@typescript-eslint/no-misused-promises": 2,
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": ["warn"],
|
|
"no-undef": "off",
|
|
"semi": ["error", "always"],
|
|
"@typescript-eslint/explicit-function-return-type": ["error"]
|
|
}
|
|
};
|