Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Flow",
"image": "docker.io/ausginer/java-node-dev",
"runArgs": ["--name=flow_dev"],
"containerEnv": {
"CHROME_BIN": "/usr/local/bin/chrome",
"PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD": "1"
},
"forwardPorts": [9876, 8080, 8000],
"containerUser": "vaadin",
"remoteUser": "vaadin",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"workspaceMount": "source=${localEnv:PODMAN_DIR}${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind",
"mounts": [
{
"source": "${localWorkspaceFolderBasename}_nodemodules",
"target": "${containerWorkspaceFolder}/node_modules",
"type": "volume"
}
]
}
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{java,xml}]
indent_size = 4

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

[*.kt]
indent_size = 4

[*.gradle]
indent_size = 4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ node_modules
/frontend
*/flow-*/frontend
package-lock.json
!/package-lock.json
**/webpack.generated.js

flow-tests/**/package.json
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
git-tag-version=false
prefer-dedupe=true
save-exact=true
6 changes: 0 additions & 6 deletions .prettierrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"printWidth": 120,
"trailingComma": "none"
}
33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { fileURLToPath } from 'node:url';
import tsEslint from 'typescript-eslint';
import tsRequireTypeChecking from 'eslint-config-vaadin/typescript-requiring-type-checking';
import tsImports from 'eslint-config-vaadin/imports-typescript';
import testing from 'eslint-config-vaadin/testing';
import prettier from 'eslint-config-vaadin/prettier';

const root = new URL('./', import.meta.url);

const config = tsEslint.config(
tsRequireTypeChecking,
tsImports,
testing,
prettier,
{
rules: {
'import-x/no-unassigned-import': 'off',
'import-x/no-duplicates': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-shadow': 'off',
'import-x/prefer-default-export': 'off',
},
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: fileURLToPath(root),
},
},
},
);

export default config;
20 changes: 20 additions & 0 deletions flow-ts/flow/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { fileURLToPath } from 'node:url';
import tsEslint from 'typescript-eslint';
import baseConfig from '../../eslint.config.js';

const root = new URL('./', import.meta.url);

const config = tsEslint.config(
baseConfig,
{
files: ['src/**/*.ts', 'src/**/*.js'],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: fileURLToPath(root),
},
},
},
);

export default config;
20 changes: 20 additions & 0 deletions flow-ts/flow/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "@vaadin/flow",
"version": "1.0.0",
"description": "Vaadin Flow framework client code",
"homepage": "https://github.com/vaadin/flow#readme",
"bugs": {
"url": "https://github.com/vaadin/flow/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vaadin/flow.git",
"directory": "flow-ts/flow"
},
"license": "Apache-2.0",
"author": "Vaadin Ltd.",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
Loading
Loading