Skip to content

Commit

Permalink
update eslint-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Jan 12, 2024
1 parent 1ebdc4e commit 523ccf4
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 51 deletions.
16 changes: 0 additions & 16 deletions .devcontainer/Dockerfile

This file was deleted.

35 changes: 16 additions & 19 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
// 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
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-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": "14" }
},
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",

// 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"
],
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// 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": "npm install",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": ["dbaeumer.vscode-eslint"]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
14 changes: 7 additions & 7 deletions explorer/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ module.exports = {
"plugin:@ota-meshi/+prettier",
],
rules: {
"node/no-unsupported-features/es-syntax": "off",
"node/no-unsupported-features/node-builtins": "off",
"node/no-missing-import": "off",
"node/no-missing-require": "off",
"node/no-extraneous-require": "off",
"node/no-unpublished-import": "off",
"node/no-unpublished-require": "off",
"n/no-unsupported-features/es-syntax": "off",
"n/no-unsupported-features/node-builtins": "off",
"n/no-missing-import": "off",
"n/no-missing-require": "off",
"n/no-extraneous-require": "off",
"n/no-unpublished-import": "off",
"n/no-unpublished-require": "off",
complexity: "off",
"no-console": "off",
},
Expand Down
4 changes: 2 additions & 2 deletions explorer/src/components/scripts/state/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./deserialize";
export * from "./serialize";
export * from "./deserialize.js";
export * from "./serialize.js";
2 changes: 1 addition & 1 deletion lib/shared/load-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function loadModule(moduleName) {
const m = require("module");
const cwd = process.cwd();
const relativeTo = path.join(cwd, "__placeholder__.js");
// eslint-disable-next-line node/no-unsupported-features/node-builtins -- ignore
// eslint-disable-next-line n/no-unsupported-features/node-builtins -- ignore
return m.createRequire(relativeTo)(moduleName);
} catch (error) {
if (!isModuleNotFoundError(error)) {
Expand Down
10 changes: 5 additions & 5 deletions lib/syntax/build-syntax-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ module.exports = function buildSyntaxResolver(config) {
};

const standardModuleResolvers = {
// eslint-disable-next-line node/no-missing-require -- ignore
// eslint-disable-next-line n/no-missing-require -- ignore
"postcss-sass": () => require("postcss-sass"),
// eslint-disable-next-line node/no-unpublished-require -- ignore
// eslint-disable-next-line n/no-unpublished-require -- ignore
"postcss-scss": () => require("postcss-scss"),
// eslint-disable-next-line node/no-unpublished-require -- ignore
// eslint-disable-next-line n/no-unpublished-require -- ignore
"postcss-less": () => require("postcss-less"),
// eslint-disable-next-line node/no-unpublished-require -- ignore
// eslint-disable-next-line n/no-unpublished-require -- ignore
sugarss: () => require("sugarss"),
// eslint-disable-next-line node/no-unpublished-require -- ignore
// eslint-disable-next-line n/no-unpublished-require -- ignore
"postcss-styl": () => require("postcss-styl"),
};

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"postcss-safe-parser": "^6.0.0"
},
"devDependencies": {
"@ota-meshi/eslint-plugin": "^0.13.0",
"@ota-meshi/eslint-plugin": "^0.15.0",
"autoprefixer": "^10.3.7",
"chai": "~4.3.4",
"codecov": "^3.8.3",
Expand All @@ -71,6 +71,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-json-schema-validator": "^4.0.0",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-node-dependencies": "^0.11.0",
"eslint-plugin-prettier": "^4.0.0",
Expand Down

0 comments on commit 523ccf4

Please sign in to comment.