mirror of
https://github.com/FranP-code/spend-ia.git
synced 2025-10-13 00:14:09 +00:00
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: ['plugin:react/recommended', 'standard-with-typescript', 'prettier'],
|
|
overrides: [],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
project: './tsconfig.json',
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['react', 'prettier', 'sort-keys-fix', 'better-styled-components'],
|
|
rules: {
|
|
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
'arrow-body-style': ['error', 'as-needed'],
|
|
'better-styled-components/sort-declarations-alphabetically': 2,
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
groups: [
|
|
'builtin',
|
|
'external',
|
|
'internal',
|
|
'unknown',
|
|
'parent',
|
|
'sibling',
|
|
'index',
|
|
'object',
|
|
'type',
|
|
],
|
|
pathGroups: [
|
|
{
|
|
group: 'external',
|
|
pattern: '~/**',
|
|
position: 'after',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
'prettier/prettier': 'error',
|
|
'sort-keys-fix/sort-keys-fix': 'error',
|
|
},
|
|
};
|