forked from GraphiteEditor/Graphite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Bezier-rs interactive demos and migrate its Webpack bundler to Vite
- Loading branch information
Showing
27 changed files
with
3,476 additions
and
2,909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"singleQuote": false, | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"printWidth": 200, | ||
"plugins": [ | ||
"prettier-plugin-svelte" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.svelte" | ||
], | ||
"options": { | ||
"parser": "svelte" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, node: true }, | ||
extends: ["eslint:recommended", "plugin:import/recommended", "plugin:@typescript-eslint/recommended", "plugin:import/typescript", "prettier"], | ||
plugins: ["import", "@typescript-eslint", "prettier"], | ||
settings: { | ||
"import/parsers": { "@typescript-eslint/parser": [".ts"] }, | ||
"import/resolver": { typescript: true, node: true }, | ||
}, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
project: "./tsconfig.json", | ||
}, | ||
overrides: [ | ||
{ | ||
extends: ["plugin:@typescript-eslint/disable-type-checked"], | ||
files: [".eslintrc.cjs"], | ||
}, | ||
], | ||
ignorePatterns: [ | ||
// Ignore generated directories | ||
"node_modules/", | ||
"dist/", | ||
"pkg/", | ||
"wasm/pkg/", | ||
// Don't ignore JS and TS dotfiles in this folder | ||
"!.*.js", | ||
"!.*.ts", | ||
], | ||
rules: { | ||
// Standard ESLint config (for ordinary JS syntax linting) | ||
indent: "off", | ||
quotes: ["error", "double", { allowTemplateLiterals: true }], | ||
camelcase: ["error", { properties: "always" }], | ||
"linebreak-style": ["error", "unix"], | ||
"eol-last": ["error", "always"], | ||
"max-len": ["error", { code: 200, tabWidth: 4 }], | ||
"prefer-destructuring": "off", | ||
"no-console": "warn", | ||
"no-debugger": "warn", | ||
"no-param-reassign": ["error", { props: false }], | ||
"no-bitwise": "off", | ||
"no-shadow": "off", | ||
"no-use-before-define": "off", | ||
"no-restricted-imports": ["error", { patterns: [".*", "!@/*"] }], | ||
|
||
// TypeScript plugin config (for TS-specific linting) | ||
"@typescript-eslint/indent": "off", | ||
"@typescript-eslint/camelcase": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", ignoreRestSiblings: true }], | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/consistent-type-definitions": ["error", "type"], | ||
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "as", objectLiteralTypeAssertions: "never" }], | ||
"@typescript-eslint/consistent-indexed-object-style": ["error", "record"], | ||
"@typescript-eslint/consistent-generic-constructors": ["error", "constructor"], | ||
"@typescript-eslint/ban-types": ["error", { types: { null: "Use `undefined` instead." } }], | ||
|
||
// Prettier plugin config (for validating and fixing formatting) | ||
"prettier/prettier": "error", | ||
|
||
// Import plugin config (for intelligently validating module import statements) | ||
"import/no-unresolved": "error", | ||
"import/prefer-default-export": "off", | ||
"import/no-relative-packages": "error", | ||
"import/order": [ | ||
"error", | ||
{ | ||
alphabetize: { order: "asc", caseInsensitive: true }, | ||
"newlines-between": "always-and-inside-groups", | ||
warnOnUnassignedImports: true, | ||
}, | ||
], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": false, | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"printWidth": 200 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.