-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.js
30 lines (28 loc) · 1.05 KB
/
common.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
"use strict";
const eslint = require( "@eslint/js" );
const styles = require( "@stylistic/eslint-plugin" );
module.exports = [
eslint.configs.recommended,
{
plugins: {
"@stylistic": styles
},
rules: {
"no-console": [ "off" ],
"no-var": [ "error" ],
"@stylistic/array-bracket-spacing": [ "error", "always", { singleValue: true } ],
"@stylistic/comma-spacing": [ "error", { before: false, after: true } ],
"@stylistic/eol-last": [ "error", "always" ],
"@stylistic/indent": [ "error", "tab" ],
"@stylistic/linebreak-style": [ "error", "unix" ],
"@stylistic/no-multiple-empty-lines": [ "error", { max: 1 } ],
"@stylistic/no-trailing-spaces": [ "error", { skipBlankLines: false, ignoreComments: false } ],
"@stylistic/object-curly-spacing": [ "error", "always" ],
"@stylistic/quote-props": [ "error", "as-needed" ],
"@stylistic/quotes": [ "error", "double" ],
"@stylistic/semi": [ "error", "always" ],
"@stylistic/space-in-parens": [ "error", "always" ],
"@stylistic/template-curly-spacing": [ "error", "always" ]
}
}
];