Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
// We don't extends from the `base` preset because the Vue plugin needs | ||
// to use the parser under `parserOptions`. By doing this we broke the import | ||
// plugin in the `react` preset. For now we just recreate the same configuration | ||
// until all the plugins behave the same. | ||
|
||
// eslint-disable-next-line import/no-commonjs | ||
module.exports = { | ||
// later we add vue-specific prettier extends here | ||
extends: ['plugin:vue/strongly-recommended', './rules/vue.js', './base.js'], | ||
plugins: ['vue'], | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint', // allows both flowtype and static class properties | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
experimentalObjectRestSpread: true, | ||
impliedStrict: true, | ||
jsx: true, | ||
}, | ||
}, | ||
extends: [ | ||
'plugin:vue/strongly-recommended', | ||
'eslint:recommended', | ||
'plugin:import/errors', | ||
'./rules/base.js', | ||
'prettier', | ||
'./rules/vue.js', | ||
], | ||
plugins: ['import', 'prettier'], | ||
settings: { | ||
'import/extensions': ['.js'], | ||
}, | ||
}; |