2020-07-08 09:45:23 +02:00
/* eslint-disable @typescript-eslint/no-var-requires */
/* global module */
2020-05-13 14:17:00 +02:00
module . exports = {
env : {
browser : true ,
es6 : true ,
2020-06-08 20:34:39 +02:00
'cypress/globals' : true ,
2020-05-13 14:17:00 +02:00
} ,
settings : {
react : {
version : 'detect' ,
} ,
} ,
2020-07-08 09:45:23 +02:00
extends : [
'plugin:react/recommended' ,
2020-07-17 19:57:42 +02:00
'plugin:@typescript-eslint/recommended' ,
2020-07-08 09:45:23 +02:00
'prettier/@typescript-eslint' ,
2020-07-17 19:57:42 +02:00
'plugin:prettier/recommended' , // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
2020-07-08 09:45:23 +02:00
] ,
2020-05-13 14:17:00 +02:00
globals : {
Atomics : 'readonly' ,
SharedArrayBuffer : 'readonly' ,
} ,
2020-07-17 19:57:42 +02:00
parser : '@typescript-eslint/parser' ,
2020-05-13 14:17:00 +02:00
parserOptions : {
ecmaFeatures : {
jsx : true ,
} ,
} ,
2020-07-08 09:45:23 +02:00
plugins : [ 'prettier' , 'react' , 'cypress' , '@typescript-eslint' ] ,
2020-05-13 14:17:00 +02:00
rules : {
'react/prop-types' : [ 0 ] ,
'react/no-unescaped-entities' : [ 0 ] ,
'no-unused-vars' : [ 'error' , { ignoreRestSiblings : true } ] ,
2020-07-08 09:45:23 +02:00
'@typescript-eslint/explicit-function-return-type' : 'off' ,
'@typescript-eslint/explicit-module-boundary-types' : 'off' ,
'@typescript-eslint/no-empty-function' : 'off' ,
2020-05-13 14:17:00 +02:00
} ,
2020-07-08 09:45:23 +02:00
overrides : [
{
// enable the rule specifically for TypeScript files
files : [ '*.ts' , '*.tsx' ] ,
rules : {
'@typescript-eslint/explicit-function-return-type' : [ 'error' ] ,
'@typescript-eslint/explicit-module-boundary-types' : [ 'error' ] ,
} ,
} ,
{
files : [ '*.js' ] ,
rules : {
'typescript/no-var-requires' : 'off' ,
} ,
} ,
] ,
2020-05-13 14:17:00 +02:00
}