HiddenPhox/.eslintrc.js

35 lines
716 B
JavaScript
Raw Normal View History

2021-03-15 01:41:40 +00:00
const OFF = 0;
// const WARN = 1;
const ERROR = 2;
module.exports = {
2022-12-18 19:38:26 +00:00
root: true,
2021-03-15 01:41:40 +00:00
extends: ["eslint:recommended"],
parserOptions: {
ecmaVersion: 2020,
},
env: {
es6: true,
node: true,
},
rules: {
indent: OFF,
semi: ERROR,
quotes: [ERROR, "double", {avoidEscape: true, allowTemplateLiterals: true}],
"no-empty": ERROR,
"array-callback-return": ERROR,
"consistent-return": ERROR,
eqeqeq: OFF,
"prefer-const": ERROR,
"no-unused-vars": [ERROR, {args: "none", varsIgnorePattern: "^_"}],
"no-console": OFF,
"no-debugger": OFF,
"require-atomic-updates": OFF,
},
globals: {
hf: true,
BigInt: true, // lol eslint
2022-12-18 19:37:00 +00:00
fetch: true,
2021-03-15 01:41:40 +00:00
},
};