Organize and update dotfiles

Nate Butler created

Change summary

styles/.eslintrc.js | 35 -----------------------------------
styles/.prettierrc  |  6 ++++++
styles/package.json | 19 ++++---------------
3 files changed, 10 insertions(+), 50 deletions(-)

Detailed changes

styles/.eslintrc.js 🔗

@@ -29,40 +29,5 @@ module.exports = {
     rules: {
         "linebreak-style": ["error", "unix"],
         semi: ["error", "never"],
-        "@typescript-eslint/naming-convention": [
-            "warn",
-            {
-                selector: ["property", "variableLike", "memberLike", "method"],
-                format: ["snake_case"],
-            },
-            {
-                selector: ["typeLike"],
-                format: ["PascalCase"],
-            },
-        ],
-        "import/no-restricted-paths": [
-            "error",
-            {
-                zones: [
-                    {
-                        target: [
-                            "./src/component/*",
-                            "./src/element/*",
-                            "./src/styleTree/*",
-                            "./src/system/*",
-                            "./src/theme/*",
-                            "./src/themes/*",
-                            "./src/utils/*",
-                        ],
-                        from: [
-                            "./src/types/styleTree.ts",
-                            "./src/types/element.ts",
-                            "./src/types/property.ts",
-                        ],
-                        message: "Import from `@types` instead",
-                    },
-                ],
-            },
-        ],
     },
 }

styles/.prettierrc 🔗

@@ -0,0 +1,6 @@
+{
+    "semi": false,
+    "printWidth": 80,
+    "htmlWhitespaceSensitivity": "strict",
+    "tabWidth": 4
+}

styles/package.json 🔗

@@ -1,8 +1,8 @@
 {
     "name": "styles",
     "version": "1.0.0",
-    "description": "",
-    "main": "index.js",
+    "description": "Typescript app that builds Zed's themes",
+    "main": "./src/build_themes.ts",
     "scripts": {
         "build": "ts-node ./src/build_themes.ts",
         "build-licenses": "ts-node ./src/build_licenses.ts",
@@ -10,15 +10,13 @@
         "build-types": "ts-node ./src/build_types.ts",
         "test": "vitest"
     },
-    "author": "",
+    "author": "Zed Industries (https://github.com/zed-industries/)",
     "license": "ISC",
     "dependencies": {
         "@tokens-studio/types": "^0.2.3",
         "@types/chroma-js": "^2.4.0",
         "@types/node": "^18.14.1",
         "ayu": "^8.0.1",
-        "bezier-easing": "^2.1.0",
-        "case-anything": "^2.1.10",
         "chroma-js": "^2.4.2",
         "deepmerge": "^4.3.0",
         "json-schema-to-typescript": "^13.0.2",
@@ -26,22 +24,13 @@
         "ts-deepmerge": "^6.0.3",
         "ts-node": "^10.9.1",
         "utility-types": "^3.10.0",
-        "vitest": "^0.32.0"
-    },
-    "prettier": {
-        "semi": false,
-        "printWidth": 80,
-        "htmlWhitespaceSensitivity": "strict",
-        "tabWidth": 4
-    },
-    "devDependencies": {
+        "vitest": "^0.32.0",
         "@typescript-eslint/eslint-plugin": "^5.60.1",
         "@typescript-eslint/parser": "^5.60.1",
         "@vitest/coverage-v8": "^0.32.0",
         "eslint": "^8.43.0",
         "eslint-import-resolver-typescript": "^3.5.5",
         "eslint-plugin-import": "^2.27.5",
-        "eslint-plugin-snakecasejs": "^2.2.0",
         "typescript": "^5.1.5"
     }
 }