Files

69 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

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',
'plugin:react-hooks/recommended',
// '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',
'@typescript-eslint',
'react-hooks'
2020-06-16 17:51:51 +02:00
],
rules: {
indent: 'off',
'@typescript-eslint/indent': [
2020-06-16 17:51:51 +02:00
'error',
4,
{
SwitchCase: 1,
}
],
'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
],
'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
}
],
'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
}
};