@gabegabegabe/eslint-config
v10.0.0-alpha11
Published
Gabe's eslint configs
Downloads
235
Readme
@gabegabegabe/eslint-config
Gabe's personal ESLint configs
These are my collection of shareable ESLint configs, with rules tweaked to my liking.
Usage
These are intended to be included in your own .eslintrc.cjs
files, with the
different configs being required when needed. The root config
(@gabegabegabe/eslint-config
) should be extended by the root config for all
projects. After that, overrides for filetypes should be created and should
extend their respective configs. See below for an example.
Example Config
module.exports = {
extends: ['@gabegabegabe/eslint-config'],
overrides: [
// JSON
{
files: ['*.json'],
extends: ['@gabegabegabe/eslint-config/json']
},
// JavaScript + Vue
{
files: ['*.js', '*.cjs', '*.mjs', '*.ts', '*.vue'],
extends: [
'@gabegabegabe/eslint-config/javascript',
'@gabegabegabe/eslint-config/vue'
]
},
// TypeScript + Vue
{
files: ['*.ts', '*.vue'],
extends: [
'@gabegabegabe/eslint-config/typescript',
'@gabegabegabe/eslint-config/vue-typescript'
]
},
// Jest
{
files: ['*.test.ts'],
extends: [
'@gabegabegabe/eslint-config/jest',
'@gabegabegabe/eslint-config/jest-typescript'
]
}
]
};