Organize and update dotfiles

This commit is contained in:
Nate Butler 2023-06-29 11:47:58 -04:00
parent a6f7e31bb9
commit 8bff641cc4
3 changed files with 10 additions and 50 deletions

View File

@ -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",
},
],
},
],
},
}

6
styles/.prettierrc Normal file
View File

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

View File

@ -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"
}
}