48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"globals": {
|
|
"Game": "writable",
|
|
"l": "readonly",
|
|
"b64_to_utf8": "readonly",
|
|
"utf8_to_b64": "readonly",
|
|
"BeautifyAll": "readonly"
|
|
},
|
|
"extends": ["airbnb-base", "prettier"],
|
|
"parserOptions": {
|
|
"ecmaVersion": 12
|
|
},
|
|
"plugins": ["@typescript-eslint"],
|
|
"overrides": [
|
|
{
|
|
"files": ["src/**/*.{ts,tsx}"],
|
|
"extends": ["plugin:@typescript-eslint/recommended"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"rules": {
|
|
"import/extensions": "off", // To allow importing .ts without errors
|
|
"import/no-unresolved": "off" // To allow importing .ts without errors
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": ["*CookieMonster*.js", "dist/*", "node_modules/*"],
|
|
"rules": {
|
|
"import/no-mutable-exports": "off", // We need to this throughout Cookie Monster
|
|
"no-plusplus": [
|
|
"error",
|
|
{
|
|
"allowForLoopAfterthoughts": true
|
|
}
|
|
],
|
|
"func-names": "off", // To allow unnamed arrow functions
|
|
"prefer-destructuring": [
|
|
"error",
|
|
{
|
|
"object": true,
|
|
"array": false
|
|
}
|
|
] // Importing arrays and then destructuring them seems to fail
|
|
}
|
|
}
|