2.7.0 • Published 30 days ago
@rotki/eslint-config v2.7.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.js
With "type":"module"
import rotki from '@rotki/eslint-config';
// eslint-disable-next-line import/no-default-export
export default rotki();
With CommonJS
const rotki = require('@rotki/eslint-config').default;
module.exports = rotki();
Add script for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
@intlify/eslint-plugin-vue-i18n
// eslint.config.js
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.js
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
2.7.0
30 days ago
2.6.0
1 month ago
2.5.0
2 months ago
2.4.5
3 months ago
2.4.3
3 months ago
2.4.2
3 months ago
2.4.4
3 months ago
2.4.1
3 months ago
2.4.0
3 months ago
2.3.0
3 months ago
2.2.0
4 months ago
2.1.0
4 months ago
2.0.0
4 months ago
1.1.1
10 months ago
1.1.0
10 months ago
1.1.2
8 months ago
1.0.6
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago