mirror of
https://github.com/tloncorp/landscape.git
synced 2024-12-23 16:54:04 +03:00
60 lines
1.4 KiB
JavaScript
60 lines
1.4 KiB
JavaScript
module.exports = {
|
|
extends: ['@tloncorp/eslint-config', 'plugin:storybook/recommended'],
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
parserOptions: {
|
|
project: ['tsconfig.json'],
|
|
tsconfigRootDir: __dirname
|
|
}
|
|
}
|
|
],
|
|
rules: {
|
|
semi: [2, 'always'],
|
|
'react/destructuring-assignment': 'off',
|
|
'react/require-default-props': 'off',
|
|
'react/jsx-filename-extension': [
|
|
1,
|
|
{
|
|
extensions: ['.jsx', '.tsx']
|
|
}
|
|
],
|
|
'tailwindcss/no-custom-classname': [
|
|
0,
|
|
{
|
|
config: 'tailwind.config.js'
|
|
}
|
|
],
|
|
'no-param-reassign': ['error', { props: true, ignorePropertyModificationsFor: ['draft'] }],
|
|
'no-use-before-define': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{ argsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' }
|
|
],
|
|
'@typescript-eslint/no-use-before-define': [
|
|
'error',
|
|
{
|
|
typedefs: false
|
|
}
|
|
]
|
|
},
|
|
settings: {
|
|
tailwindcss: {
|
|
officialSorting: true
|
|
},
|
|
'import/resolver': {
|
|
alias: {
|
|
// mapping big-integer and fuzzy to a non-existent to squash error described here:
|
|
// https://github.com/johvin/eslint-import-resolver-alias/issues/18
|
|
map: [
|
|
['@', './src'],
|
|
['big-integer', 'hack'],
|
|
['fuzzy', 'hack'],
|
|
['vitest', 'hack']
|
|
],
|
|
extensions: ['.ts', '.tsx']
|
|
}
|
|
}
|
|
}
|
|
};
|