forked from flotiq/flotiq-ui-plugin-multilingual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
40 lines (36 loc) · 856 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
33
34
35
36
37
38
39
40
module.exports = {
root: true,
env: {
browser: true,
es6: true,
},
extends: ["eslint:recommended", "prettier"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2020,
},
rules: {
"no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"linebreak-style": 0,
/* This rule will warn when it encounters a reference to an identifier that has not yet been declared. */
"no-use-before-define": [
"error",
{
variables: false,
},
],
/* Enforce require() on the top-level module scope */
"global-require": 0,
"max-len": [
"error",
{
code: 120,
},
],
"guard-for-in": 0,
"no-underscore-dangle": 0,
"import/prefer-default-export": 0,
"import/no-anonymous-default-export": 0,
"import/no-extraneous-dependencies": 0,
},
};