vuejs / eslint-config-airbnb

ESLint Shareable Configs for Airbnb JavaScript Style Guide in Vue.js Projects
MIT License
72 stars 20 forks source link

Airbnb rules not added to templates #54

Closed satouriko closed 10 months ago

satouriko commented 1 year ago

The rules from airbnb are collectively referred to as styleRulesToExtend, and only would be added if they come from eslint-config-airbnb-base/rules/style

https://github.com/vuejs/eslint-config-airbnb/blob/79a12743cd676ac2b16ce8d8923826dab9010840/packages/eslint-config-airbnb/rules/template.js#L46-L51

However, a lot of them are not from style.js, for example eqeqeq is located at eslint-config-airbnb-base/rules/best-practices, and this rule would be missing for the <template> part of .vue files.

https://github.com/vuejs/eslint-config-airbnb/blob/79a12743cd676ac2b16ce8d8923826dab9010840/packages/eslint-config-airbnb/rules/template.js#L3-L39