2022-06-27 13:31:21 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
|
|
|
},
|
|
|
|
extends: [
|
2022-06-27 16:00:15 +00:00
|
|
|
'react-app',
|
|
|
|
'react-app/jest',
|
|
|
|
'plugin:react/recommended',
|
|
|
|
'airbnb',
|
|
|
|
'plugin:jest/recommended',
|
|
|
|
'plugin:prettier/recommended',
|
2022-07-01 03:33:57 +00:00
|
|
|
'plugin:sonarjs/recommended',
|
2022-07-05 15:50:55 +00:00
|
|
|
'plugin:import/errors',
|
|
|
|
'plugin:import/warnings',
|
|
|
|
'plugin:import/typescript',
|
2022-06-27 13:31:21 +00:00
|
|
|
],
|
2022-07-05 15:50:55 +00:00
|
|
|
parser: '@typescript-eslint/parser',
|
2022-06-27 13:31:21 +00:00
|
|
|
parserOptions: {
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
2022-06-27 16:00:15 +00:00
|
|
|
ecmaVersion: 'latest',
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
2022-07-05 15:50:55 +00:00
|
|
|
plugins: ['react', 'sonarjs', '@typescript-eslint'],
|
2022-06-27 16:00:15 +00:00
|
|
|
rules: {
|
2022-06-27 16:29:14 +00:00
|
|
|
'jest/expect-expect': 'off',
|
2022-06-27 16:00:15 +00:00
|
|
|
'react/jsx-no-bind': 'off',
|
|
|
|
'jsx-a11y/no-autofocus': 'off',
|
|
|
|
'jsx-a11y/label-has-associated-control': 'off',
|
|
|
|
'no-console': 'off',
|
2022-07-05 15:50:55 +00:00
|
|
|
'react/jsx-filename-extension': [
|
|
|
|
1,
|
|
|
|
{ extensions: ['.js', '.jsx', '.tsx', '.ts'] },
|
|
|
|
],
|
2022-06-27 16:00:15 +00:00
|
|
|
'react/react-in-jsx-scope': 'off',
|
2022-07-05 15:50:55 +00:00
|
|
|
'react/require-default-props': 'off',
|
|
|
|
'no-unused-vars': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
destructuredArrayIgnorePattern: '^_',
|
|
|
|
varsIgnorePattern: '_',
|
|
|
|
argsIgnorePattern: '^_',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'import/extensions': [
|
|
|
|
'error',
|
|
|
|
'ignorePackages',
|
|
|
|
{
|
|
|
|
js: 'never',
|
|
|
|
jsx: 'never',
|
|
|
|
ts: 'never',
|
|
|
|
tsx: 'never',
|
|
|
|
},
|
|
|
|
],
|
2022-06-27 13:31:21 +00:00
|
|
|
},
|
|
|
|
};
|