2020-12-14 00:56:41 +00:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
commonjs: true,
|
|
|
|
es6: true,
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
"standard"
|
|
|
|
],
|
|
|
|
globals: {
|
|
|
|
Atomics: "readonly",
|
|
|
|
SharedArrayBuffer: "readonly"
|
|
|
|
},
|
|
|
|
parserOptions: {
|
2023-01-22 23:55:51 +00:00
|
|
|
ecmaVersion: 2021
|
2020-12-14 00:56:41 +00:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
/* See https://eslint.org/docs/rules/ */
|
|
|
|
/* 0: off, 1: warn, 2: error */
|
|
|
|
|
|
|
|
/* Style rules reflecting Tag's preferences */
|
|
|
|
"brace-style": [1, "allman", { allowSingleLine: true }],
|
|
|
|
quotes: [2, "double"],
|
|
|
|
camelcase: 0,
|
|
|
|
semi: 0,
|
|
|
|
"space-before-function-paren": 0,
|
|
|
|
"one-var": 0,
|
2022-09-11 20:15:00 +00:00
|
|
|
"no-trailing-spaces": ["error", { skipBlankLines: true, ignoreComments: true }],
|
2020-12-14 00:56:41 +00:00
|
|
|
|
|
|
|
/* ESLint checks we should consider fixing in the future */
|
|
|
|
eqeqeq: 0,
|
|
|
|
"no-unused-vars": 0,
|
|
|
|
"no-redeclare": 0,
|
|
|
|
"no-undef": 0,
|
|
|
|
"no-array-constructor": 0,
|
|
|
|
"prefer-const": 0,
|
|
|
|
"no-var": 0,
|
|
|
|
"no-extend-native": 0,
|
|
|
|
"prefer-regex-literals": 0,
|
|
|
|
"no-prototype-builtins": 0
|
|
|
|
}
|
|
|
|
};
|