Skip to content

Commit

Permalink
Improve prettier integration (shd101wyy#284)
Browse files Browse the repository at this point in the history
* Reconfigure Prettier

* Run "npm audit fix"

* Add eslint to the list of checks

* Improve ignore files
  • Loading branch information
kachkaev authored and shd101wyy committed Oct 20, 2019
1 parent 8b254ed commit b585d0e
Show file tree
Hide file tree
Showing 7 changed files with 4,565 additions and 3,476 deletions.
15 changes: 15 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## extensions
*.*
!*.js
# !*.json ← todo integreate with https://www.npmjs.com/package/eslint-plugin-json
# !*.ts ← todo integrate with https://github.com/typescript-eslint/typescript-eslint


## same as in .gitignore
.vscode-test
*.vsix
node_modules
out


## special cases
42 changes: 21 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode-test
*.vsix
node_modules
out
*.vsix
16 changes: 16 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## extensions
*.*
!*.js
!*.json
!*.md
!*.ts


## same as in .gitignore
.vscode-test
*.vsix
node_modules
out


## special cases
Loading

0 comments on commit b585d0e

Please sign in to comment.