Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ version: 2.1
orbs:
browser-tools: circleci/browser-tools@1.4.6
codecov: codecov/codecov@3.3.0

executors:
base:
parameters: &parameters
Expand Down Expand Up @@ -237,6 +236,7 @@ jobs:
BUNDLE_ONLY: "lint"
steps:
- checkout
- run: 'npm install'
- run: 'bundle install'
- run:
name: Check Ruby
Expand Down
101 changes: 0 additions & 101 deletions .eslintrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions admin/.eslintrc.json

This file was deleted.

105 changes: 105 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
import globals from "globals";
import js from "@eslint/js";

export default [
js.configs.recommended,
{
"languageOptions": {
"ecmaVersion": 2023,
"sourceType": "module",
"globals": {
...globals.browser,
...globals.jquery,
"_": "readonly",
"accounting": "readonly",
"addVariantFromStockLocation": "writable",
"adjustShipmentItems": "writable",
"Backbone": "readonly",
"error": "writable",
"flatpickr": "readonly",
"Handlebars": "readonly",
"HandlebarsTemplates": "readonly",
"json": "writable",
"message": "writable",
"Select2": "readonly",
"shipments": "writable",
"show_flash": "writable",
"Sortable": "readonly",
"Spree": "readonly",
"Turbolinks": "readonly",
"update_state": "writable",
}
},
"rules": {
"block-scoped-var": 0,
"camelcase": 0,
"comma-dangle": 0,
"comma-spacing": 0,
"computed-property-spacing": 0,
"consistent-return": 0,
"default-case": 0,
"dot-notation": 0,
"eqeqeq": 0,
"func-names": 0,
"guard-for-in": 0,
"indent": 0,
"key-spacing": 0,
"keyword-spacing": 0,
"linebreak-style": ["error", "unix"],
"max-len": 0,
"new-cap": 0,
"no-alert": 0,
"no-bitwise": 0,
"no-console": ["warn", {
"allow": ["warn"]
}],
"no-else-return": 0,
"no-extra-semi": "error",
"no-global-assign": ["error", {
"exceptions": ["Tabs"]
}],
"no-multi-spaces": 0,
"no-multi-str": 0,
"no-new": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-redeclare": "error",
"no-restricted-globals": 0,
"no-restricted-syntax": 0,
"no-shadow": 0,
"no-undef": "error",
"no-underscore-dangle": ["error", {
"allow": ["_sync", "_this", "_flatpickr"]
}],
"no-unused-vars": ["error", {
"vars": "all", "args": "none"
}],
"no-use-before-define": 0,
"no-unused-expressions": 0,
"no-var": 0,
"one-var": 0,
"one-var-declaration-per-line": 0,
"object-curly-newline": 0,
"object-curly-spacing": 0,
"object-shorthand": 0,
"operator-linebreak": 0,
"prefer-arrow-callback": 0,
"prefer-destructuring": 0,
"prefer-rest-params": 0,
"prefer-template": 0,
"quote-props": 0,
"quotes": 0,
"radix": 0,
"semi": 0,
"space-before-function-paren": 0,
"space-before-blocks": 0,
"space-infix-ops": 0,
"space-unary-ops": 0,
"spaced-comment": 0,
"strict": 0,
"vars-on-top": 0,
"wrap-iife": 0
},

}
]
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "solidus",
"version": "0.0.1",
Comment thread
tvdeyen marked this conversation as resolved.
"private": true,
"devDependencies": {
"@eslint/js": "^9.0.0",
"eslint": "^9.0.0",
"globals": "^15.0.0"
}
}