Skip to content

Commit

Permalink
chore: add ES Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dawsonc623 committed Aug 4, 2020
1 parent a50231c commit b3f2dd1
Show file tree
Hide file tree
Showing 4 changed files with 791 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore anything outside of the packages' src directories
/*
!/src
44 changes: 44 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import"
],
"rules": {
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/indent": [
"error",
2
],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/type-annotation-spacing": [
"error",
{
"before": true
}
],
"linebreak-style": [
"error",
"unix"
],
"prefer-const": "error",
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-undef": "off"
}
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"watch": "parcel -p 8080 watch src/ui/index.html"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^3.7.1",
"@typescript-eslint/parser": "^3.7.1",
"eslint": "^7.6.0",
"eslint-plugin-import": "^2.22.0",
"parcel-bundler": "^1.12.4",
"sass": "^1.26.10",
"tile-extruder": "^2.0.6",
Expand Down
Loading

0 comments on commit b3f2dd1

Please sign in to comment.