Skip to content

Commit

Permalink
eslint integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett-green committed Dec 19, 2020
1 parent a0acea3 commit 2b27b62
Show file tree
Hide file tree
Showing 5 changed files with 1,387 additions and 34 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
17 changes: 17 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
env:
browser: true
es2021: true
node: true
extends:
- 'airbnb-typescript'
- 'plugin:@typescript-eslint/recommended'
- 'preact'
- 'prettier'
- 'prettier/@typescript-eslint'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
sourceType: module
plugins:
- '@typescript-eslint'
rules: {}
6 changes: 3 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"singleQuote": true,
"parser": "typescript",
"useTabs": false,
"tabWidth": 2
"singleQuote": true,
"tabWidth": 2,
"useTabs": false
}
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"name": "preact-template",
"author": "@garrettgreen",
"name": "wee-bit",
"author": "Garrett Green",
"dependencies": {
"preact": "^10.5.5"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"eslint": "^7.16.0",
"eslint-config-airbnb-typescript": "^12.0.0",
"eslint-config-preact": "^1.1.3",
"eslint-plugin-import": "^2.22.1",
"parcel-bundler": "^1.12.4",
"typescript": "^4.0.5"
},
"description": "Starter for preact projects",
"description": "Make URLs wee.",
"eslintIgnore": [
"dist/"
],
"license": "MIT",
"main": "index.js",
"main": "src/index.html",
"scripts": {
"build": "parcel build src/index.html",
"clean": "rm dist/*",
"dev": "rm dist/*; yarn run build && yarn run start",
"start": "parcel src/index.html"
"clean": "rm -rf dist/*",
"dev": "yarn run clean; parcel src/index.html",
"lint": "eslint"
},
"version": "1.0.0"
}
Loading

0 comments on commit 2b27b62

Please sign in to comment.