Skip to content

Commit

Permalink
#127 player v2の受け入れ準備
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Jan 10, 2025
1 parent 22d8b6c commit c3e2cd3
Show file tree
Hide file tree
Showing 11 changed files with 4,717 additions and 115 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

85 changes: 0 additions & 85 deletions .eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.js text eol=lf
*.js text eol=lf
*.ts text eol=lf
139 changes: 139 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
import unusedImports from "eslint-plugin-unused-imports";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
"baseDirectory": __dirname,
"recommendedConfig": js.configs.recommended,
"allConfig": js.configs.all
});

export default [{
"ignores": [
"**/node_modules/*",
"**/dist",
"**/build",
"**/json",
"**/@types",
"**/.github",
"**/*.test.ts"
],
}, ...compat.extends("plugin:@typescript-eslint/eslint-recommended"), {
"plugins": {
"unused-imports": unusedImports
},

"languageOptions": {
"globals": {
...globals.browser
},

"parser": tsParser,
"ecmaVersion": "latest",
"sourceType": "module"
},

"rules": {
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",

"unused-imports/no-unused-vars": ["warn", {
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}],

"no-var": "error",

"semi": ["error", "always", {
"omitLastInOneLineBlock": true
}],

"block-spacing": "error",

"indent": ["error", 4, {
"SwitchCase": 1
}],

"no-mixed-spaces-and-tabs": "error",

"no-multiple-empty-lines": ["error", {
"max": 1
}],

"no-trailing-spaces": "error",
"space-infix-ops": "error",
"dot-notation": "error",
"eqeqeq": "error",
"quotes": ["error", "double"],
"no-else-return": "error",
"no-loop-func": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"no-undef": "off",
"comma-dangle": "warn",
"no-use-before-define": "off",
"no-const-assign": "error",
"space-before-blocks": "error",
"no-unexpected-multiline": "error",
"object-curly-spacing": ["error", "always"],
"quote-props": ["error", "always"],

"max-len": ["error", {
"code": 200,
"ignoreStrings": true,
"ignoreComments": true,
"ignoreTemplateLiterals": true
}],

"no-debugger": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-extra-parens": "error",
"no-func-assign": "error",
"no-irregular-whitespace": "error",
"no-sparse-arrays": "error",
"no-unreachable": "error",
"no-unsafe-negation": "error",
"use-isnan": "error",
"block-scoped-var": "error",
"no-caller": "error",
"curly": "error",
"no-case-declarations": "error",
"no-floating-decimal": "error",
"no-eq-null": "error",
"no-empty-function": "error",
"no-empty-pattern": "error",
"no-extend-native": "error",
"dot-location": ["error", "property"],
"no-global-assign": "error",
"no-implicit-globals": "error",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-iterator": "error",
"no-new": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-useless-concat": "error",
"no-useless-call": "error",
"no-useless-return": "error",
"no-unused-expressions": "error",
"no-class-assign": "error",
"no-sequences": "error",
"no-dupe-args": "error",
"no-extra-boolean-cast": "error",
"no-obj-calls": "error",
"no-console": "off",
"no-extra-semi": "warn"
}
}];
Loading

0 comments on commit c3e2cd3

Please sign in to comment.