Skip to content

Commit

Permalink
Add global eslint config and editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
cretueusebiu committed Feb 15, 2021
1 parent 5320072 commit 3a6cb1e
Show file tree
Hide file tree
Showing 5 changed files with 2,477 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{vue,js,ts,json,html,scss,css,less,blade.php,yml}]
indent_style = space
indent_size = 2
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'@nuxtjs/eslint-config-typescript'
],
rules: {
camelcase: 'off',
'no-case-declarations': 'off',

// Allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-async-promise-executor': 0
}
}
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dir=~/dotfiles
files="aliases bash_profile bashrc bash_prompt exports gitconfig minttyrc vimrc inputrc"
files=".aliases .bash_profile .bashrc .bash_prompt .exports .gitconfig .minttyrc .vimrc .inputrc .editorconfig .eslintrc.js package.json package-lock.json"

for file in $files; do
echo "Creating symlink to $file in home directory."
ln -sf "$dir/.$file" ~/.$file
ln -sf "$dir/$file" ~/$file
done

# Windows Terminal settings
Expand All @@ -13,3 +13,6 @@ if [ -d "$terminalDir" ]; then
cp ./windows-terminal-settings.json "$terminalDir/LocalState/settings.json"
cp ./git-bash.ico "$terminalDir/RoamingState"
fi

echo "Installing npm dependencies..."
cd ~/ && npm i
Loading

0 comments on commit 3a6cb1e

Please sign in to comment.