Skip to content

Commit

Permalink
chore(package): 🔧 add prettier eslint config
Browse files Browse the repository at this point in the history
Add Prettier/ESLint interop config
  • Loading branch information
ben-laird committed Aug 14, 2022
1 parent 4dd405b commit 2d7f9bb
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 8 deletions.
72 changes: 72 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 31 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
"ava": "^4.3.1",
"cspell": "^6.4.1",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.0",
"lint-staged": "^13.0.3",
"markdownlint": "^0.26.1",
Expand Down Expand Up @@ -101,29 +103,48 @@
},
"compile": "tsc"
},
"files": ["!build/module/**"]
"files": [
"!build/module/**"
]
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"exclude": ["**/*.test.js"]
"exclude": [
"**/*.test.js"
]
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["build"],
"plugins": ["@typescript-eslint"],
"ignorePatterns": [
"build",
"docs"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"spaced-comment": ["warn", "always"],
"yoda": ["warn", "never"]
"spaced-comment": [
"warn",
"always"
],
"yoda": [
"warn",
"never"
]
}
},
"cspell": {
Expand Down Expand Up @@ -156,7 +177,9 @@
"allowCompoundWords": true
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.md": "markdownlint --fix --ignore node_modules",
Expand Down

0 comments on commit 2d7f9bb

Please sign in to comment.