UNPKG

1.26 kBJavaScriptView Raw
1module.exports = {
2 'env': {
3 'es6': true,
4 'node': true,
5 'mocha': true
6 },
7 'extends': 'airbnb',
8 'parserOptions': {
9 'ecmaVersion': 2018,
10 'sourceType': 'module'
11 },
12 'rules': {
13 'indent': [
14 'error',
15 2
16 ],
17 'linebreak-style': [
18 'error',
19 'unix'
20 ],
21 'quotes': [
22 'error',
23 'single'
24 ],
25 'semi': [
26 'error',
27 'never'
28 ],
29 'import/no-unresolved': 'off',
30 'no-underscore-dangle': 'off',
31 'guard-for-in': 'off',
32 'no-restricted-syntax': 'off',
33 'no-await-in-loop': 'off',
34 'object-curly-newline': 'off'
35 },
36 overrides: [
37 {
38 files: ['*-test.js', '*.spec.js'],
39 rules: {
40 'no-unused-expressions': 'off',
41 'func-names': 'off',
42 'prefer-arrow-callback': 'off',
43 "react/jsx-filename-extension": 'off'
44 }
45 }
46 ],
47 globals: {
48 'expect': true,
49 'factory': true,
50 'sandbox': true,
51 'server': true,
52 'window': true,
53 'AdminBro': true,
54 'flatpickr': true,
55 'Quill': true,
56 }
57}
\No newline at end of file