Skip to content

Commit

Permalink
More linter work
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 23, 2023
1 parent daf73f5 commit e2991bf
Show file tree
Hide file tree
Showing 9 changed files with 210 additions and 983 deletions.
19 changes: 15 additions & 4 deletions apps/web/.eslint.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
{
"extends": [
"plugin:react/recommended",
"plugin:astro/recommended",
"plugin:react/jsx-runtime",
"custom"
],
"plugins": [
"import",
"react"
],
"settings": {
"react": {
"version": "detect"
"overrides": [
{
"files": [
"*.astro"
],
"parser": "astro-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [
".astro"
]
},
"rules": {}
}
}
]
}
5 changes: 3 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "overlayed.dev",
"name": "web",
"type": "module",
"version": "0.0.1",
"scripts": {
"start": "astro dev",
"build": "astro build",
"lint": "eslint --ext .astro,.js,.jsx,.mjs,.ts,.tsx .",
"lint": "eslint --ext .astro,.js,.ts,.tsx 'src/**/*'",
"format": "prettier --write .",
"preview": "astro preview",
"astro": "astro"
Expand All @@ -17,6 +17,7 @@
},
"devDependencies": {
"eslint-config-custom": "*",
"eslint-plugin-astro": "^0.29.1",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.1",
"prettier-plugin-tailwindcss": "^0.5.6"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"glob": "^10.3.10",
"prettier": "^3.0.3",
"tsconfig": "workspace:*",
"eslint-config-custom": "workspace:*",
"tsx": "^4.1.4",
"turbo": "latest"
},
Expand Down
17 changes: 17 additions & 0 deletions packages/eslint-config-custom/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* @type {import("eslint").Linter.Config}
*/
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["eslint:recommended", "prettier"],
plugins: [],
globals: {
node: true,
},
rules: {
// these are both handled by typescript
"no-undef": "off",
"no-unused-vars": "off",
quotes: ["error", "double"],
},
};
34 changes: 0 additions & 34 deletions packages/eslint-config-custom/library.js

This file was deleted.

42 changes: 0 additions & 42 deletions packages/eslint-config-custom/next.js

This file was deleted.

5 changes: 4 additions & 1 deletion packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@vercel/style-guide": "^5.0.0",
"@typescript-eslint/parser": "^5.61.0",
"eslint-config-next": "^13.4.9",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-react": "^7.32.2",
"eslint-config-turbo": "^1.10.12",
"typescript": "^5.2.2"
}
Expand Down
39 changes: 0 additions & 39 deletions packages/eslint-config-custom/react-internal.js

This file was deleted.

Loading

0 comments on commit e2991bf

Please sign in to comment.