37 lines
998 B
JavaScript
37 lines
998 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: ["eslint:recommended"],
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
jquery: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"no-redeclare": "off",
|
|
"no-undef": "off",
|
|
"no-unused-vars": "warn",
|
|
"no-extra-semi": "warn",
|
|
"no-useless-escape": "warn",
|
|
"no-delete-var": "warn",
|
|
"no-warning-comments": ["error", {"terms": ["DONOTPUSH"]}],
|
|
},
|
|
ignorePatterns: ["public_html/assets/**", "public_html/vendor/**", "public_html/dist/**"],
|
|
overrides: [
|
|
{
|
|
files: ["**/*.ts"],
|
|
plugins: [
|
|
"@typescript-eslint",
|
|
],
|
|
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: ["./tsconfig.json"],
|
|
},
|
|
},
|
|
],
|
|
};
|