Merge pull request #1015 from quantified-uncertainty/factor-vscode-lint-to-prettier
rm eslint
This commit is contained in:
commit
9a8ec06ca7
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -182,10 +182,11 @@ jobs:
|
||||||
working-directory: packages/vscode-ext
|
working-directory: packages/vscode-ext
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install dependencies from monorepo level
|
- name: Check javascript, typescript, and markdown lint
|
||||||
run: cd ../../ && yarn
|
uses: creyD/prettier_action@v4.2
|
||||||
- name: Lint the VSCode Extension source code
|
with:
|
||||||
run: yarn lint
|
dry: true
|
||||||
|
prettier_options: --check packages/vscode-ext
|
||||||
|
|
||||||
vscode-ext-build:
|
vscode-ext-build:
|
||||||
name: VS Code extension build
|
name: VS Code extension build
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ yarn-error.log
|
||||||
**/.sync.ffs_db
|
**/.sync.ffs_db
|
||||||
.direnv
|
.direnv
|
||||||
.log
|
.log
|
||||||
|
result
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
.direnv
|
.direnv
|
||||||
*.bs.js
|
*.bs.js
|
||||||
*.gen.tsx
|
*.gen.tsx
|
||||||
packages/*/dist
|
|
||||||
packages/components/storybook-static
|
packages/components/storybook-static
|
||||||
node_modules
|
node_modules
|
||||||
packages/*/node_modules
|
packages/*/node_modules
|
||||||
packages/website/.docusaurus
|
packages/website/.docusaurus
|
||||||
packages/squiggle-lang/lib
|
packages/squiggle-lang/lib
|
||||||
packages/squiggle-lang/.nyc_output/
|
|
||||||
packages/squiggle-lang/coverage/
|
packages/squiggle-lang/coverage/
|
||||||
packages/squiggle-lang/.cache/
|
packages/squiggle-lang/.cache/
|
||||||
packages/website/build/
|
packages/website/build/
|
||||||
packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js
|
packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js
|
||||||
packages/vscode-ext/media/vendor/
|
packages/vscode-ext/media/vendor/
|
||||||
|
packages/squiggle-lang/.nyc_output/
|
||||||
|
packages/*/dist
|
||||||
|
|
6
nixos.sh
6
nixos.sh
|
@ -5,14 +5,14 @@
|
||||||
# We need to patchelf rescript executables. https://github.com/NixOS/nixpkgs/issues/107375
|
# We need to patchelf rescript executables. https://github.com/NixOS/nixpkgs/issues/107375
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
fhsShellName="squiggle-development"
|
fhsShellName="squiggle-fhs-development"
|
||||||
fhsShellDotNix="{pkgs ? import <nixpkgs> {} }: (pkgs.buildFHSUserEnv { name = \"${fhsShellName}\"; targetPkgs = pkgs: [pkgs.yarn]; runScript = \"yarn\"; }).env"
|
fhsShellDotNix="{pkgs ? import <nixpkgs> {} }: (pkgs.buildFHSUserEnv { name = \"${fhsShellName}\"; targetPkgs = pkgs: [pkgs.yarn pkgs.glibc]; runScript = \"yarn\"; }).env"
|
||||||
nix-shell - <<<"$fhsShellDotNix"
|
nix-shell - <<<"$fhsShellDotNix"
|
||||||
|
|
||||||
theLd=$(patchelf --print-interpreter $(which mkdir))
|
theLd=$(patchelf --print-interpreter $(which mkdir))
|
||||||
patchelf --set-interpreter $theLd ./node_modules/gentype/gentype.exe
|
patchelf --set-interpreter $theLd ./node_modules/gentype/gentype.exe
|
||||||
patchelf --set-interpreter $theLd ./node_modules/rescript/linux/*.exe
|
patchelf --set-interpreter $theLd ./node_modules/rescript/linux/*.exe
|
||||||
patchelf --set-interpreter $theLd ./node_modules/bisect_ppx/ppx
|
patchelf --set-interpreter $theLd ./node_modules/bisect_ppx/ppx
|
||||||
patchelf --set-interpreter $theLd ./node_moduels/bisect_ppx/bisect-ppx-report
|
patchelf --set-interpreter $theLd ./node_modules/bisect_ppx/bisect-ppx-report
|
||||||
theSo=$(find /nix/store/*$fhsShellName*/lib64 -name libstdc++.so.6 | grep $fhsShellName | head -n 1)
|
theSo=$(find /nix/store/*$fhsShellName*/lib64 -name libstdc++.so.6 | grep $fhsShellName | head -n 1)
|
||||||
patchelf --replace-needed libstdc++.so.6 $theSo ./node_modules/rescript/linux/ninja.exe
|
patchelf --replace-needed libstdc++.so.6 $theSo ./node_modules/rescript/linux/ninja.exe
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"root": true,
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 6,
|
|
||||||
"sourceType": "module"
|
|
||||||
},
|
|
||||||
"plugins": ["@typescript-eslint"],
|
|
||||||
"rules": {
|
|
||||||
"@typescript-eslint/naming-convention": "warn",
|
|
||||||
"@typescript-eslint/semi": "warn",
|
|
||||||
"curly": "warn",
|
|
||||||
"eqeqeq": "warn",
|
|
||||||
"no-throw-literal": "warn",
|
|
||||||
"semi": "off"
|
|
||||||
},
|
|
||||||
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
|
|
||||||
}
|
|
3
packages/vscode-ext/.prettierignore
Normal file
3
packages/vscode-ext/.prettierignore
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
out
|
||||||
|
dist
|
||||||
|
media/vendor
|
|
@ -121,17 +121,14 @@
|
||||||
"compile": "yarn run compile:vendor && yarn run compile:grammar && yarn run compile:tsc",
|
"compile": "yarn run compile:vendor && yarn run compile:grammar && yarn run compile:tsc",
|
||||||
"watch": "tsc -b -watch",
|
"watch": "tsc -b -watch",
|
||||||
"pretest": "yarn run compile && yarn run lint",
|
"pretest": "yarn run compile && yarn run lint",
|
||||||
"lint": "eslint client/src server/src --ext ts",
|
"lint": "prettier --check .",
|
||||||
"format": "eslint client/src server/src --ext ts --fix",
|
"format": "prettier --write .",
|
||||||
"package": "npx vsce package --yarn"
|
"package": "npx vsce package --yarn"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/glob": "^7.2.0",
|
"@types/glob": "^7.2.0",
|
||||||
"@types/node": "18.x",
|
"@types/node": "18.x",
|
||||||
"@types/vscode": "^1.70.0",
|
"@types/vscode": "^1.70.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.35.1",
|
|
||||||
"@typescript-eslint/parser": "^5.35.1",
|
|
||||||
"eslint": "^8.23.0",
|
|
||||||
"glob": "^8.0.3",
|
"glob": "^8.0.3",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"typescript": "^4.8.2",
|
"typescript": "^4.8.2",
|
||||||
|
@ -143,4 +140,4 @@
|
||||||
"vscode-languageserver-textdocument": "^1.0.5",
|
"vscode-languageserver-textdocument": "^1.0.5",
|
||||||
"@quri/squiggle-lang": "^0.2.11"
|
"@quri/squiggle-lang": "^0.2.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user