3.4.0 • Published 8 months ago
@rotki/eslint-config v3.4.0
@rotki/eslint-config
Inspired by @antfu/eslint-config and @sxzz/eslint-config.
A common configuration to be used across the different rotki TypeScript and JavaScript repositories.
Usage
Install
pnpm i -D eslint @rotki/eslint-config
Config eslint.config.mjs
import rotki from '@rotki/eslint-config';
// eslint-disable-next-line import/no-default-export
export default rotki();
Add script for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
@intlify/eslint-plugin-vue-i18n
// 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
},
});
TypeScript Aware Rules
// eslint.config.mjs
import rotki from '@rotki/eslint-config';
// eslint-disable-next-line import/no-default-export
export default rotki({
typescript: {
tsconfigPath: 'tsconfig.json',
},
});
License
AGPL-3.0 License © 2023- Rotki Solutions GmbH
3.4.0
8 months ago
3.3.0
8 months ago
3.2.1
9 months ago
3.2.0
9 months ago
3.1.0
9 months ago
2.9.0
12 months ago
2.8.0
1 year ago
2.9.1
12 months ago
3.0.0
11 months ago
2.7.0
1 year ago
2.6.0
1 year ago
2.5.0
1 year ago
2.4.5
1 year ago
2.4.3
1 year ago
2.4.2
1 year ago
2.4.4
1 year ago
2.4.1
1 year ago
2.4.0
1 year ago
2.3.0
1 year ago
2.2.0
1 year ago
2.1.0
1 year ago
2.0.0
1 year ago
1.1.1
2 years ago
1.1.0
2 years ago
1.1.2
2 years ago
1.0.6
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago