A collection of ESLint configs for JavaScript, TypeScript and Vue. This configs mostly use Standard, but with some custom flavour on top.
As each config requires different plugins and parsers they are listed as optionalDependencies.
This config currently fully inherits from eslint-config-stanard.
$ yarn add -D @auritylab/eslint-config eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
{
"extends": [
"@auritylab/eslint-config/rules/javascript"
]
}
This config currently fully inherits from eslint-config-standard-with-typescript.
$ yarn add -D @auritylab/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"@auritylab/eslint-config/rules/typescript"
]
}
This config inherits from eslint-plugin-vue/recommended with some flavour on top. This config can be used in conjunction with JavaScript or TypeScript.
$ yarn add -D @auritylab/eslint-config eslint-plugin-vue
{
"parser": "vue-eslint-parser",
"extends": [
"@auritylab/eslint-config/rules/vue"
]
}
This requires the TypeScript config to be installed!
{
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser"
},
"extends": [
"@auritylab/eslint-config/rules/vue",
"@auritylab/eslint-config/rules/typescript"
]
}