Skip to content

Commit

Permalink
update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
davikstone2 committed Jan 23, 2024
1 parent 0de3606 commit 500f2f7
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions web/saito/lib/glide/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,20 @@ module.exports = {
jquery: true,
},
extends: [
// 'airbnb-base',
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:node/recommended",
"plugin:promise/recommended",
"prettier",
"prettier/@typescript-eslint",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2021,
ecmaVersion: 13,
sourceType: "module",
},
plugins: ["@typescript-eslint", "import", "node", "promise", "prettier"],
plugins: ["@typescript-eslint"],
rules: {
"prefer-const": "warn",
"prefer-const": 0,
"@typescript-eslint/no-var-requires": "off",
"no-unused-vars": "warn",
"consistent-return": "error",
semi: ["error", "always"],
"prettier/prettier": "error",
indent: ["warn", 2],
"space-infix-ops": "warn",
"space-before-blocks": "warn",
Expand All @@ -37,6 +28,5 @@ module.exports = {
"space-before-function-paren": ["warn", "always"],
"array-bracket-spacing": ["warn", "never"],
"keyword-spacing": ["warn", { before: true, after: true }],
// ... more customized rules ...
},
};

0 comments on commit 500f2f7

Please sign in to comment.