Change the eslintrc.js file for our Typescript work

This commit is contained in:
Eric 2020-06-26 16:50:19 -05:00 committed by Eric Schultz
parent 0e2afd6fad
commit 394f871a37

View file

@ -1,15 +1,23 @@
// License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
// Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
root: true,
overrides: [
{
"files": ['**/*.ts'],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
]
}
],
"rules": {
"linebreak-style": [
"error",