Skip to content

Commit

Permalink
fix(extensions): disable for packages in Vue
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss committed Aug 27, 2018
1 parent 937178b commit 37c0ba4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions rules/base.js
Expand Up @@ -257,14 +257,30 @@ module.exports = {
'template-curly-spacing': ['error'],
'yield-star-spacing': ['error'],

// Import
// https://github.com/benmosher/eslint-plugin-import
'import/no-amd': ['error'],
'import/no-commonjs': ['error'],
'import/no-extraneous-dependencies': ['error'],
'import/no-duplicates': ['error'],
'import/extensions': [2, 'always', { js: 'never' }],
'import/extensions': [
'error',
'always',
{
js: 'never',
vue: 'ignorePackages',
},
],

// Prettier
// https://github.com/prettier/eslint-plugin-prettier
'prettier/prettier': [
'error',
{ trailingComma: 'es5', singleQuote: true, printWidth: 80 },
{
trailingComma: 'es5',
singleQuote: true,
printWidth: 80,
},
],
},
};

0 comments on commit 37c0ba4

Please sign in to comment.