Skip to content

Commit cb74356

Browse files
committed
Move javascript/* to root
1 parent eadbf43 commit cb74356

File tree

173 files changed

+145
-245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+145
-245
lines changed

.eslintrc.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"project": "tsconfig.json",
9+
"sourceType": "module"
10+
},
11+
"plugins": [
12+
"react",
13+
"import",
14+
"simple-import-sort",
15+
"node",
16+
"@typescript-eslint"
17+
],
18+
"extends": [
19+
"eslint:recommended",
20+
"plugin:react/recommended",
21+
"plugin:react-hooks/recommended",
22+
"plugin:import/typescript",
23+
"plugin:@typescript-eslint/eslint-recommended",
24+
"plugin:@typescript-eslint/recommended",
25+
"plugin:prettier/recommended"
26+
],
27+
"rules": {
28+
"import/no-cycle": "error",
29+
"node/no-extraneous-import": "error",
30+
"@typescript-eslint/ban-ts-ignore": "off",
31+
"@typescript-eslint/ban-ts-comment": "off",
32+
"@typescript-eslint/explicit-module-boundary-types": "off",
33+
"@typescript-eslint/explicit-function-return-type": "off",
34+
"@typescript-eslint/no-use-before-define": "off",
35+
"@typescript-eslint/interface-name-prefix": "off",
36+
"@typescript-eslint/member-delimiter-style": "off",
37+
"@typescript-eslint/no-explicit-any": "error",
38+
"@typescript-eslint/no-non-null-assertion": "error",
39+
"simple-import-sort/imports": "error",
40+
"simple-import-sort/exports": "error",
41+
"react/prop-types": "off"
42+
},
43+
"overrides": [
44+
{
45+
"files": ["test/**"],
46+
"rules": {
47+
"@typescript-eslint/no-non-null-assertion": "off"
48+
}
49+
}
50+
],
51+
"settings": {
52+
"react": {
53+
"pragma": "React",
54+
"version": "detect"
55+
}
56+
}
57+
}
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
dist/
22
.idea/
3-
.nyc_output/
4-
coverage/
53
node_modules/
64
yarn.lock
75
package-lock.json
86
*.log
9-
.deps
10-
.tested*
11-
.linted
12-
.built*
13-
.compared
147
.codegen
158
acceptance/
169
storybook-static
17-
*-go
1810
*.iml
1911
.vscode-test

javascript/.mocharc.json renamed to .mocharc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"require": [
3-
"tsconfig-paths/register",
43
"ts-node/register",
54
"source-map-support/register",
65
"./css-modules-hook.js",

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 100
6+
}

.rsync

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Makefile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
include default.mk
1+
FEATURE_FILES = $(sort $(wildcard node_modules/@cucumber/compatibility-kit/javascript/features/**/*.ndjson))
2+
TS_MESSAGE_FILES = $(patsubst node_modules/@cucumber/compatibility-kit/javascript/features/%.ndjson,acceptance/%.ts,$(FEATURE_FILES))
3+
4+
default: .codegen .tested
5+
6+
.codegen: $(TS_MESSAGE_FILES)
7+
8+
# Convert an .ndjson file to a .ts file with Envelope objects that can be imported
9+
acceptance/%.ts: node_modules/@cucumber/compatibility-kit/javascript/features/%.ndjson Makefile
10+
mkdir -p $(@D)
11+
echo "// Generated file. Do not edit." > $@
12+
echo "export default [" >> $@
13+
cat $< | sed "s/$$/,/" >> $@
14+
echo "]" >> $@
15+
16+
.tested: .tested-storybook
17+
18+
.tested-storybook:
19+
npm run build-storybook
20+
touch $@

0 commit comments

Comments
 (0)