2020-06-16 17:51:51 +02:00
|
|
|
module.exports = {
|
|
|
|
|
env: {
|
|
|
|
|
es6: true,
|
|
|
|
|
node: true
|
|
|
|
|
},
|
|
|
|
|
extends: [
|
|
|
|
|
'eslint:recommended',
|
|
|
|
|
'plugin:react/recommended',
|
2020-06-16 23:11:05 +02:00
|
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
2020-07-05 22:25:47 +02:00
|
|
|
'plugin:react-hooks/recommended',
|
2021-02-11 23:43:21 +01:00
|
|
|
// 'plugin:@typescript-eslint/recommended'
|
2020-06-16 17:51:51 +02:00
|
|
|
],
|
|
|
|
|
globals: {
|
|
|
|
|
Atomics: 'readonly',
|
|
|
|
|
SharedArrayBuffer: 'readonly'
|
|
|
|
|
},
|
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
|
parserOptions: {
|
|
|
|
|
ecmaFeatures: {
|
|
|
|
|
jsx: true
|
|
|
|
|
},
|
|
|
|
|
ecmaVersion: 2018,
|
|
|
|
|
sourceType: 'module'
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
'react',
|
2020-07-05 22:25:47 +02:00
|
|
|
'@typescript-eslint',
|
|
|
|
|
'react-hooks'
|
2020-06-16 17:51:51 +02:00
|
|
|
],
|
|
|
|
|
rules: {
|
2021-02-11 23:43:21 +01:00
|
|
|
indent: 'off',
|
|
|
|
|
'@typescript-eslint/indent': [
|
2020-06-16 17:51:51 +02:00
|
|
|
'error',
|
|
|
|
|
4,
|
|
|
|
|
{
|
|
|
|
|
SwitchCase: 1,
|
|
|
|
|
}
|
|
|
|
|
],
|
2021-02-11 23:43:21 +01:00
|
|
|
'linebreak-style': [
|
2020-06-16 17:51:51 +02:00
|
|
|
'error',
|
|
|
|
|
'unix'
|
|
|
|
|
],
|
|
|
|
|
quotes: [
|
|
|
|
|
'error',
|
|
|
|
|
'single'
|
|
|
|
|
],
|
|
|
|
|
semi: [
|
|
|
|
|
'error',
|
|
|
|
|
'always'
|
2020-06-16 23:11:05 +02:00
|
|
|
],
|
2021-02-11 23:43:21 +01:00
|
|
|
'no-unused-vars': 'off',
|
|
|
|
|
'react/prop-types': 'off',
|
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
|
'error'
|
2023-04-23 22:06:39 +02:00
|
|
|
],
|
|
|
|
|
'react/jsx-no-literals': [
|
|
|
|
|
'error',
|
|
|
|
|
{
|
|
|
|
|
ignoreProps: true
|
|
|
|
|
}
|
2024-07-25 20:07:23 +09:00
|
|
|
],
|
|
|
|
|
'react/react-in-jsx-scope': 'off',
|
2022-05-18 22:10:06 +02:00
|
|
|
},
|
|
|
|
|
settings: {
|
|
|
|
|
react: {
|
|
|
|
|
version: 'detect',
|
|
|
|
|
}
|
2020-06-16 17:51:51 +02:00
|
|
|
}
|
|
|
|
|
};
|