2018-07-12 11:50:47 +02:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2019-03-13 15:31:59 +01:00
|
|
|
parser: 'babel-eslint',
|
2018-07-12 11:50:47 +02:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2017,
|
|
|
|
sourceType: 'module'
|
|
|
|
},
|
|
|
|
globals: {
|
2019-03-26 16:02:08 +01:00
|
|
|
'process': true,
|
|
|
|
'gon': true
|
2018-07-12 11:50:47 +02:00
|
|
|
},
|
2019-03-13 15:31:59 +01:00
|
|
|
plugins: ['prettier', 'react-hooks'],
|
|
|
|
extends: ['eslint:recommended', 'prettier', 'plugin:react/recommended'],
|
2018-07-12 11:50:47 +02:00
|
|
|
env: {
|
2018-10-16 10:49:00 +02:00
|
|
|
es6: true,
|
2018-07-12 11:50:47 +02:00
|
|
|
browser: true
|
|
|
|
},
|
|
|
|
rules: {
|
2019-03-13 15:31:59 +01:00
|
|
|
'prettier/prettier': 'error',
|
|
|
|
'react-hooks/rules-of-hooks': 'error'
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
react: {
|
|
|
|
version: 'detect'
|
|
|
|
}
|
2018-09-12 10:40:12 +02:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
2019-03-13 15:31:59 +01:00
|
|
|
files: ['config/webpack/**/*.js', 'babel.config.js', 'postcss.config.js'],
|
2018-09-12 10:40:12 +02:00
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2018-07-12 11:50:47 +02:00
|
|
|
};
|