33 lines
685 B
JavaScript
33 lines
685 B
JavaScript
/* eslint-env node */
|
|
/** @type { import("eslint").Linter.Config } */
|
|
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
},
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:lit/recommended",
|
|
"prettier",
|
|
"plugin:@typescript-eslint/recommended",
|
|
],
|
|
plugins: ["@typescript-eslint", "lit"],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"no-restricted-globals": [2, "event", "error"],
|
|
"linebreak-style": ["error", "unix"],
|
|
},
|
|
ignorePatterns: [
|
|
"ruffle/**/*",
|
|
"build/**/*",
|
|
"/sw.js",
|
|
"/ui.js",
|
|
"dist/**/*",
|
|
],
|
|
reportUnusedDisableDirectives: true,
|
|
};
|