Skip to content

Commit

Permalink
chore: setup esling & prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wd-David committed Jun 18, 2022
1 parent 968e93d commit 8fc00d5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
]
],
"ignorePatterns": ["**/*/*.js"]
}
11 changes: 11 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
dist
*.md
.eslintrc
.prettierrc
commitlint.config.js

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"prepare": "husky install",
"build": "tsc",
"test": "rm -rf dist && tsc && vitest run",
"format": "prettier --write 'src/**/*.{js,ts,json,md}'",
"lint": "prettier --check 'src/**/*.{js,ts,json,md}' && eslint --ignore-path .gitignore .",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"cz": "cz",
"release": "standard-version --no-verify"
},
Expand Down

0 comments on commit 8fc00d5

Please sign in to comment.