-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.37 KB
/
.eslintrc.js
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
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
extends: ['eslint:recommended', 'prettier'], // extending recommended config and config derived from eslint-config-prettier
plugins: ['prettier'], // activating esling-plugin-prettier (--fix stuff)
rules: {
'function-paren-newline': [0],
'no-console': [0],
'object-property-newline': [
1,
{ allowMultiplePropertiesPerLine: true },
],
'prettier/prettier': [
// customizing prettier rules (unfortunately not many of them are customizable)
'error',
{
printWidth: 80,
singleQuote: true,
trailingComma: 'es5',
tabWidth: 4,
useTabs: false,
singleQuote: true,
bracketSpacing: true,
arrowParens: 'avoid',
semi: true,
endOfLine: 'lf',
htmlWhitespaceSensitivity: 'css',
jsxBracketSameLine: false,
proseWrap: 'preserve',
requirePragma: false,
},
],
},
globals: {
window: true,
Anzu: true,
console: true,
Tribute: true,
Promise: true,
document: true,
CURRENT_VERSION: true,
},
parser: 'babel-eslint',
parserOptions: { ecmaVersion: 2020, sourceType: 'module' },
};