2022-08-05 13:35:26 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'airbnb',
|
2022-10-01 04:09:57 +00:00
|
|
|
'plugin:bpmn-io/es6',
|
2022-08-05 13:35:26 +00:00
|
|
|
'plugin:prettier/recommended',
|
|
|
|
'plugin:sonarjs/recommended',
|
|
|
|
'plugin:import/errors',
|
|
|
|
'plugin:import/warnings',
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
|
|
|
ecmaVersion: 'latest',
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'jsx-a11y/no-autofocus': 'off',
|
|
|
|
'jsx-a11y/label-has-associated-control': 'off',
|
|
|
|
'no-console': 'off',
|
|
|
|
'no-unused-vars': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
destructuredArrayIgnorePattern: '^_',
|
|
|
|
varsIgnorePattern: '_',
|
|
|
|
argsIgnorePattern: '^_',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'import/extensions': [
|
|
|
|
'error',
|
|
|
|
'ignorePackages',
|
|
|
|
{
|
|
|
|
js: 'never',
|
|
|
|
jsx: 'never',
|
|
|
|
ts: 'never',
|
|
|
|
tsx: 'never',
|
|
|
|
},
|
|
|
|
],
|
2022-08-05 13:46:13 +00:00
|
|
|
|
|
|
|
// We could try turning these on at some point but do not want to force it now
|
|
|
|
'react/react-in-jsx-scope': 'off',
|
|
|
|
'react/prop-types': 'off',
|
|
|
|
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
|
2022-08-05 18:57:30 +00:00
|
|
|
'no-use-before-define': 0,
|
2022-08-16 17:02:14 +00:00
|
|
|
'func-names': 'off',
|
|
|
|
'react/destructuring-assignment': 'off',
|
|
|
|
'import/prefer-default-export': 'off',
|
|
|
|
'no-restricted-syntax': 'off',
|
2022-08-05 13:35:26 +00:00
|
|
|
},
|
|
|
|
};
|