eslint-config-tjw-vue

4.0.0 • Public • Published

eslint-config-tjw-vue

The Jared Wilcurt's Premium Vue.js ESLint rules

Using this

This assumes you have ESLint 9+ already set up, if not, refer to this guide.

  1. npm install --save-dev eslint-plugin-vue eslint-config-tjw-vue
  2. In your eslint.config.js:
    import tjwVue from 'eslint-config-tjw-vue';
    import pluginVue from 'eslint-plugin-vue';
    
    const vue2Recommended = pluginVue.configs['flat/vue2-recommended'];
    const vue3Recommended = pluginVue.configs['flat/recommended'];
    
    export default [
      // Generic rulesets first, such as:
    
      // js.configs.recommended,
      // tjwBase,
    
      // Then pick either Vue 2 or Vue 3 from above and spread it
      ...vue3Recommended,
      tjwVue,
    
      // Then project specific settings
      {
      }
    ];

See also:

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-tjw-vue

Weekly Downloads

12

Version

4.0.0

License

MIT

Unpacked Size

10.3 kB

Total Files

5

Last publish

Collaborators

  • thejaredwilcurt