-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
238 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,27 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/javascript-node | ||
{ | ||
"name": "Node.js", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
// Update 'VARIANT' to pick a Node version: 16, 14, 12. | ||
// Append -bullseye or -buster to pin to an OS version. | ||
// Use -bullseye variants on local arm64/Apple Silicon. | ||
"args": { "VARIANT": "16-bullseye" } | ||
}, | ||
"name": "Node.js", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
// Update 'VARIANT' to pick a Node version: 16, 14, 12. | ||
// Append -bullseye or -buster to pin to an OS version. | ||
// Use -bullseye variants on local arm64/Apple Silicon. | ||
"args": { "VARIANT": "16-bullseye" } | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": {}, | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": {}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"dbaeumer.vscode-eslint", | ||
"svelte.svelte-vscode" | ||
], | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": ["dbaeumer.vscode-eslint", "svelte.svelte-vscode"], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pnpm install", | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pnpm install", | ||
|
||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "node" | ||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "node" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,167 @@ | ||
import * as myPlugin from "@ota-meshi/eslint-plugin"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
".nyc_output", | ||
"coverage", | ||
"lib", | ||
"node_modules", | ||
"tests/fixtures/**/*.json", | ||
"tests/fixtures/**/*.svelte", | ||
"tests/fixtures/**/*.js", | ||
"tests/fixtures/**/*.ts", | ||
"explorer/dist", | ||
"explorer/node_modules", | ||
"explorer-v2/build", | ||
"explorer-v2/build", | ||
"explorer-v2/build-system/shim/svelte-eslint-parser.*", | ||
"explorer-v2/build-system/shim/eslint-scope.*", | ||
"explorer-v2/build-system/shim/eslint.*", | ||
"explorer-v2/build-system/shim/svelte/*", | ||
"!.vscode", | ||
"!.github", | ||
"explorer-v2/.svelte-kit", | ||
".changeset/pre.json", | ||
], | ||
}, | ||
...myPlugin.config({ | ||
node: true, | ||
ts: true, | ||
json: true, | ||
packageJson: true, | ||
yaml: true, | ||
prettier: true, | ||
}), | ||
{ | ||
languageOptions: { | ||
sourceType: "module", | ||
}, | ||
|
||
rules: { | ||
"no-lonely-if": "off", | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": "off", | ||
"no-warning-comments": "warn", | ||
"jsdoc/require-jsdoc": "off", | ||
complexity: "off", | ||
|
||
"prettier/prettier": [ | ||
"error", | ||
{}, | ||
{ | ||
usePrettierrc: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.ts"], | ||
|
||
languageOptions: { | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
}, | ||
|
||
rules: { | ||
"@typescript-eslint/naming-convention": [ | ||
"error", | ||
{ | ||
selector: "default", | ||
format: ["camelCase"], | ||
leadingUnderscore: "allow", | ||
trailingUnderscore: "allow", | ||
}, | ||
{ | ||
selector: "variable", | ||
format: ["camelCase", "UPPER_CASE"], | ||
leadingUnderscore: "allow", | ||
trailingUnderscore: "allow", | ||
}, | ||
{ | ||
selector: "typeLike", | ||
format: ["PascalCase"], | ||
}, | ||
{ | ||
selector: "property", | ||
format: null, | ||
}, | ||
{ | ||
selector: "method", | ||
format: null, | ||
}, | ||
{ | ||
selector: "import", | ||
format: ["camelCase", "PascalCase", "UPPER_CASE"], | ||
}, | ||
], | ||
|
||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-implicit-globals": "off", | ||
|
||
"no-void": [ | ||
"error", | ||
{ | ||
allowAsStatement: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["scripts/**/*.ts", "tests/**/*.ts"], | ||
|
||
rules: { | ||
"no-console": "off", | ||
"jsdoc/require-jsdoc": "off", | ||
}, | ||
}, | ||
|
||
...myPlugin | ||
.config({ | ||
prettier: true, | ||
svelte: true, | ||
}) | ||
.map(async (config) => ({ | ||
...(await config), | ||
files: ["explorer-v2/**/*.svelte"], | ||
})), | ||
{ | ||
files: ["explorer-v2/**/*.{svelte,js}"], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
rules: { | ||
"eslint-comments/no-unused-disable": "off", | ||
"n/no-missing-import": "off", | ||
"n/no-unpublished-require": "off", | ||
"n/no-unpublished-import": "off", | ||
"n/no-unsupported-features/es-syntax": "off", | ||
"n/no-unsupported-features/node-builtins": "off", | ||
"require-jsdoc": "off", | ||
"n/file-extension-in-import": "off", | ||
|
||
"prettier/prettier": [ | ||
"error", | ||
{}, | ||
{ | ||
usePrettierrc: true, | ||
}, | ||
], | ||
|
||
"no-shadow": "off", | ||
camelcase: "off", | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.d.ts"], | ||
rules: { | ||
"spaced-comment": "off", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.