Skip to content

Commit

Permalink
Merge pull request #55 from JohnCampionJr/prettier
Browse files Browse the repository at this point in the history
Added Prettier to ESLint / VSCode
  • Loading branch information
liborpansky authored Jan 6, 2021
2 parents 0efe17f + 27becd3 commit 71da49f
Show file tree
Hide file tree
Showing 25 changed files with 248 additions and 590 deletions.
6 changes: 3 additions & 3 deletions AspNetCoreVueStarter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<Copyright>MIT 2021 Software Ateliers</Copyright>
<AssemblyName>AspNetCoreVueStarter</AssemblyName>
<RootNamespace>AspNetCoreVueStarter</RootNamespace>
<Version>3.0.0</Version>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<Version>3.1.0</Version>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<FileVersion>3.1.0.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
22 changes: 20 additions & 2 deletions ClientApp/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,34 @@ module.exports = {
env: {
node: true
},
'extends': [
/* ES Lint Standard config
extends: [
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript/recommended'
],
*/
/* ESLint + Prettier config */
extends: [
'plugin:vue/essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}
]
}
}
8 changes: 8 additions & 0 deletions ClientApp/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 100,
"endOfLine": "auto"
}
4 changes: 2 additions & 2 deletions ClientApp/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['@vue/cli-plugin-babel/preset']
};
presets: ['@vue/cli-plugin-babel/preset']
}
Loading

0 comments on commit 71da49f

Please sign in to comment.