houdini/.eslintrc.js

49 lines
1 KiB
JavaScript
Raw Normal View History

2020-06-12 20:03:43 +00:00
// 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 = {
root: true,
overrides: [
{
"files": ['**/*.ts'],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
]
2020-06-27 00:20:12 +00:00
},
{
"files": ['**/*.spec.ts'],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'jest'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/all'
],
rules:{
"jest/lowercase-name": ["error", { "ignore": ["describe"]}]
}
}
],
"rules": {
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
2020-06-26 23:18:41 +00:00
"always"
2020-06-27 00:24:36 +00:00
],
"no-trailing-spaces": ["error"]
}
};