forked from deathraygames/civ-clicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
32 lines (31 loc) · 806 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* eslint-disable quotes, quote-props */
const isWindows = (process.platform === 'win32');
const linebreakStyle = isWindows ? 'windows' : 'unix';
module.exports = {
"env": {
"browser": true,
"jest/globals": true,
// "es6": true
},
"extends": "airbnb-base",
"plugins": ["jest"],
"globals": {
// "Atomics": "readonly",
// "SharedArrayBuffer": "readonly"
},
"ignorePatterns": [
"scripts/libs/*",
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
},
"rules": {
"indent": ["error", "tab"],
"no-tabs": ["warn", { allowIndentationTabs: true }],
"linebreak-style": ["error", linebreakStyle],
"import/extensions": ["warn", "always"],
"no-console": ["warn", { allow: ["warn", "error"] }],
"max-lines": ["error", { "max": 1500, "skipComments": true }],
},
};