Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettCleary committed Aug 14, 2024
1 parent a4a3956 commit 327e221
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 180 deletions.
50 changes: 50 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"project": ["./tsconfig.eslint.json"]
},
"plugins": ["@typescript-eslint", "import"],
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-return-await": "off",
"@typescript-eslint/return-await": "warn",
"@typescript-eslint/promise-function-async": [
"error",
{
"allowedPromiseNames": ["Thenable"],
"checkArrowFunctions": true,
"checkFunctionDeclarations": true,
"checkFunctionExpressions": true,
"checkMethodDeclarations": true
}
],
"complexity": "off",
"eqeqeq": ["error", "always"],
"quotes": [
"error",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"import/no-duplicates": ["error"]
}
}
67 changes: 0 additions & 67 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "vite build",
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.mdx ./src",
"lint": "eslint ./src",
"prettier": "prettier --check .",
"prettier-fix": "prettier --write ."
},
Expand All @@ -21,7 +21,7 @@
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"eslint": "^9.9.0",
"eslint": "8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.2.1",
Expand Down
Loading

0 comments on commit 327e221

Please sign in to comment.