spiffworkflow-frontend/.eslintrc.js

59 lines
1.3 KiB
JavaScript
Raw Normal View History

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',
'plugin:sonarjs/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
2022-06-27 13:31:21 +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',
},
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',
'react/jsx-filename-extension': [
1,
{ extensions: ['.js', '.jsx', '.tsx', '.ts'] },
],
2022-06-27 16:00:15 +00:00
'react/react-in-jsx-scope': 'off',
'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
},
};