Files
spend-ia/.eslintrc.cjs

46 lines
1.1 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',
'@typescript-eslint/triple-slash-reference': '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',
},
};