Skip to content

Commit

Permalink
Added Prettier to ESLint / VSCode
Browse files Browse the repository at this point in the history
Added instructions in package.md and eslintrc.js to change.
  • Loading branch information
JohnCampionJr committed Jan 5, 2021
1 parent 0efe17f commit 7d3c8e4
Show file tree
Hide file tree
Showing 23 changed files with 243 additions and 586 deletions.
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 100
}
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'
}
]
}
}
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 7d3c8e4

Please sign in to comment.