4.0.0 • Published 2 months ago

eslint-config-tjw-vue v4.0.0

Weekly downloads
46
License
MIT
Repository
github
Last release
2 months ago

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:

4.0.0

2 months ago

3.0.0

2 years ago

2.1.0

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

5 years ago

1.0.0

5 years ago