um-react/.eslintrc.cjs

28 lines
673 B
JavaScript
Raw Permalink Normal View History

2023-05-07 19:11:16 +00:00
/* eslint-env node */
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
2023-05-15 20:04:45 +00:00
'prettier',
2023-05-07 19:11:16 +00:00
],
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': 'warn',
2023-05-17 23:03:55 +00:00
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
2023-05-07 19:11:16 +00:00
},
2023-05-15 20:04:45 +00:00
};