Inspired by @antfu/eslint-config and @sxzz/eslint-config.
A common configuration to be used across the different rotki TypeScript and JavaScript repositories.
pnpm i -D eslint @rotki/eslint-config
import rotki from '@rotki/eslint-config';
// eslint-disable-next-line import/no-default-export
export default rotki();
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
// eslint.config.mjs
import rotki from '@rotki/eslint-config';
// eslint-disable-next-line import/no-default-export
export default rotki({
vueI18n: {
src: path.join('app', 'src'), // defaults to src for @intlify/vue-i18n/no-unused-keys,
localeDir: 'locales', // that would be under app/src/
ignores: [], // for @intlify/vue-i18n/no-unused-keys
},
});
// eslint.config.mjs
import rotki from '@rotki/eslint-config';
// eslint-disable-next-line import/no-default-export
export default rotki({
typescript: {
tsconfigPath: 'tsconfig.json',
},
});
AGPL-3.0 License © 2023- Rotki Solutions GmbH